|
12 | 12 | # |
13 | 13 | import os |
14 | 14 | import sys |
| 15 | +from recommonmark.transform import AutoStructify |
15 | 16 |
|
16 | 17 | sys.path.insert(0, os.path.abspath("../")) |
17 | 18 |
|
18 | | -import sphinx_rtd_theme |
19 | | - |
20 | 19 |
|
21 | 20 | # -- Project information ----------------------------------------------------- |
22 | 21 |
|
|
34 | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
35 | 34 | # ones. |
36 | 35 | extensions = [ |
| 36 | + "sphinx.ext.inheritance_diagram", |
| 37 | + "sphinx.ext.napoleon", |
37 | 38 | "sphinx.ext.autodoc", |
38 | 39 | "autoapi.extension", |
39 | | - "sphinx.ext.inheritance_diagram", |
40 | 40 | "recommonmark", |
41 | 41 | ] |
42 | 42 |
|
|
76 | 76 | "show-inheritance", |
77 | 77 | ] |
78 | 78 | autoapi_member_order = "groupwise" |
79 | | -# autoapi_add_toctree_entry = True |
| 79 | + |
| 80 | +# Uncomment, if you are working on documentation and want faster rebuilds. |
| 81 | +# autoapi_generate_api_docs = False |
| 82 | +# autoapi_add_toctree_entry = False |
| 83 | +# autoapi_keep_files = True |
80 | 84 |
|
81 | 85 | html_title = "python-asff" |
82 | 86 |
|
83 | 87 | html_theme_options = { |
84 | 88 | # Set the name of the project to appear in the navigation. |
85 | 89 | "nav_title": "python-asff", |
86 | 90 | # Set you GA account ID to enable tracking |
87 | | - "google_analytics_account": "UA-XXXXX", |
| 91 | + # "google_analytics_account": "UA-XXXXX", |
88 | 92 | # Specify a base_url used to generate sitemap.xml. If not |
89 | 93 | # specified, then no sitemap will be built. |
90 | 94 | #'base_url': 'https://project.github.io/project', |
|
109 | 113 | html_sidebars = { |
110 | 114 | "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"] |
111 | 115 | } |
| 116 | + |
| 117 | + |
| 118 | +def setup(app): |
| 119 | + app.add_config_value( |
| 120 | + "recommonmark_config", |
| 121 | + { |
| 122 | + "auto_toc_tree_section": "Contents", |
| 123 | + "enable_math": False, |
| 124 | + "enable_inline_math": False, |
| 125 | + "enable_eval_rst": True, |
| 126 | + }, |
| 127 | + True, |
| 128 | + ) |
| 129 | + app.add_transform(AutoStructify) |
0 commit comments