|
1 | 1 | # -*- coding: utf-8 -*-
|
2 | 2 | #
|
3 |
| -# Verilog-to-Routing documentation build configuration file, created by |
4 |
| -# sphinx-quickstart on Fri Jan 22 10:08:21 2016. |
5 |
| -# |
6 |
| -# This file is execfile()d with the current directory set to its |
7 |
| -# containing dir. |
8 |
| -# |
9 |
| -# Note that not all possible configuration values are present in this |
10 |
| -# autogenerated file. |
11 |
| -# |
12 |
| -# All configuration values have a default; values that are commented out |
13 |
| -# serve to show the default. |
| 3 | +# Updated documentation of the configuration options is available at |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
14 | 5 |
|
15 | 6 | import sys
|
16 | 7 | import os
|
|
26 | 17 | # Cool looking ReadTheDocs theme
|
27 | 18 | import sphinx_rtd_theme
|
28 | 19 |
|
29 |
| -html_theme = "sphinx_rtd_theme" |
30 |
| -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
31 |
| - |
32 | 20 | # See if sphinxcontrib.bibtex has been installed
|
33 | 21 | have_sphinxcontrib_bibtex = True
|
34 | 22 | try:
|
|
37 | 25 | have_sphinxcontrib_bibtex = False
|
38 | 26 |
|
39 | 27 |
|
40 |
| -# If extensions (or modules to document with autodoc) are in another directory, |
41 |
| -# add these directories to sys.path here. If the directory is relative to the |
42 |
| -# documentation root, use os.path.abspath to make it absolute, like shown here. |
43 | 28 | sys.path.append(os.path.abspath("../_exts")) # For extensions
|
44 | 29 | sys.path.append(os.path.abspath(".")) # For vtr_version
|
45 | 30 |
|
46 | 31 | from vtr_version import get_vtr_version, get_vtr_release
|
47 | 32 |
|
48 | 33 | # -- General configuration ------------------------------------------------
|
49 | 34 |
|
50 |
| -# If your documentation needs a minimal Sphinx version, state it here. |
51 | 35 | needs_sphinx = "3.0"
|
52 | 36 |
|
53 |
| -# Add any Sphinx extension module names here, as strings. They can be |
54 |
| -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
55 |
| -# ones. |
56 | 37 | extensions = [
|
57 | 38 | "sphinx.ext.todo",
|
58 | 39 | "sphinx.ext.mathjax",
|
|
78 | 59 | "Warning: Could not find sphinxcontrib.bibtex for managing citations, attempting to build anyway..."
|
79 | 60 | )
|
80 | 61 |
|
81 |
| -# Add any paths that contain templates here, relative to this directory. |
82 | 62 | templates_path = []
|
83 | 63 |
|
84 |
| -# The suffix(es) of source filenames. |
85 |
| -# You can specify multiple suffix as a list of string: |
86 | 64 | source_suffix = [".rst"]
|
87 | 65 |
|
88 |
| -# The encoding of source files. |
89 |
| -# source_encoding = 'utf-8-sig' |
90 |
| - |
91 |
| -# The master toctree document. |
92 | 66 | master_doc = "index"
|
93 | 67 |
|
94 |
| -# General information about the project. |
95 | 68 | project = "Verilog-to-Routing"
|
96 | 69 | copyright = "2012-2022, VTR Developers"
|
97 | 70 | author = "VTR Developers"
|
98 | 71 |
|
99 |
| -# The version info for the project you're documenting, acts as replacement for |
100 |
| -# |version| and |release|, also used in various other places throughout the |
101 |
| -# built documents. |
102 |
| -# |
103 |
| -# The short X.Y version. |
104 | 72 | version = get_vtr_version()
|
105 |
| -# The full version, including alpha/beta/rc tags. |
106 | 73 | release = get_vtr_release()
|
107 | 74 |
|
108 |
| -# The language for content autogenerated by Sphinx. Refer to documentation |
109 |
| -# for a list of supported languages. |
110 |
| -# |
111 |
| -# This is also used if you do content translation via gettext catalogs. |
112 |
| -# Usually you set "language" from the command line for these cases. |
113 | 75 | language = None
|
114 | 76 |
|
115 |
| -# There are two options for replacing |today|: either, you set today to some |
116 |
| -# non-false value, then it is used: |
117 |
| -# today = '' |
118 |
| -# Else, today_fmt is used as the format for a strftime call. |
119 |
| -# today_fmt = '%B %d, %Y' |
120 |
| - |
121 |
| -# List of patterns, relative to source directory, that match files and |
122 |
| -# directories to ignore when looking for source files. |
123 | 77 | exclude_patterns = ["_build"]
|
124 | 78 |
|
125 |
| -# The reST default role (used for this markup: `text`) to use for all |
126 |
| -# documents. |
127 |
| -# default_role = None |
128 |
| - |
129 |
| -# If true, '()' will be appended to :func: etc. cross-reference text. |
130 |
| -# add_function_parentheses = True |
131 |
| - |
132 |
| -# If true, the current module name will be prepended to all description |
133 |
| -# unit titles (such as .. function::). |
134 |
| -# add_module_names = True |
135 |
| - |
136 |
| -# If true, sectionauthor and moduleauthor directives will be shown in the |
137 |
| -# output. They are ignored by default. |
138 |
| -# show_authors = False |
139 |
| - |
140 |
| -# The name of the Pygments (syntax highlighting) style to use. |
141 | 79 | pygments_style = "sphinx"
|
142 | 80 |
|
143 |
| -# A list of ignored prefixes for module index sorting. |
144 |
| -# modindex_common_prefix = [] |
145 |
| - |
146 |
| -# If true, keep warnings as "system message" paragraphs in the built documents. |
147 |
| -# keep_warnings = False |
148 |
| - |
149 |
| -# If true, `todo` and `todoList` produce output, else they produce nothing. |
150 | 81 | todo_include_todos = True
|
151 | 82 |
|
152 |
| -# Number figures for referencing |
153 | 83 | numfig = True
|
154 | 84 |
|
155 | 85 | # -- Options for HTML output ----------------------------------------------
|
156 | 86 |
|
157 |
| -# The theme to use for HTML and HTML Help pages. See the documentation for |
158 |
| -# a list of builtin themes. |
159 |
| -# html_theme = 'sphinx_rtd_theme' |
160 |
| - |
161 |
| -# Theme options are theme-specific and customize the look and feel of a theme |
162 |
| -# further. For a list of options available for each theme, see the |
163 |
| -# documentation. |
164 |
| -# html_theme_options = {} |
165 |
| - |
166 |
| -# Add any paths that contain custom themes here, relative to this directory. |
167 |
| -# html_theme_path = [] |
168 |
| - |
169 |
| -# The name for this set of Sphinx documents. If None, it defaults to |
170 |
| -# "<project> v<release> documentation". |
171 |
| -# html_title = None |
| 87 | +html_theme = "sphinx_rtd_theme" |
172 | 88 |
|
173 |
| -# A shorter title for the navigation bar. Default is the same as html_title. |
174 |
| -# html_short_title = None |
| 89 | +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
175 | 90 |
|
176 |
| -# The name of an image file (relative to this directory) to place at the top |
177 |
| -# of the sidebar. |
178 | 91 | html_logo = "_static/vtr_logo.svg"
|
179 | 92 |
|
180 |
| -# The name of an image file (within the static path) to use as favicon of the |
181 |
| -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
182 |
| -# pixels large. |
183 | 93 | html_favicon = "_static/favicon.ico"
|
184 | 94 |
|
185 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
186 |
| -# relative to this directory. They are copied after the builtin static files, |
187 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
188 | 95 | html_static_path = ["_static"]
|
189 | 96 |
|
190 |
| -# Add any extra paths that contain custom files (such as robots.txt or |
191 |
| -# .htaccess) here, relative to this directory. These files are copied |
192 |
| -# directly to the root of the documentation. |
193 |
| -# html_extra_path = [] |
194 |
| - |
195 |
| -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
196 |
| -# using the given strftime format. |
197 |
| -# html_last_updated_fmt = '%b %d, %Y' |
198 |
| - |
199 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
200 |
| -# typographically correct entities. |
201 |
| -# html_use_smartypants = True |
202 |
| - |
203 |
| -# Custom sidebar templates, maps document names to template names. |
204 |
| -# html_sidebars = {} |
205 |
| - |
206 |
| -# Additional templates that should be rendered to pages, maps page names to |
207 |
| -# template names. |
208 |
| -# html_additional_pages = {} |
209 |
| - |
210 |
| -# If false, no module index is generated. |
211 |
| -# html_domain_indices = True |
212 |
| - |
213 |
| -# If false, no index is generated. |
214 |
| -# html_use_index = True |
215 |
| - |
216 |
| -# If true, the index is split into individual pages for each letter. |
217 |
| -# html_split_index = False |
218 |
| - |
219 |
| -# If true, links to the reST sources are added to the pages. |
220 |
| -# html_show_sourcelink = True |
221 |
| - |
222 |
| -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
223 |
| -# html_show_sphinx = True |
224 |
| - |
225 |
| -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
226 |
| -# html_show_copyright = True |
227 |
| - |
228 |
| -# If true, an OpenSearch description file will be output, and all pages will |
229 |
| -# contain a <link> tag referring to it. The value of this option must be the |
230 |
| -# base URL from which the finished HTML is served. |
231 |
| -# html_use_opensearch = '' |
232 |
| - |
233 |
| -# This is the file name suffix for HTML files (e.g. ".xhtml"). |
234 |
| -# html_file_suffix = None |
235 |
| - |
236 |
| -# Language to be used for generating the HTML full-text search index. |
237 |
| -# Sphinx supports the following languages: |
238 |
| -# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' |
239 |
| -# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' |
240 |
| -# html_search_language = 'en' |
241 |
| - |
242 |
| -# A dictionary with options for the search language support, empty by default. |
243 |
| -# Now only 'ja' uses this config value |
244 |
| -# html_search_options = {'type': 'default'} |
245 |
| - |
246 |
| -# The name of a javascript file (relative to the configuration directory) that |
247 |
| -# implements a search results scorer. If empty, the default will be used. |
248 |
| -# html_search_scorer = 'scorer.js' |
249 |
| - |
250 |
| -# If true, images itself links to the original image if it doesn’t have ‘target’ |
251 |
| -# option or scale related options: ‘scale’, ‘width’, ‘height’. |
252 | 97 | html_scaled_image_link = True
|
253 | 98 |
|
254 |
| -# Output file base name for HTML help builder. |
255 | 99 | htmlhelp_basename = "Verilog-to-Routingdoc"
|
256 | 100 |
|
257 | 101 | # -- Options for LaTeX output ---------------------------------------------
|
258 | 102 |
|
259 |
| -latex_elements = { |
260 |
| - # The paper size ('letterpaper' or 'a4paper'). |
261 |
| - #'papersize': 'letterpaper', |
262 |
| - # The font size ('10pt', '11pt' or '12pt'). |
263 |
| - #'pointsize': '10pt', |
264 |
| - # Additional stuff for the LaTeX preamble. |
265 |
| - #'preamble': '', |
266 |
| - # Latex figure (float) alignment |
267 |
| - #'figure_align': 'htbp', |
268 |
| -} |
| 103 | +latex_elements = {} |
269 | 104 |
|
270 |
| -# Grouping the document tree into LaTeX files. List of tuples |
271 |
| -# (source start file, target name, title, |
272 |
| -# author, documentclass [howto, manual, or own class]). |
273 | 105 | latex_documents = [
|
274 | 106 | (
|
275 | 107 | master_doc,
|
|
280 | 112 | ),
|
281 | 113 | ]
|
282 | 114 |
|
283 |
| -# The name of an image file (relative to this directory) to place at the top of |
284 |
| -# the title page. |
285 | 115 | latex_logo = "_static/vtr_logo.pdf"
|
286 | 116 |
|
287 |
| -# For "manual" documents, if this is true, then toplevel headings are parts, |
288 |
| -# not chapters. |
289 |
| -# latex_use_parts = False |
290 |
| - |
291 |
| -# If true, show page references after internal links. |
292 |
| -# latex_show_pagerefs = False |
293 |
| - |
294 |
| -# If true, show URL addresses after external links. |
295 |
| -# latex_show_urls = False |
296 |
| - |
297 |
| -# Documents to append as an appendix to all manuals. |
298 |
| -# latex_appendices = [] |
299 |
| - |
300 |
| -# If false, no module index is generated. |
301 |
| -# latex_domain_indices = True |
302 |
| - |
303 | 117 | # -- Options for manual page output ---------------------------------------
|
304 | 118 |
|
305 |
| -# One entry per manual page. List of tuples |
306 |
| -# (source start file, name, description, authors, manual section). |
307 | 119 | man_pages = [(master_doc, "verilog-to-routing", "Verilog-to-Routing Documentation", [author], 1)]
|
308 | 120 |
|
309 |
| -# If true, show URL addresses after external links. |
310 |
| -# man_show_urls = False |
311 |
| - |
312 | 121 | # -- Options for Texinfo output -------------------------------------------
|
313 | 122 |
|
314 |
| -# Grouping the document tree into Texinfo files. List of tuples |
315 |
| -# (source start file, target name, title, author, |
316 |
| -# dir menu entry, description, category) |
317 | 123 | texinfo_documents = [
|
318 | 124 | (
|
319 | 125 | master_doc,
|
|
326 | 132 | ),
|
327 | 133 | ]
|
328 | 134 |
|
329 |
| -# Documents to append as an appendix to all manuals. |
330 |
| -# texinfo_appendices = [] |
331 |
| - |
332 |
| -# If false, no module index is generated. |
333 |
| -# texinfo_domain_indices = True |
334 |
| - |
335 |
| -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
336 |
| -# texinfo_show_urls = 'footnote' |
337 |
| - |
338 |
| -# If true, do not generate a @detailmenu in the "Top" node's menu. |
339 |
| -# texinfo_no_detailmenu = False |
340 |
| - |
341 | 135 | # -- Options for 404 page -------------------------------------------
|
342 | 136 |
|
343 | 137 | # sphinx-notfound-page
|
|
378 | 172 |
|
379 | 173 |
|
380 | 174 | def setup(app):
|
381 |
| - |
382 | 175 | app.add_stylesheet("css/vtr.css")
|
0 commit comments