|
44 | 44 | "sphinx.ext.autodoc",
|
45 | 45 | "sphinx.ext.doctest",
|
46 | 46 | "sphinx.ext.intersphinx",
|
47 |
| - "sphinxcontrib.jquery", |
| 47 | + "sphinx.ext.napoleon", |
48 | 48 | "sphinx.ext.autosummary",
|
49 |
| - "sphinx.ext.viewcode", |
| 49 | + "nbsphinx", |
| 50 | + "sphinxcontrib.jquery", |
50 | 51 | ]
|
51 | 52 |
|
| 53 | +autosummary_generate = True |
| 54 | + |
52 | 55 | # Mapping for linking between RTD subprojects.
|
53 | 56 | if readthedocs:
|
54 | 57 | intersphinx_mapping = {
|
|
67 | 70 | ),
|
68 | 71 | }
|
69 | 72 |
|
| 73 | +napoleon_custom_sections = ["Lifecycle"] |
| 74 | + |
70 | 75 | # Add any paths that contain templates here, relative to this directory.
|
71 | 76 | templates_path = ["_templates"]
|
72 | 77 |
|
|
79 | 84 | # The master toctree document.
|
80 | 85 | master_doc = "index"
|
81 | 86 |
|
| 87 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 88 | +# for a list of supported languages. |
| 89 | +# |
| 90 | +# This is also used if you do content translation via gettext catalogs. |
| 91 | +# Usually you set "language" from the command line for these cases. |
| 92 | +language = "en" |
| 93 | + |
82 | 94 | # List of patterns, relative to source directory, that match files and
|
83 | 95 | # directories to ignore when looking for source files.
|
84 | 96 | # This pattern also affects html_static_path and html_extra_path .
|
85 | 97 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
86 | 98 |
|
87 | 99 | # The name of the Pygments (syntax highlighting) style to use.
|
88 |
| -pygments_style = "sphinx" |
| 100 | +pygments_style = "friendly" |
89 | 101 |
|
90 | 102 |
|
91 | 103 | # -- Options for HTML output -------------------------------------------------
|
92 | 104 |
|
93 | 105 | html_static_path = ["_static"]
|
94 |
| -html_title = "TileDB Python API Reference — TileDB-Py %s documentation" % version |
95 | 106 | html_logo = "_static/[email protected]"
|
96 | 107 | html_favicon = "_static/favicon.ico"
|
97 |
| -html_use_index = False |
98 | 108 |
|
99 |
| -if not readthedocs: # only import and set the theme if we're building docs locally |
100 |
| - import sphinx_rtd_theme |
| 109 | +# if readthedocs: |
| 110 | +# html_theme = "default" |
| 111 | +# else: |
| 112 | +# import sphinx_rtd_theme |
| 113 | +# |
| 114 | +# html_theme = "sphinx_rtd_theme" |
| 115 | +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 116 | + |
| 117 | +import sphinx_rtd_theme |
101 | 118 |
|
102 |
| - html_theme = "sphinx_rtd_theme" |
103 |
| - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
104 |
| -else: |
105 |
| - html_theme = "default" |
| 119 | +html_theme = "sphinx_rtd_theme" |
| 120 | +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
106 | 121 |
|
107 | 122 | # -- Options for HTMLHelp output ---------------------------------------------
|
108 | 123 |
|
|
0 commit comments