Skip to content

Commit e718fef

Browse files
committed
Make an inocmplete pass over docs
1 parent 4aff1d2 commit e718fef

1 file changed

Lines changed: 69 additions & 74 deletions

File tree

docs/conf.py

Lines changed: 69 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,43 @@
1818
# If extensions (or modules to document with autodoc) are in another directory,
1919
# add these directories to sys.path here. If the directory is relative to the
2020
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('.'))
22-
sys.path.insert(0, os.path.join(os.path.abspath('..'), 'trepan'))
21+
# sys.path.insert(0, os.path.abspath('.'))
22+
sys.path.insert(0, os.path.join(os.path.abspath(".."), "trepan"))
2323

2424
# -- General configuration ------------------------------------------------
2525

2626
# If your documentation needs a minimal Sphinx version, state it here.
27-
#needs_sphinx = '1.0'
27+
#
28+
# needs_sphinx = '1.0'
2829

2930
# Add any Sphinx extension module names here, as strings. They can be
3031
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3132
# ones.
3233
extensions = [
33-
'sphinx.ext.autodoc',
34-
'sphinx.ext.githubpages',
34+
"sphinx.ext.autodoc",
35+
"sphinx.ext.autosectionlabel",
36+
"sphinx.ext.githubpages",
3537
# 'numpydoc',
3638
]
3739

3840
# Add any paths that contain templates here, relative to this directory.
39-
templates_path = ['_templates']
41+
templates_path = ["_templates"]
4042

4143
# The suffix(es) of source filenames.
4244
# You can specify multiple suffix as a list of string:
4345
#
4446
# source_suffix = ['.rst', '.md']
45-
source_suffix = ['.rst', 'md']
47+
source_suffix = [".rst", "md"]
4648

4749
# The encoding of source files.
48-
#source_encoding = 'utf-8-sig'
50+
# source_encoding = 'utf-8-sig'
4951

5052
# The master toctree document.
51-
master_doc = 'index'
53+
master_doc = "index"
5254

5355
# General information about the project.
5456
project = u'trepan2'
55-
copyright = '2015, 2017 Rocky Bernstein'
57+
copyright = '2015, 2017, 2021 Rocky Bernstein'
5658
author = u'Rocky Bernstein'
5759

5860
# The version info for the project you're documenting, acts as replacement for
@@ -62,7 +64,7 @@
6264
# The short X.Y version.
6365
version = '1.0'
6466
# The full version, including alpha/beta/rc tags.
65-
release = '1.0'
67+
release = "1.0"
6668

6769
# The language for content autogenerated by Sphinx. Refer to documentation
6870
# for a list of supported languages.
@@ -73,37 +75,37 @@
7375

7476
# There are two options for replacing |today|: either, you set today to some
7577
# non-false value, then it is used:
76-
#today = ''
78+
# today = ''
7779
# Else, today_fmt is used as the format for a strftime call.
78-
#today_fmt = '%B %d, %Y'
80+
# today_fmt = '%B %d, %Y'
7981

8082
# List of patterns, relative to source directory, that match files and
8183
# directories to ignore when looking for source files.
82-
exclude_patterns = ['_build']
84+
exclude_patterns = ["_build"]
8385

8486
# The reST default role (used for this markup: `text`) to use for all
8587
# documents.
86-
#default_role = None
88+
# default_role = None
8789

8890
# If true, '()' will be appended to :func: etc. cross-reference text.
89-
#add_function_parentheses = True
91+
# add_function_parentheses = True
9092

9193
# If true, the current module name will be prepended to all description
9294
# unit titles (such as .. function::).
93-
#add_module_names = True
95+
# add_module_names = True
9496

9597
# If true, sectionauthor and moduleauthor directives will be shown in the
9698
# output. They are ignored by default.
97-
#show_authors = False
99+
# show_authors = False
98100

99101
# The name of the Pygments (syntax highlighting) style to use.
100-
pygments_style = 'sphinx'
102+
pygments_style = "sphinx"
101103

102104
# A list of ignored prefixes for module index sorting.
103-
#modindex_common_prefix = []
105+
# modindex_common_prefix = []
104106

105107
# If true, keep warnings as "system message" paragraphs in the built documents.
106-
#keep_warnings = False
108+
# keep_warnings = False
107109

108110
# If true, `todo` and `todoList` produce output, else they produce nothing.
109111
todo_include_todos = False
@@ -113,156 +115,149 @@
113115

114116
# The theme to use for HTML and HTML Help pages. See the documentation for
115117
# a list of builtin themes.
116-
html_theme = 'sphinx_rtd_theme'
118+
html_theme = "alabaster"
117119

118120
# Theme options are theme-specific and customize the look and feel of a theme
119121
# further. For a list of options available for each theme, see the
120122
# documentation.
121-
#html_theme_options = {}
123+
html_theme_options = {"show_relbar_bottom": "true"}
122124

123125
# Add any paths that contain custom themes here, relative to this directory.
124-
#html_theme_path = []
126+
# html_theme_path = []
125127

126128
# The name for this set of Sphinx documents. If None, it defaults to
127129
# "<project> v<release> documentation".
128-
#html_title = None
130+
# html_title = None
129131

130132
# A shorter title for the navigation bar. Default is the same as html_title.
131-
#html_short_title = None
133+
# html_short_title = None
132134

133135
# The name of an image file (relative to this directory) to place at the top
134136
# of the sidebar.
135-
#html_logo = None
137+
# html_logo = None
136138

137139
# The name of an image file (within the static path) to use as favicon of the
138140
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
139141
# pixels large.
140-
#html_favicon = None
142+
# html_favicon = None
141143

142144
# Add any paths that contain custom static files (such as style sheets) here,
143145
# relative to this directory. They are copied after the builtin static files,
144146
# so a file named "default.css" will overwrite the builtin "default.css".
145-
html_static_path = ['_static']
147+
html_static_path = ["_static"]
146148

147149
# Add any extra paths that contain custom files (such as robots.txt or
148150
# .htaccess) here, relative to this directory. These files are copied
149151
# directly to the root of the documentation.
150-
#html_extra_path = []
152+
# html_extra_path = []
151153

152154
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
153155
# using the given strftime format.
154-
#html_last_updated_fmt = '%b %d, %Y'
156+
# html_last_updated_fmt = '%b %d, %Y'
155157

156158
# If true, SmartyPants will be used to convert quotes and dashes to
157159
# typographically correct entities.
158-
#html_use_smartypants = True
160+
# html_use_smartypants = True
159161

160162
# Custom sidebar templates, maps document names to template names.
161-
#html_sidebars = {}
163+
# html_sidebars = {}
162164

163165
# Additional templates that should be rendered to pages, maps page names to
164166
# template names.
165-
#html_additional_pages = {}
167+
# html_additional_pages = {}
166168

167169
# If false, no module index is generated.
168-
#html_domain_indices = True
170+
# html_domain_indices = True
169171

170172
# If false, no index is generated.
171-
#html_use_index = True
173+
# html_use_index = True
172174

173175
# If true, the index is split into individual pages for each letter.
174-
#html_split_index = False
176+
# html_split_index = False
175177

176178
# If true, links to the reST sources are added to the pages.
177-
#html_show_sourcelink = True
179+
# html_show_sourcelink = True
178180

179181
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
180-
#html_show_sphinx = True
182+
# html_show_sphinx = True
181183

182184
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
183-
#html_show_copyright = True
185+
# html_show_copyright = True
184186

185187
# If true, an OpenSearch description file will be output, and all pages will
186188
# contain a <link> tag referring to it. The value of this option must be the
187189
# base URL from which the finished HTML is served.
188-
#html_use_opensearch = ''
190+
# html_use_opensearch = ''
189191

190192
# This is the file name suffix for HTML files (e.g. ".xhtml").
191-
#html_file_suffix = None
193+
# html_file_suffix = None
192194

193195
# Language to be used for generating the HTML full-text search index.
194196
# Sphinx supports the following languages:
195197
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
196198
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
197-
#html_search_language = 'en'
199+
# html_search_language = 'en'
198200

199201
# A dictionary with options for the search language support, empty by default.
200202
# Now only 'ja' uses this config value
201-
#html_search_options = {'type': 'default'}
203+
# html_search_options = {'type': 'default'}
202204

203205
# The name of a javascript file (relative to the configuration directory) that
204206
# implements a search results scorer. If empty, the default will be used.
205-
#html_search_scorer = 'scorer.js'
207+
# html_search_scorer = 'scorer.js'
206208

207209
# Output file base name for HTML help builder.
208-
htmlhelp_basename = 'trepandoc'
210+
htmlhelp_basename = "trepandoc"
209211

210212
# -- Options for LaTeX output ---------------------------------------------
211213

212214
latex_elements = {
213-
# The paper size ('letterpaper' or 'a4paper').
214-
#'papersize': 'letterpaper',
215-
216-
# The font size ('10pt', '11pt' or '12pt').
217-
#'pointsize': '10pt',
218-
219-
# Additional stuff for the LaTeX preamble.
220-
#'preamble': '',
221-
222-
# Latex figure (float) alignment
223-
#'figure_align': 'htbp',
215+
# The paper size ('letterpaper' or 'a4paper').
216+
#'papersize': 'letterpaper',
217+
# The font size ('10pt', '11pt' or '12pt').
218+
#'pointsize': '10pt',
219+
# Additional stuff for the LaTeX preamble.
220+
#'preamble': '',
221+
# Latex figure (float) alignment
222+
#'figure_align': 'htbp',
224223
}
225224

226225
# Grouping the document tree into LaTeX files. List of tuples
227226
# (source start file, target name, title,
228227
# author, documentclass [howto, manual, or own class]).
229228
latex_documents = [
230-
(master_doc, 'trepan.tex', u'trepan Documentation',
231-
u'Rocky Bernstein', 'manual'),
229+
(master_doc, "trepan.tex", u"trepan Documentation", u"Rocky Bernstein", "manual"),
232230
]
233231

234232
# The name of an image file (relative to this directory) to place at the top of
235233
# the title page.
236-
#latex_logo = None
234+
# latex_logo = None
237235

238236
# For "manual" documents, if this is true, then toplevel headings are parts,
239237
# not chapters.
240-
#latex_use_parts = False
238+
# latex_use_parts = False
241239

242240
# If true, show page references after internal links.
243-
#latex_show_pagerefs = False
241+
# latex_show_pagerefs = False
244242

245243
# If true, show URL addresses after external links.
246-
#latex_show_urls = False
244+
# latex_show_urls = False
247245

248246
# Documents to append as an appendix to all manuals.
249-
#latex_appendices = []
247+
# latex_appendices = []
250248

251249
# If false, no module index is generated.
252-
#latex_domain_indices = True
250+
# latex_domain_indices = True
253251

254252

255253
# -- Options for manual page output ---------------------------------------
256254

257255
# One entry per manual page. List of tuples
258256
# (source start file, name, description, authors, manual section).
259-
man_pages = [
260-
(master_doc, 'trepan', u'trepan Documentation',
261-
[author], 1)
262-
]
257+
man_pages = [(master_doc, "trepan", u"trepan Documentation", [author], 1)]
263258

264259
# If true, show URL addresses after external links.
265-
#man_show_urls = False
260+
# man_show_urls = False
266261

267262

268263
# -- Options for Texinfo output -------------------------------------------
@@ -277,13 +272,13 @@
277272
]
278273

279274
# Documents to append as an appendix to all manuals.
280-
#texinfo_appendices = []
275+
# texinfo_appendices = []
281276

282277
# If false, no module index is generated.
283-
#texinfo_domain_indices = True
278+
# texinfo_domain_indices = True
284279

285280
# How to display URL addresses: 'footnote', 'no', or 'inline'.
286-
#texinfo_show_urls = 'footnote'
281+
# texinfo_show_urls = 'footnote'
287282

288283
# If true, do not generate a @detailmenu in the "Top" node's menu.
289-
#texinfo_no_detailmenu = False
284+
# texinfo_no_detailmenu = False

0 commit comments

Comments
 (0)