|
18 | 18 |
|
19 | 19 | # -- Project information ----------------------------------------------------- |
20 | 20 |
|
21 | | -project = 'Idefix' |
22 | | -copyright = 'Geoffroy Lesur et al.' |
23 | | -author = 'Geoffroy Lesur' |
| 21 | +project = "Idefix" |
| 22 | +copyright = "Geoffroy Lesur et al." |
| 23 | +author = "Geoffroy Lesur" |
24 | 24 |
|
25 | 25 | # The full version, including alpha/beta/rc tags |
26 | | -release = '2.3.0' |
27 | | - |
| 26 | +release = "2.3.0" |
28 | 27 |
|
29 | 28 |
|
30 | 29 | # -- General configuration --------------------------------------------------- |
|
34 | 33 | # ones. |
35 | 34 | extensions = [ |
36 | 35 | "sphinx_rtd_theme", |
37 | | - 'sphinx_git', |
38 | | - 'matplotlib.sphinxext.plot_directive', |
| 36 | + "sphinx_git", |
| 37 | + "matplotlib.sphinxext.plot_directive", |
39 | 38 | "breathe", |
40 | 39 | "exhale", |
41 | 40 | "m2r2", |
42 | | - "sphinx_copybutton" |
43 | | - ] |
| 41 | + "sphinx_copybutton", |
| 42 | +] |
44 | 43 |
|
45 | 44 | source_suffix = [".rst", ".md"] |
46 | 45 |
|
47 | | -cpp_id_attributes=["KOKKOS_FORCEINLINE_FUNCTION","KOKKOS_INLINE_FUNCTION","KOKKOS_RESTRICT"] |
| 46 | +cpp_id_attributes = [ |
| 47 | + "KOKKOS_FORCEINLINE_FUNCTION", |
| 48 | + "KOKKOS_INLINE_FUNCTION", |
| 49 | + "KOKKOS_RESTRICT", |
| 50 | +] |
48 | 51 |
|
49 | 52 | # Add any paths that contain templates here, relative to this directory. |
50 | | -templates_path = ['_templates'] |
| 53 | +templates_path = ["_templates"] |
51 | 54 |
|
52 | 55 | # List of patterns, relative to source directory, that match files and |
53 | 56 | # directories to ignore when looking for source files. |
|
60 | 63 | # The theme to use for HTML and HTML Help pages. See the documentation for |
61 | 64 | # a list of builtin themes. |
62 | 65 | # |
63 | | -html_theme = 'sphinx_rtd_theme' |
| 66 | +html_theme = "sphinx_rtd_theme" |
64 | 67 |
|
65 | 68 | # Add any paths that contain custom static files (such as style sheets) here, |
66 | 69 | # relative to this directory. They are copied after the builtin static files, |
67 | 70 | # so a file named "default.css" will overwrite the builtin "default.css". |
68 | | -html_static_path = ['_static'] |
| 71 | +html_static_path = ["_static"] |
| 72 | + |
69 | 73 |
|
70 | 74 | def setup(app): |
71 | | - app.add_css_file('my_theme.css') |
| 75 | + app.add_css_file("my_theme.css") |
| 76 | + |
72 | 77 |
|
73 | 78 | ############## |
74 | 79 | # Breathe/Exhale options |
75 | 80 |
|
76 | 81 | # Setup the breathe extension |
77 | 82 | breathe_projects = { |
78 | | - "Idefix": "./xml" |
| 83 | + "Idefix": "./xml", |
79 | 84 | } |
80 | 85 | breathe_default_project = "Idefix" |
81 | 86 |
|
82 | 87 | # Setup the exhale extension |
83 | 88 | exhale_args = { |
84 | 89 | # These arguments are required |
85 | | - "containmentFolder": "./api", |
86 | | - "rootFileName": "library_root.rst", |
87 | | - "rootFileTitle": "Idefix API", |
| 90 | + "containmentFolder": "./api", |
| 91 | + "rootFileName": "library_root.rst", |
| 92 | + "rootFileTitle": "Idefix API", |
88 | 93 | # Suggested optional arguments |
89 | | - "createTreeView": False, |
| 94 | + "createTreeView": False, |
90 | 95 | # TIP: if using the sphinx-bootstrap-theme, you need |
91 | 96 | # "treeViewIsBootstrap": True, |
92 | 97 | "doxygenStripFromPath": "../../src", |
93 | 98 | "exhaleExecutesDoxygen": True, |
94 | | - "exhaleDoxygenStdin": textwrap.dedent(''' |
| 99 | + "exhaleDoxygenStdin": textwrap.dedent(""" |
95 | 100 | INPUT = ../../src |
96 | 101 | EXCLUDE = ../../src/kokkos |
97 | | - ''') |
| 102 | + """), |
98 | 103 | } |
99 | 104 |
|
100 | 105 | # Tell sphinx what the primary language being documented is. |
101 | | -primary_domain = 'cpp' |
| 106 | +primary_domain = "cpp" |
102 | 107 |
|
103 | 108 | # Tell sphinx what the pygments highlight language should be. |
104 | | -highlight_language = 'cpp' |
| 109 | +highlight_language = "cpp" |
0 commit comments