|
15 | 15 | import datetime
|
16 | 16 | import sys
|
17 | 17 | import os
|
| 18 | +import sphinx_rtd_theme |
18 | 19 |
|
19 | 20 | # If extensions (or modules to document with autodoc) are in another directory,
|
20 | 21 | # add these directories to sys.path here. If the directory is relative to the
|
|
30 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
31 | 32 | # ones.
|
32 | 33 | extensions = [
|
33 |
| - 'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.extlinks'] |
| 34 | + 'sphinx.ext.autodoc', |
| 35 | + 'sphinx.ext.coverage', |
| 36 | + 'sphinx.ext.extlinks', |
| 37 | + 'sphinx_rtd_theme', |
| 38 | + 'sphinx_search.extension', |
| 39 | + ] |
34 | 40 |
|
35 | 41 | # Add any paths that contain templates here, relative to this directory.
|
36 | 42 | templates_path = ['_templates']
|
|
106 | 112 |
|
107 | 113 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
108 | 114 | # a list of builtin themes.
|
109 |
| -html_theme = 'alabaster' |
110 |
| - |
111 |
| -# Theme options are theme-specific and customize the look and feel of a theme |
112 |
| -# further. For a list of options available for each theme, see the |
113 |
| -# documentation. |
114 |
| -#html_theme_options = {} |
115 |
| - |
116 |
| -# Add any paths that contain custom themes here, relative to this directory. |
117 |
| -#html_theme_path = [] |
118 |
| - |
119 |
| -# The name for this set of Sphinx documents. If None, it defaults to |
120 |
| -# "<project> v<release> documentation". |
121 |
| -#html_title = None |
122 |
| - |
123 |
| -# A shorter title for the navigation bar. Default is the same as html_title. |
124 |
| -#html_short_title = None |
125 |
| - |
126 |
| -# The name of an image file (relative to this directory) to place at the top |
127 |
| -# of the sidebar. |
128 |
| -#html_logo = None |
129 |
| - |
130 |
| -# The name of an image file (within the static path) to use as favicon of the |
131 |
| -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
132 |
| -# pixels large. |
133 |
| -#html_favicon = None |
134 |
| - |
135 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
136 |
| -# relative to this directory. They are copied after the builtin static files, |
137 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
138 |
| -html_static_path = ['_static'] |
139 |
| - |
140 |
| -# Add any extra paths that contain custom files (such as robots.txt or |
141 |
| -# .htaccess) here, relative to this directory. These files are copied |
142 |
| -# directly to the root of the documentation. |
143 |
| -#html_extra_path = [] |
144 |
| - |
145 |
| -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
146 |
| -# using the given strftime format. |
147 |
| -#html_last_updated_fmt = '%b %d, %Y' |
148 |
| - |
149 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
150 |
| -# typographically correct entities. |
151 |
| -#html_use_smartypants = True |
152 |
| - |
153 |
| -# Custom sidebar templates, maps document names to template names. |
154 |
| -html_sidebars = { |
155 |
| - 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'], |
156 |
| - '**': ['localtoc.html', 'relations.html', |
157 |
| - 'sourcelink.html', 'searchbox.html'] |
| 115 | +html_theme = 'sphinx_rtd_theme' |
| 116 | + |
| 117 | +# -- sphinx-rtd-theme options ----------- |
| 118 | + |
| 119 | +html_theme_options = { |
| 120 | + # 'analytics_id': 'G-XXXXXXXXXX', # Provided by Google in your dashboard |
| 121 | + # 'analytics_anonymize_ip': False, |
| 122 | + 'logo_only': False, |
| 123 | + 'display_version': True, |
| 124 | + # 'canonical_url': 'https://opentaxii.readthedocs.io/', # important when we host on multiple urls |
| 125 | + 'prev_next_buttons_location': 'bottom', |
| 126 | + 'style_external_links': True, |
| 127 | + 'vcs_pageview_mode': '', |
| 128 | + #'style_nav_header_background': 'white', |
| 129 | + # Toc options |
| 130 | + 'collapse_navigation': True, |
| 131 | + 'sticky_navigation': True, |
| 132 | + 'navigation_depth': 4, |
| 133 | + 'includehidden': True, |
| 134 | + 'titles_only': False, |
158 | 135 | }
|
159 | 136 |
|
160 |
| -# Additional templates that should be rendered to pages, maps page names to |
161 |
| -# template names. |
162 |
| -#html_additional_pages = {} |
163 |
| - |
164 |
| -# If false, no module index is generated. |
165 |
| -html_domain_indices = False |
166 |
| - |
167 |
| -# If false, no index is generated. |
168 |
| -#html_use_index = True |
169 |
| - |
170 |
| -# If true, the index is split into individual pages for each letter. |
171 |
| -#html_split_index = False |
172 |
| - |
173 |
| -# If true, links to the reST sources are added to the pages. |
174 |
| -html_show_sourcelink = False |
175 |
| - |
176 |
| -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
177 |
| -html_show_sphinx = False |
178 |
| - |
179 |
| -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
180 |
| -#html_show_copyright = True |
181 |
| - |
182 |
| -# If true, an OpenSearch description file will be output, and all pages will |
183 |
| -# contain a <link> tag referring to it. The value of this option must be the |
184 |
| -# base URL from which the finished HTML is served. |
185 |
| -#html_use_opensearch = '' |
186 |
| - |
187 |
| -# This is the file name suffix for HTML files (e.g. ".xhtml"). |
188 |
| -#html_file_suffix = None |
189 |
| - |
190 |
| -# Output file base name for HTML help builder. |
191 |
| -htmlhelp_basename = 'opentaxiidoc' |
192 |
| - |
193 | 137 |
|
194 | 138 | # -- Options for LaTeX output ---------------------------------------------
|
195 | 139 |
|
|
0 commit comments