moveit2
The MoveIt Motion Planning Framework for ROS 2.
conf.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 #
3 # Configuration file for the Sphinx documentation builder.
4 #
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/master/config
8 
9 # -- Path setup --------------------------------------------------------------
10 
11 # If extensions (or modules to document with autodoc) are in another directory,
12 # add these directories to sys.path here. If the directory is relative to the
13 # documentation root, use os.path.abspath to make it absolute, like shown here.
14 #
15 import os
16 import sys
17 import sphinx_rtd_theme
18 
19 
20 # -- Project information -----------------------------------------------------
21 
22 project = "moveit.core"
23 copyright = "2021, MoveIt maintainer team"
24 author = "MoveIt maintainer team"
25 
26 # The short X.Y version
27 version = ""
28 # The full version, including alpha/beta/rc tags
29 release = ""
30 
31 
32 # -- General configuration ---------------------------------------------------
33 
34 # If your documentation needs a minimal Sphinx version, state it here.
35 #
36 # needs_sphinx = '1.0'
37 
38 # Add any Sphinx extension module names here, as strings. They can be
39 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40 # ones.
41 extensions = [
42  "sphinx.ext.autodoc",
43  "sphinx.ext.autosummary",
44  "sphinx.ext.intersphinx",
45  "sphinx_rtd_theme",
46 ]
47 
48 # NOTE: Important variables that make auto-generation work,
49 # see https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
50 autosummary_generate = True
51 autosummary_imported_members = True
52 autoclass_content = "both" # Add __init__ doc (ie. params) to class summaries
53 
54 # Customization, not as important
55 html_show_sourcelink = (
56  True # Remove 'view source code' from top of page (for html, not python)
57 )
58 autodoc_inherit_docstrings = True # If no docstring, inherit from base class
59 set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints
60 add_module_names = False
61 
62 
63 # Add any paths that contain templates here, relative to this directory.
64 templates_path = ["_templates"]
65 
66 # The suffix(es) of source filenames.
67 # You can specify multiple suffix as a list of string:
68 #
69 # source_suffix = ['.rst', '.md']
70 source_suffix = ".rst"
71 
72 # The master toctree document.
73 master_doc = "index"
74 
75 # The language for content autogenerated by Sphinx. Refer to documentation
76 # for a list of supported languages.
77 #
78 # This is also used if you do content translation via gettext catalogs.
79 # Usually you set "language" from the command line for these cases.
80 language = None
81 
82 # List of patterns, relative to source directory, that match files and
83 # directories to ignore when looking for source files.
84 # This pattern also affects html_static_path and html_extra_path.
85 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "_templates"]
86 
87 # The name of the Pygments (syntax highlighting) style to use.
88 pygments_style = None
89 
90 
91 # -- Options for HTML output -------------------------------------------------
92 
93 # The theme to use for HTML and HTML Help pages. See the documentation for
94 # a list of builtin themes.
95 #
96 html_theme = "sphinx_rtd_theme"
97 
98 
99 # Theme options are theme-specific and customize the look and feel of a theme
100 # further. For a list of options available for each theme, see the
101 # documentation.
102 #
103 # html_theme_options = {}
104 
105 # Add any paths that contain custom static files (such as style sheets) here,
106 # relative to this directory. They are copied after the builtin static files,
107 # so a file named "default.css" will overwrite the builtin "default.css".
108 html_static_path = ["_static"]
109 
110 # Custom sidebar templates, must be a dictionary that maps document names
111 # to template names.
112 #
113 # The default sidebars (for documents that don't match any pattern) are
114 # defined by theme itself. Builtin themes are using these templates by
115 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
116 # 'searchbox.html']``.
117 #
118 # html_sidebars = {}
119 
120 
121 # -- Options for HTMLHelp output ---------------------------------------------
122 
123 # Output file base name for HTML help builder.
124 htmlhelp_basename = "moveit_coredoc"
125 
126 
127 # -- Options for LaTeX output ------------------------------------------------
128 
129 latex_elements = {
130  # The paper size ('letterpaper' or 'a4paper').
131  #
132  # 'papersize': 'letterpaper',
133  # The font size ('10pt', '11pt' or '12pt').
134  #
135  # 'pointsize': '10pt',
136  # Additional stuff for the LaTeX preamble.
137  #
138  # 'preamble': '',
139  # Latex figure (float) alignment
140  #
141  # 'figure_align': 'htbp',
142 }
143 
144 # Grouping the document tree into LaTeX files. List of tuples
145 # (source start file, target name, title,
146 # author, documentclass [howto, manual, or own class]).
147 latex_documents = [
148  (master_doc, "moveit_core.tex", "moveit\\_core Documentation", "peter", "manual"),
149 ]
150 
151 
152 # -- Options for manual page output ------------------------------------------
153 
154 # One entry per manual page. List of tuples
155 # (source start file, name, description, authors, manual section).
156 man_pages = [(master_doc, "moveit_core", "moveit_core Documentation", [author], 1)]
157 
158 
159 # -- Options for Texinfo output ----------------------------------------------
160 
161 # Grouping the document tree into Texinfo files. List of tuples
162 # (source start file, target name, title, author,
163 # dir menu entry, description, category)
164 texinfo_documents = [
165  (
166  master_doc,
167  "moveit_core",
168  "moveit_core Documentation",
169  author,
170  "moveit_core",
171  "One line description of project.",
172  "Miscellaneous",
173  ),
174 ]
175 
176 
177 # -- Options for Epub output -------------------------------------------------
178 
179 # Bibliographic Dublin Core info.
180 epub_title = project
181 
182 # The unique identifier of the text. This can be a ISBN number
183 # or the project homepage.
184 #
185 # epub_identifier = ''
186 
187 # A unique identification for the text.
188 #
189 # epub_uid = ''
190 
191 # A list of files that should not be packed into the epub file.
192 epub_exclude_files = ["search.html"]
193 
194 
195 # -- Extension configuration -------------------------------------------------
196 
197 # -- Options for intersphinx extension ---------------------------------------
198 
199 # Example configuration for intersphinx: refer to the Python standard library.
200 intersphinx_mapping = {"https://docs.python.org/3": None}