|
7 | 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
8 | 8 |
|
9 | 9 | import os, sys |
10 | | -sys.path.insert(0, os.path.abspath('../../elevation_mapping_cupy')) |
11 | | -sys.path.insert(0, os.path.abspath('../../sensor_processing/semantic_pointcloud')) |
12 | 10 |
|
13 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 11 | +sys.path.insert(0, os.path.abspath("../../elevation_mapping_cupy")) |
| 12 | +sys.path.insert(0, os.path.abspath("../../sensor_processing/semantic_pointcloud")) |
| 13 | + |
| 14 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
14 | 15 |
|
15 | 16 | if not on_rtd: # only import and set the theme if we're building docs locally |
16 | 17 | import sphinx_rtd_theme |
17 | | - html_theme = 'sphinx_rtd_theme' |
| 18 | + |
| 19 | + html_theme = "sphinx_rtd_theme" |
18 | 20 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
19 | 21 |
|
20 | 22 |
|
21 | | -project = 'elevation_mapping_cupy' |
22 | | -copyright = '2022, Takahiro Miki, Gian Erni' |
23 | | -author = 'Takahiro Miki, Gian Erni' |
| 23 | +project = "elevation_mapping_cupy" |
| 24 | +copyright = "2022, Takahiro Miki, Gian Erni" |
| 25 | +author = "Takahiro Miki, Gian Erni" |
24 | 26 |
|
25 | 27 | # -- General configuration --------------------------------------------------- |
26 | 28 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
27 | 29 |
|
28 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon','sphinx_copybutton'] |
| 30 | +extensions = [ |
| 31 | + "sphinx.ext.autodoc", |
| 32 | + "sphinx.ext.coverage", |
| 33 | + "sphinx.ext.napoleon", |
| 34 | + "sphinx_copybutton", |
| 35 | +] |
29 | 36 |
|
30 | | -templates_path = ['_templates'] |
31 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 37 | +templates_path = ["_templates"] |
| 38 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
32 | 39 |
|
33 | 40 | html_theme_options = { |
34 | | - 'analytics_anonymize_ip': False, |
35 | | - 'logo_only': False, |
36 | | - 'display_version': False, |
37 | | - 'prev_next_buttons_location': 'bottom', |
38 | | - 'style_external_links': False, |
39 | | - 'vcs_pageview_mode': '', |
40 | | - 'style_nav_header_background': '#A00000', |
| 41 | + "analytics_anonymize_ip": False, |
| 42 | + "logo_only": False, |
| 43 | + "display_version": False, |
| 44 | + "prev_next_buttons_location": "bottom", |
| 45 | + "style_external_links": False, |
| 46 | + "vcs_pageview_mode": "", |
| 47 | + "style_nav_header_background": "#A00000", |
41 | 48 | # Toc options |
42 | | - 'collapse_navigation': True, |
43 | | - 'sticky_navigation': True, |
44 | | - 'navigation_depth': 4, |
45 | | - 'includehidden': True, |
46 | | - 'titles_only': False |
| 49 | + "collapse_navigation": True, |
| 50 | + "sticky_navigation": True, |
| 51 | + "navigation_depth": 4, |
| 52 | + "includehidden": True, |
| 53 | + "titles_only": False, |
47 | 54 | } |
48 | 55 |
|
49 | 56 | # -- Options for HTML output ------------------------------------------------- |
50 | 57 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
51 | 58 |
|
52 | | -html_static_path = ['_static'] |
| 59 | +html_static_path = ["_static"] |
| 60 | + |
| 61 | +autodoc_default_options = { |
| 62 | + "members": True, |
| 63 | + "member-order": "bysource", |
| 64 | + "special-members": "__init__", |
| 65 | + "undoc-members": True, |
| 66 | + "exclude-members": "__weakref__", |
| 67 | +} |
0 commit comments