1- # -*- coding: utf-8 -*-
1+ # Configuration file for the Sphinx documentation builder.
22#
3- # bloom documentation build configuration file, created by
4- # sphinx-quickstart on Tue Jan 21 22:47:50 2014.
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.
14- from __future__ import print_function
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 os
17- import sys
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.
22- #sys.path.insert(0, os.path.abspath('.'))
12+ #
13+ # import os
14+ # import sys
15+ # sys.path.insert(0, os.path.abspath('.'))
16+
2317
24- # -- General configuration ------------------------------------------------
18+ # -- Project information ----- ------------------------------------------------
2519
26- # If your documentation needs a minimal Sphinx version, state it here.
27- #needs_sphinx = '1.0'
20+ project = 'bloom'
21+ copyright = '2014, Open Source Robotics Foundation'
22+ author = 'Open Source Robotics Foundation'
23+
24+
25+ # -- General configuration ---------------------------------------------------
2826
2927# Add any Sphinx extension module names here, as strings. They can be
3028# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3129# ones.
3230extensions = [
33- 'sphinx.ext.autodoc' ,
34- 'sphinx.ext.intersphinx' ,
35- 'sphinx.ext.todo' ,
36- 'sphinx.ext.coverage' ,
37- 'sphinx.ext.viewcode' ,
3831]
3932
4033# Add any paths that contain templates here, relative to this directory.
4134templates_path = ['_templates' ]
4235
43- # The suffix of source filenames.
44- source_suffix = '.rst'
45-
46- # The encoding of source files.
47- #source_encoding = 'utf-8-sig'
48-
49- # The master toctree document.
50- master_doc = 'index'
51-
52- # General information about the project.
53- project = u'bloom'
54- copyright = u'2014, Open Source Robotics Foundation'
55-
56- # The version info for the project you're documenting, acts as replacement for
57- # |version| and |release|, also used in various other places throughout the
58- # built documents.
59- #
60- # The short X.Y version.
61- version = '0.4'
62- # The full version, including alpha/beta/rc tags.
63- setup_py = os .path .join (os .path .dirname (__file__ ), '..' , 'setup.py' )
64- import subprocess
65- release = subprocess .check_output (sys .executable + ' ' + setup_py + ' --version' , shell = True ).strip ().decode ('utf-8' )
66- print ('Using release version: {0}' .format (release ))
67-
68- # The language for content autogenerated by Sphinx. Refer to documentation
69- # for a list of supported languages.
70- #language = None
71-
72- # There are two options for replacing |today|: either, you set today to some
73- # non-false value, then it is used:
74- #today = ''
75- # Else, today_fmt is used as the format for a strftime call.
76- #today_fmt = '%B %d, %Y'
77-
7836# List of patterns, relative to source directory, that match files and
7937# directories to ignore when looking for source files.
80- exclude_patterns = ['_build' ]
81-
82- # The reST default role (used for this markup: `text`) to use for all
83- # documents.
84- #default_role = None
85-
86- # If true, '()' will be appended to :func: etc. cross-reference text.
87- #add_function_parentheses = True
88-
89- # If true, the current module name will be prepended to all description
90- # unit titles (such as .. function::).
91- #add_module_names = True
92-
93- # If true, sectionauthor and moduleauthor directives will be shown in the
94- # output. They are ignored by default.
95- #show_authors = False
38+ # This pattern also affects html_static_path and html_extra_path.
39+ exclude_patterns = ['_build' , 'Thumbs.db' , '.DS_Store' ]
9640
97- # The name of the Pygments (syntax highlighting) style to use.
98- pygments_style = 'sphinx'
9941
100- # A list of ignored prefixes for module index sorting.
101- #modindex_common_prefix = []
42+ # -- Options for HTML output -------------------------------------------------
10243
103- # If true, keep warnings as "system message" paragraphs in the built documents.
104- #keep_warnings = False
105-
106-
107- # -- Options for HTML output ----------------------------------------------
108-
109- # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
110- on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
111-
112- if not on_rtd : # only import and set the theme if we're building docs locally
113- try :
114- import sphinx_rtd_theme
115- html_theme = 'sphinx_rtd_theme'
116- html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
117- except ImportError :
118- print ("Building with default template because `sphinx_rtd_theme` is not available." )
119-
120- # otherwise, readthedocs.org uses their theme by default, so no need to specify it
121-
122- # Theme options are theme-specific and customize the look and feel of a theme
123- # further. For a list of options available for each theme, see the
124- # documentation.
125- #html_theme_options = {}
126-
127- # Add any paths that contain custom themes here, relative to this directory.
128- #html_theme_path = []
129-
130- # The name for this set of Sphinx documents. If None, it defaults to
131- # "<project> v<release> documentation".
132- #html_title = None
133-
134- # A shorter title for the navigation bar. Default is the same as html_title.
135- #html_short_title = None
136-
137- # The name of an image file (relative to this directory) to place at the top
138- # of the sidebar.
139- #html_logo = None
140-
141- # The name of an image file (within the static path) to use as favicon of the
142- # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
143- # pixels large.
144- #html_favicon = None
44+ # The theme to use for HTML and HTML Help pages. See the documentation for
45+ # a list of builtin themes.
46+ #
47+ html_theme = 'sphinx_rtd_theme'
14548
14649# Add any paths that contain custom static files (such as style sheets) here,
14750# relative to this directory. They are copied after the builtin static files,
14851# so a file named "default.css" will overwrite the builtin "default.css".
149- html_static_path = ['_static' ]
150-
151- # Add any extra paths that contain custom files (such as robots.txt or
152- # .htaccess) here, relative to this directory. These files are copied
153- # directly to the root of the documentation.
154- #html_extra_path = []
155-
156- # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
157- # using the given strftime format.
158- #html_last_updated_fmt = '%b %d, %Y'
159-
160- # If true, SmartyPants will be used to convert quotes and dashes to
161- # typographically correct entities.
162- #html_use_smartypants = True
163-
164- # Custom sidebar templates, maps document names to template names.
165- #html_sidebars = {}
166-
167- # Additional templates that should be rendered to pages, maps page names to
168- # template names.
169- #html_additional_pages = {}
170-
171- # If false, no module index is generated.
172- #html_domain_indices = True
173-
174- # If false, no index is generated.
175- #html_use_index = True
176-
177- # If true, the index is split into individual pages for each letter.
178- #html_split_index = False
179-
180- # If true, links to the reST sources are added to the pages.
181- #html_show_sourcelink = True
182-
183- # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
184- #html_show_sphinx = True
185-
186- # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
187- #html_show_copyright = True
188-
189- # If true, an OpenSearch description file will be output, and all pages will
190- # contain a <link> tag referring to it. The value of this option must be the
191- # base URL from which the finished HTML is served.
192- #html_use_opensearch = ''
193-
194- # This is the file name suffix for HTML files (e.g. ".xhtml").
195- #html_file_suffix = None
196-
197- # Output file base name for HTML help builder.
198- htmlhelp_basename = 'bloomdoc'
199-
200-
201- # -- Options for LaTeX output ---------------------------------------------
202-
203- latex_elements = {
204- # The paper size ('letterpaper' or 'a4paper').
205- #'papersize': 'letterpaper',
206-
207- # The font size ('10pt', '11pt' or '12pt').
208- #'pointsize': '10pt',
209-
210- # Additional stuff for the LaTeX preamble.
211- #'preamble': '',
212- }
213-
214- # Grouping the document tree into LaTeX files. List of tuples
215- # (source start file, target name, title,
216- # author, documentclass [howto, manual, or own class]).
217- latex_documents = [
218- ('index' , 'bloom.tex' , u'bloom Documentation' ,
219- u'William Woodall' , 'manual' ),
220- ]
221-
222- # The name of an image file (relative to this directory) to place at the top of
223- # the title page.
224- #latex_logo = None
225-
226- # For "manual" documents, if this is true, then toplevel headings are parts,
227- # not chapters.
228- #latex_use_parts = False
229-
230- # If true, show page references after internal links.
231- #latex_show_pagerefs = False
232-
233- # If true, show URL addresses after external links.
234- #latex_show_urls = False
235-
236- # Documents to append as an appendix to all manuals.
237- #latex_appendices = []
238-
239- # If false, no module index is generated.
240- #latex_domain_indices = True
241-
242-
243- # -- Options for manual page output ---------------------------------------
244-
245- # One entry per manual page. List of tuples
246- # (source start file, name, description, authors, manual section).
247- man_pages = [
248- ('index' , 'bloom' , u'bloom Documentation' ,
249- [u'William Woodall' ], 1 )
250- ]
251-
252- # If true, show URL addresses after external links.
253- #man_show_urls = False
254-
255-
256- # -- Options for Texinfo output -------------------------------------------
257-
258- # Grouping the document tree into Texinfo files. List of tuples
259- # (source start file, target name, title, author,
260- # dir menu entry, description, category)
261- texinfo_documents = [
262- ('index' , 'bloom' , u'bloom Documentation' ,
263- u'William Woodall' , 'bloom' , 'One line description of project.' ,
264- 'Miscellaneous' ),
265- ]
266-
267- # Documents to append as an appendix to all manuals.
268- #texinfo_appendices = []
269-
270- # If false, no module index is generated.
271- #texinfo_domain_indices = True
272-
273- # How to display URL addresses: 'footnote', 'no', or 'inline'.
274- #texinfo_show_urls = 'footnote'
275-
276- # If true, do not generate a @detailmenu in the "Top" node's menu.
277- #texinfo_no_detailmenu = False
278-
279-
280- # Example configuration for intersphinx: refer to the Python standard library.
281- intersphinx_mapping = {'http://docs.python.org/' : None }
52+ # html_static_path = ['_static']
0 commit comments