1- #!/usr/bin/env python3
2- # -*- coding: utf-8 -*-
1+ # Configuration file for the Sphinx documentation builder.
32#
4- # StagPy documentation build configuration file, created by
5- # sphinx-quickstart on Fri Feb 19 19:57:27 2016.
6- #
7- # This file is execfile()d with the current directory set to its
8- # containing dir.
9- #
10- # Note that not all possible configuration values are present in this
11- # autogenerated file.
12- #
13- # All configuration values have a default; values that are commented out
14- # serve to show the default.
3+ # This file only contains a selection of the most common options. For a full
4+ # list see the documentation:
5+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
156
16- import sys
17- import os
7+ # -- Path setup --------------------------------------------------------------
188
199# If extensions (or modules to document with autodoc) are in another directory,
2010# add these directories to sys.path here. If the directory is relative to the
2111# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
13+ import sys
14+ import os
2215sys .path .insert (0 , os .path .abspath ('..' ))
2316
2417from pkg_resources import get_distribution
@@ -50,7 +43,7 @@ def __getattr__(cls, name):
5043# -- General configuration ------------------------------------------------
5144
5245# If your documentation needs a minimal Sphinx version, state it here.
53- needs_sphinx = '1.4 '
46+ needs_sphinx = '4.0 '
5447
5548# Add any Sphinx extension module names here, as strings. They can be
5649# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -61,260 +54,72 @@ def __getattr__(cls, name):
6154 'sphinx.ext.napoleon' ,
6255]
6356
57+ root_doc = 'index'
58+
6459autodoc_member_order = 'bysource'
6560autoclass_content = 'class'
6661
6762# Add any paths that contain templates here, relative to this directory.
6863templates_path = ['_templates' ]
6964
70- # The suffix(es) of source filenames.
71- # You can specify multiple suffix as a list of string:
72- # source_suffix = ['.rst', '.md']
73- source_suffix = '.rst'
74-
75- # The encoding of source files.
76- #source_encoding = 'utf-8-sig'
77-
78- # The master toctree document.
79- master_doc = 'index'
80-
81- # General information about the project.
65+ # -- Project information -----------------------------------------------------
8266project = 'StagPy'
8367copyright = '2015 - 2021, Adrien Morison, Martina Ulvrova, Stéphane Labrosse'
8468author = 'Adrien Morison, Martina Ulvrova, Stéphane Labrosse'
8569
86- # The version info for the project you're documenting, acts as replacement for
87- # |version| and |release|, also used in various other places throughout the
88- # built documents.
89- #
9070# The full version, including alpha/beta/rc tags.
9171release = get_distribution ('stagpy' ).version
9272# The short X.Y version.
9373version = '.' .join (release .split ('.' )[:2 ])
9474
95- # The language for content autogenerated by Sphinx. Refer to documentation
96- # for a list of supported languages.
97- #
98- # This is also used if you do content translation via gettext catalogs.
99- # Usually you set "language" from the command line for these cases.
100- language = None
101-
102- # There are two options for replacing |today|: either, you set today to some
103- # non-false value, then it is used:
104- #today = ''
105- # Else, today_fmt is used as the format for a strftime call.
106- #today_fmt = '%B %d, %Y'
107-
10875# List of patterns, relative to source directory, that match files and
10976# directories to ignore when looking for source files.
11077exclude_patterns = ['_build' ]
11178
112- # The reST default role (used for this markup: `text`) to use for all
113- # documents.
114- #default_role = None
115-
116- # If true, '()' will be appended to :func: etc. cross-reference text.
117- #add_function_parentheses = True
118-
119- # If true, the current module name will be prepended to all description
120- # unit titles (such as .. function::).
121- #add_module_names = True
122-
123- # If true, sectionauthor and moduleauthor directives will be shown in the
124- # output. They are ignored by default.
125- #show_authors = False
126-
12779# The name of the Pygments (syntax highlighting) style to use.
12880pygments_style = 'sphinx'
12981
130- # A list of ignored prefixes for module index sorting.
131- #modindex_common_prefix = []
132-
133- # If true, keep warnings as "system message" paragraphs in the built documents.
134- #keep_warnings = False
135-
136- # If true, `todo` and `todoList` produce output, else they produce nothing.
137- todo_include_todos = False
138-
13982
14083# -- Options for HTML output ----------------------------------------------
14184
142- # The theme to use for HTML and HTML Help pages. See the documentation for
143- # a list of builtin themes.
144- #html_theme = 'sphinx_rtd_theme'
145-
146- # Theme options are theme-specific and customize the look and feel of a theme
147- # further. For a list of options available for each theme, see the
148- # documentation.
149- #html_theme_options = {}
150-
151- # Add any paths that contain custom themes here, relative to this directory.
152- #html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
153-
154- # The name for this set of Sphinx documents. If None, it defaults to
155- # "<project> v<release> documentation".
156- #html_title = None
157-
158- # A shorter title for the navigation bar. Default is the same as html_title.
159- #html_short_title = None
160-
161- # The name of an image file (relative to this directory) to place at the top
162- # of the sidebar.
163- #html_logo = None
164-
165- # The name of an image file (within the static path) to use as favicon of the
166- # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
167- # pixels large.
168- #html_favicon = None
169-
170- # Add any paths that contain custom static files (such as style sheets) here,
171- # relative to this directory. They are copied after the builtin static files,
172- # so a file named "default.css" will overwrite the builtin "default.css".
173- #html_static_path = ['_static']
174-
175- # Add any extra paths that contain custom files (such as robots.txt or
176- # .htaccess) here, relative to this directory. These files are copied
177- # directly to the root of the documentation.
178- #html_extra_path = []
179-
180- # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
181- # using the given strftime format.
182- #html_last_updated_fmt = '%b %d, %Y'
183-
184- # If true, SmartyPants will be used to convert quotes and dashes to
185- # typographically correct entities.
186- #html_use_smartypants = True
187-
188- # Custom sidebar templates, maps document names to template names.
189- #html_sidebars = {}
190-
191- # Additional templates that should be rendered to pages, maps page names to
192- # template names.
193- #html_additional_pages = {}
194-
195- # If false, no module index is generated.
196- #html_domain_indices = True
197-
198- # If false, no index is generated.
199- #html_use_index = True
200-
201- # If true, the index is split into individual pages for each letter.
202- #html_split_index = False
203-
204- # If true, links to the reST sources are added to the pages.
205- #html_show_sourcelink = True
206-
207- # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
208- #html_show_sphinx = True
209-
210- # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
211- #html_show_copyright = True
212-
213- # If true, an OpenSearch description file will be output, and all pages will
214- # contain a <link> tag referring to it. The value of this option must be the
215- # base URL from which the finished HTML is served.
216- #html_use_opensearch = ''
217-
218- # This is the file name suffix for HTML files (e.g. ".xhtml").
219- #html_file_suffix = None
220-
221- # Language to be used for generating the HTML full-text search index.
222- # Sphinx supports the following languages:
223- # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
224- # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
225- #html_search_language = 'en'
226-
227- # A dictionary with options for the search language support, empty by default.
228- # Now only 'ja' uses this config value
229- #html_search_options = {'type': 'default'}
230-
231- # The name of a javascript file (relative to the configuration directory) that
232- # implements a search results scorer. If empty, the default will be used.
233- #html_search_scorer = 'scorer.js'
234-
23585# Output file base name for HTML help builder.
23686htmlhelp_basename = 'StagPydoc'
23787
238- # -- Options for LaTeX output ---------------------------------------------
239-
240- latex_elements = {
241- # The paper size ('letterpaper' or 'a4paper').
242- #'papersize': 'letterpaper',
243-
244- # The font size ('10pt', '11pt' or '12pt').
245- #'pointsize': '10pt',
24688
247- # Additional stuff for the LaTeX preamble.
248- #'preamble': '',
249-
250- # Latex figure (float) alignment
251- #'figure_align': 'htbp',
252- }
89+ # -- Options for LaTeX output ---------------------------------------------
25390
25491# Grouping the document tree into LaTeX files. List of tuples
25592# (source start file, target name, title,
25693# author, documentclass [howto, manual, or own class]).
25794latex_documents = [
258- (master_doc , 'StagPy.tex' , 'StagPy Documentation' ,
259- 'Adrien Morison, Martina Ulvrova, Stéphane Labrosse' , 'manual' ),
95+ (root_doc , 'StagPy.tex' , 'StagPy Documentation' ,
96+ r 'Adrien Morison \and Martina Ulvrova \and Stéphane Labrosse' , 'manual' ),
26097]
26198
262- # The name of an image file (relative to this directory) to place at the top of
263- # the title page.
264- #latex_logo = None
265-
266- # For "manual" documents, if this is true, then toplevel headings are parts,
267- # not chapters.
268- #latex_use_parts = False
269-
270- # If true, show page references after internal links.
271- #latex_show_pagerefs = False
272-
273- # If true, show URL addresses after external links.
274- #latex_show_urls = False
275-
276- # Documents to append as an appendix to all manuals.
277- #latex_appendices = []
278-
279- # If false, no module index is generated.
280- #latex_domain_indices = True
281-
28299
283100# -- Options for manual page output ---------------------------------------
284101
285102# One entry per manual page. List of tuples
286103# (source start file, name, description, authors, manual section).
287104man_pages = [
288- (master_doc , 'stagpy' , 'StagPy Documentation' ,
105+ (root_doc , 'stagpy' , 'StagPy Documentation' ,
289106 [author ], 1 )
290107]
291108
292- # If true, show URL addresses after external links.
293- #man_show_urls = False
294-
295109
296110# -- Options for Texinfo output -------------------------------------------
297111
298112# Grouping the document tree into Texinfo files. List of tuples
299113# (source start file, target name, title, author,
300114# dir menu entry, description, category)
301115texinfo_documents = [
302- (master_doc , 'StagPy' , 'StagPy Documentation' ,
116+ (root_doc , 'StagPy' , 'StagPy Documentation' ,
303117 author , 'StagPy' , 'One line description of project.' ,
304118 'Miscellaneous' ),
305119]
306120
307- # Documents to append as an appendix to all manuals.
308- #texinfo_appendices = []
309-
310- # If false, no module index is generated.
311- #texinfo_domain_indices = True
312-
313- # How to display URL addresses: 'footnote', 'no', or 'inline'.
314- #texinfo_show_urls = 'footnote'
315121
316- # If true, do not generate a @detailmenu in the "Top" node's menu.
317- #texinfo_no_detailmenu = False
122+ # -- Autogenerated configuration options list -----------------------------
318123
319124from pathlib import Path
320125from textwrap import dedent
0 commit comments