Skip to content

Commit bda406e

Browse files
authored
Merge pull request #1979 from umarcor/doc/conf/cleanup
doc/conf: cleanup
2 parents ae6e992 + 6bf82b6 commit bda406e

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",
@@ -78,198 +59,49 @@
7859
"Warning: Could not find sphinxcontrib.bibtex for managing citations, attempting to build anyway..."
7960
)
8061

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

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

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

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

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.
10472
version = get_vtr_version()
105-
# The full version, including alpha/beta/rc tags.
10673
release = get_vtr_release()
10774

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.
11375
language = None
11476

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.
12377
exclude_patterns = ["_build"]
12478

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.
14179
pygments_style = "sphinx"
14280

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.
15081
todo_include_todos = True
15182

152-
# Number figures for referencing
15383
numfig = True
15484

15585
# -- Options for HTML output ----------------------------------------------
15686

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"
17288

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()]
17590

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

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.
18393
html_favicon = "_static/favicon.ico"
18494

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".
18895
html_static_path = ["_static"]
18996

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’.
25297
html_scaled_image_link = True
25398

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

257101
# -- Options for LaTeX output ---------------------------------------------
258102

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 = {}
269104

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]).
273105
latex_documents = [
274106
(
275107
master_doc,
@@ -280,40 +112,14 @@
280112
),
281113
]
282114

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

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-
303117
# -- Options for manual page output ---------------------------------------
304118

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

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

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)
317123
texinfo_documents = [
318124
(
319125
master_doc,
@@ -326,18 +132,6 @@
326132
),
327133
]
328134

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-
341135
# -- Options for 404 page -------------------------------------------
342136

343137
# sphinx-notfound-page
@@ -378,5 +172,4 @@
378172

379173

380174
def setup(app):
381-
382175
app.add_stylesheet("css/vtr.css")

0 commit comments

Comments
 (0)