Skip to content

Commit 6bf82b6

Browse files
committed
doc/conf: cleanup
Signed-off-by: Unai Martinez-Corral <[email protected]>
1 parent 3ea5e4f commit 6bf82b6

File tree

1 file changed

+5
-212
lines changed

1 file changed

+5
-212
lines changed

doc/src/conf.py

Lines changed: 5 additions & 212 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
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
145

156
import sys
167
import os
@@ -26,9 +17,6 @@
2617
# Cool looking ReadTheDocs theme
2718
import sphinx_rtd_theme
2819

29-
html_theme = "sphinx_rtd_theme"
30-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
31-
3220
# See if sphinxcontrib.bibtex has been installed
3321
have_sphinxcontrib_bibtex = True
3422
try:
@@ -37,22 +25,15 @@
3725
have_sphinxcontrib_bibtex = False
3826

3927

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.
4328
sys.path.append(os.path.abspath("../_exts")) # For extensions
4429
sys.path.append(os.path.abspath(".")) # For vtr_version
4530

4631
from vtr_version import get_vtr_version, get_vtr_release
4732

4833
# -- General configuration ------------------------------------------------
4934

50-
# If your documentation needs a minimal Sphinx version, state it here.
5135
needs_sphinx = "3.0"
5236

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.
5637
extensions = [
5738
"sphinx.ext.todo",
5839
"sphinx.ext.mathjax",
@@ -77,198 +58,49 @@
7758
"Warning: Could not find sphinxcontrib.bibtex for managing citations, attempting to build anyway..."
7859
)
7960

80-
# Add any paths that contain templates here, relative to this directory.
8161
templates_path = []
8262

83-
# The suffix(es) of source filenames.
84-
# You can specify multiple suffix as a list of string:
8563
source_suffix = [".rst"]
8664

87-
# The encoding of source files.
88-
# source_encoding = 'utf-8-sig'
89-
90-
# The master toctree document.
9165
master_doc = "index"
9266

93-
# General information about the project.
9467
project = "Verilog-to-Routing"
9568
copyright = "2012-2022, VTR Developers"
9669
author = "VTR Developers"
9770

98-
# The version info for the project you're documenting, acts as replacement for
99-
# |version| and |release|, also used in various other places throughout the
100-
# built documents.
101-
#
102-
# The short X.Y version.
10371
version = get_vtr_version()
104-
# The full version, including alpha/beta/rc tags.
10572
release = get_vtr_release()
10673

107-
# The language for content autogenerated by Sphinx. Refer to documentation
108-
# for a list of supported languages.
109-
#
110-
# This is also used if you do content translation via gettext catalogs.
111-
# Usually you set "language" from the command line for these cases.
11274
language = None
11375

114-
# There are two options for replacing |today|: either, you set today to some
115-
# non-false value, then it is used:
116-
# today = ''
117-
# Else, today_fmt is used as the format for a strftime call.
118-
# today_fmt = '%B %d, %Y'
119-
120-
# List of patterns, relative to source directory, that match files and
121-
# directories to ignore when looking for source files.
12276
exclude_patterns = ["_build"]
12377

124-
# The reST default role (used for this markup: `text`) to use for all
125-
# documents.
126-
# default_role = None
127-
128-
# If true, '()' will be appended to :func: etc. cross-reference text.
129-
# add_function_parentheses = True
130-
131-
# If true, the current module name will be prepended to all description
132-
# unit titles (such as .. function::).
133-
# add_module_names = True
134-
135-
# If true, sectionauthor and moduleauthor directives will be shown in the
136-
# output. They are ignored by default.
137-
# show_authors = False
138-
139-
# The name of the Pygments (syntax highlighting) style to use.
14078
pygments_style = "sphinx"
14179

142-
# A list of ignored prefixes for module index sorting.
143-
# modindex_common_prefix = []
144-
145-
# If true, keep warnings as "system message" paragraphs in the built documents.
146-
# keep_warnings = False
147-
148-
# If true, `todo` and `todoList` produce output, else they produce nothing.
14980
todo_include_todos = True
15081

151-
# Number figures for referencing
15282
numfig = True
15383

15484
# -- Options for HTML output ----------------------------------------------
15585

156-
# The theme to use for HTML and HTML Help pages. See the documentation for
157-
# a list of builtin themes.
158-
# html_theme = 'sphinx_rtd_theme'
159-
160-
# Theme options are theme-specific and customize the look and feel of a theme
161-
# further. For a list of options available for each theme, see the
162-
# documentation.
163-
# html_theme_options = {}
164-
165-
# Add any paths that contain custom themes here, relative to this directory.
166-
# html_theme_path = []
167-
168-
# The name for this set of Sphinx documents. If None, it defaults to
169-
# "<project> v<release> documentation".
170-
# html_title = None
86+
html_theme = "sphinx_rtd_theme"
17187

172-
# A shorter title for the navigation bar. Default is the same as html_title.
173-
# html_short_title = None
88+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
17489

175-
# The name of an image file (relative to this directory) to place at the top
176-
# of the sidebar.
17790
html_logo = "_static/vtr_logo.svg"
17891

179-
# The name of an image file (within the static path) to use as favicon of the
180-
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
181-
# pixels large.
18292
html_favicon = "_static/favicon.ico"
18393

184-
# Add any paths that contain custom static files (such as style sheets) here,
185-
# relative to this directory. They are copied after the builtin static files,
186-
# so a file named "default.css" will overwrite the builtin "default.css".
18794
html_static_path = ["_static"]
18895

189-
# Add any extra paths that contain custom files (such as robots.txt or
190-
# .htaccess) here, relative to this directory. These files are copied
191-
# directly to the root of the documentation.
192-
# html_extra_path = []
193-
194-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
195-
# using the given strftime format.
196-
# html_last_updated_fmt = '%b %d, %Y'
197-
198-
# If true, SmartyPants will be used to convert quotes and dashes to
199-
# typographically correct entities.
200-
# html_use_smartypants = True
201-
202-
# Custom sidebar templates, maps document names to template names.
203-
# html_sidebars = {}
204-
205-
# Additional templates that should be rendered to pages, maps page names to
206-
# template names.
207-
# html_additional_pages = {}
208-
209-
# If false, no module index is generated.
210-
# html_domain_indices = True
211-
212-
# If false, no index is generated.
213-
# html_use_index = True
214-
215-
# If true, the index is split into individual pages for each letter.
216-
# html_split_index = False
217-
218-
# If true, links to the reST sources are added to the pages.
219-
# html_show_sourcelink = True
220-
221-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
222-
# html_show_sphinx = True
223-
224-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
225-
# html_show_copyright = True
226-
227-
# If true, an OpenSearch description file will be output, and all pages will
228-
# contain a <link> tag referring to it. The value of this option must be the
229-
# base URL from which the finished HTML is served.
230-
# html_use_opensearch = ''
231-
232-
# This is the file name suffix for HTML files (e.g. ".xhtml").
233-
# html_file_suffix = None
234-
235-
# Language to be used for generating the HTML full-text search index.
236-
# Sphinx supports the following languages:
237-
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
238-
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
239-
# html_search_language = 'en'
240-
241-
# A dictionary with options for the search language support, empty by default.
242-
# Now only 'ja' uses this config value
243-
# html_search_options = {'type': 'default'}
244-
245-
# The name of a javascript file (relative to the configuration directory) that
246-
# implements a search results scorer. If empty, the default will be used.
247-
# html_search_scorer = 'scorer.js'
248-
249-
# If true, images itself links to the original image if it doesn’t have ‘target’
250-
# option or scale related options: ‘scale’, ‘width’, ‘height’.
25196
html_scaled_image_link = True
25297

253-
# Output file base name for HTML help builder.
25498
htmlhelp_basename = "Verilog-to-Routingdoc"
25599

256100
# -- Options for LaTeX output ---------------------------------------------
257101

258-
latex_elements = {
259-
# The paper size ('letterpaper' or 'a4paper').
260-
#'papersize': 'letterpaper',
261-
# The font size ('10pt', '11pt' or '12pt').
262-
#'pointsize': '10pt',
263-
# Additional stuff for the LaTeX preamble.
264-
#'preamble': '',
265-
# Latex figure (float) alignment
266-
#'figure_align': 'htbp',
267-
}
102+
latex_elements = {}
268103

269-
# Grouping the document tree into LaTeX files. List of tuples
270-
# (source start file, target name, title,
271-
# author, documentclass [howto, manual, or own class]).
272104
latex_documents = [
273105
(
274106
master_doc,
@@ -279,40 +111,14 @@
279111
),
280112
]
281113

282-
# The name of an image file (relative to this directory) to place at the top of
283-
# the title page.
284114
latex_logo = "_static/vtr_logo.pdf"
285115

286-
# For "manual" documents, if this is true, then toplevel headings are parts,
287-
# not chapters.
288-
# latex_use_parts = False
289-
290-
# If true, show page references after internal links.
291-
# latex_show_pagerefs = False
292-
293-
# If true, show URL addresses after external links.
294-
# latex_show_urls = False
295-
296-
# Documents to append as an appendix to all manuals.
297-
# latex_appendices = []
298-
299-
# If false, no module index is generated.
300-
# latex_domain_indices = True
301-
302116
# -- Options for manual page output ---------------------------------------
303117

304-
# One entry per manual page. List of tuples
305-
# (source start file, name, description, authors, manual section).
306118
man_pages = [(master_doc, "verilog-to-routing", "Verilog-to-Routing Documentation", [author], 1)]
307119

308-
# If true, show URL addresses after external links.
309-
# man_show_urls = False
310-
311120
# -- Options for Texinfo output -------------------------------------------
312121

313-
# Grouping the document tree into Texinfo files. List of tuples
314-
# (source start file, target name, title, author,
315-
# dir menu entry, description, category)
316122
texinfo_documents = [
317123
(
318124
master_doc,
@@ -325,18 +131,6 @@
325131
),
326132
]
327133

328-
# Documents to append as an appendix to all manuals.
329-
# texinfo_appendices = []
330-
331-
# If false, no module index is generated.
332-
# texinfo_domain_indices = True
333-
334-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
335-
# texinfo_show_urls = 'footnote'
336-
337-
# If true, do not generate a @detailmenu in the "Top" node's menu.
338-
# texinfo_no_detailmenu = False
339-
340134
# -- Options for 404 page -------------------------------------------
341135

342136
# sphinx-notfound-page
@@ -377,5 +171,4 @@
377171

378172

379173
def setup(app):
380-
381174
app.add_stylesheet("css/vtr.css")

0 commit comments

Comments
 (0)