|
14 | 14 | import sys
|
15 | 15 |
|
16 | 16 | # -- Python Bindings
|
17 |
| -sys.path.insert(0, os.path.abspath('../../../projects/bindings/python/build')) |
| 17 | +sys.path.insert(0, os.path.abspath("../../../projects/bindings/python/build")) |
18 | 18 |
|
19 | 19 |
|
20 | 20 | # -- Project information -----------------------------------------------------
|
21 | 21 |
|
22 |
| -project = 'Symengine API' |
23 |
| -copyright = '2020, SymEngine Development Team' |
24 |
| -author = 'SymEngine Development Team' |
| 22 | +project = "Symengine API" |
| 23 | +copyright = "2020, SymEngine Development Team" |
| 24 | +author = "SymEngine Development Team" |
25 | 25 | master_doc = "index"
|
26 | 26 |
|
27 | 27 |
|
|
31 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 32 | # ones.
|
33 | 33 | extensions = [
|
34 |
| - 'breathe', |
35 |
| - 'exhale', |
36 |
| - 'myst_nb', |
| 34 | + "breathe", |
| 35 | + "exhale", |
| 36 | + "myst_nb", |
37 | 37 | "sphinx_copybutton",
|
38 | 38 | "sphinx_togglebutton",
|
39 | 39 | "sphinxcontrib.bibtex",
|
|
43 | 43 | ]
|
44 | 44 |
|
45 | 45 | # Add any paths that contain templates here, relative to this directory.
|
46 |
| -templates_path = ['_templates'] |
| 46 | +templates_path = ["_templates"] |
47 | 47 |
|
48 | 48 | # List of patterns, relative to source directory, that match files and
|
49 | 49 | # directories to ignore when looking for source files.
|
|
63 | 63 | numfig = True
|
64 | 64 |
|
65 | 65 | mathjax_config = {
|
66 |
| - 'extensions': ['tex2jax.js'], |
67 |
| - 'jax': ['input/TeX', 'output/HTML-CSS'], |
| 66 | + "extensions": ["tex2jax.js"], |
| 67 | + "jax": ["input/TeX", "output/HTML-CSS"], |
68 | 68 | }
|
69 | 69 |
|
70 | 70 | # MyST and MyST-NB configuration ---------------------------------------------------
|
|
85 | 85 |
|
86 | 86 | # -- Exhale configuration ---------------------------------------------------
|
87 | 87 | # Setup the breathe extension
|
88 |
| -breathe_projects = { |
89 |
| - "Symengine XML": "./../Doxygen/gen_docs/xml" |
90 |
| -} |
| 88 | +breathe_projects = {"Symengine XML": "./../Doxygen/gen_docs/xml"} |
91 | 89 | breathe_default_project = "Symengine XML"
|
92 | 90 |
|
93 | 91 | # # Setup the exhale extension
|
94 | 92 | exhale_args = {
|
95 | 93 | # These arguments are required
|
96 |
| - "containmentFolder": "./api", |
97 |
| - "rootFileName": "library_root.rst", |
98 |
| - "rootFileTitle": "Library API", |
99 |
| - "doxygenStripFromPath": "..", |
| 94 | + "containmentFolder": "./api", |
| 95 | + "rootFileName": "library_root.rst", |
| 96 | + "rootFileTitle": "Library API", |
| 97 | + "doxygenStripFromPath": "..", |
100 | 98 | # Suggested optional arguments
|
101 |
| - "createTreeView": True, |
| 99 | + "createTreeView": True, |
102 | 100 | # TIP: if using the sphinx-bootstrap-theme, you need
|
103 | 101 | # "treeViewIsBootstrap": True,
|
104 | 102 | }
|
105 | 103 |
|
106 | 104 | # Tell sphinx what the primary language being documented is.
|
107 |
| -primary_domain = 'cpp' |
| 105 | +primary_domain = "cpp" |
108 | 106 |
|
109 | 107 | # Tell sphinx what the pygments highlight language should be.
|
110 |
| -highlight_language = 'cpp' |
| 108 | +highlight_language = "cpp" |
111 | 109 |
|
112 | 110 | # -- Doxyrest Settings -------------------------------------------------
|
113 | 111 | # sys.path.insert(1, os.path.abspath('../doxyrest/sphinx'))
|
|
119 | 117 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
120 | 118 | # a list of builtin themes.
|
121 | 119 | #
|
122 |
| -# html_theme = 'nervproject' |
| 120 | +html_theme = "nervproject" |
123 | 121 | # html_theme = 'pyramid'
|
124 | 122 | # html_theme = 'pydata_sphinx_theme'
|
125 |
| -html_theme = 'furo' |
126 | 123 | # -- Sphinx Book Theme Settings
|
127 | 124 | html_theme_options = {
|
128 | 125 | "repository_url": "https://github.com/symengine/api-docs",
|
|
132 | 129 | # Add any paths that contain custom static files (such as style sheets) here,
|
133 | 130 | # relative to this directory. They are copied after the builtin static files,
|
134 | 131 | # so a file named "default.css" will overwrite the builtin "default.css".
|
135 |
| -html_static_path = ['_static'] |
136 |
| - |
| 132 | +html_static_path = ["_static"] |
0 commit comments