|
| 1 | +# Copyright 2018 Open Source Robotics Foundation, Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# -*- coding: utf-8 -*- |
| 16 | +# |
| 17 | +# Configuration file for the Sphinx documentation builder. |
| 18 | +# |
| 19 | +# This file does only contain a selection of the most common options. For a |
| 20 | +# full list see the documentation: |
| 21 | +# http://www.sphinx-doc.org/en/stable/config |
| 22 | + |
| 23 | +# -- Path setup -------------------------------------------------------------- |
| 24 | + |
| 25 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 26 | +# add these directories to sys.path here. If the directory is relative to the |
| 27 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 28 | +# |
| 29 | +import os |
| 30 | +import sys |
| 31 | +# The python interpreter that executes this conf.py file will not have this |
| 32 | +# package's modules in the system path which will lead to import failures when |
| 33 | +# running sphinx-autodoc. As a workaround, the sphinx_builder.py script in |
| 34 | +# rosdoc2 will copy this package's modules along with this conf.py into a folder |
| 35 | +# with the same name of this package within the docs_build directory. |
| 36 | +# Hence we add the parent folder to the system path so that the modules from |
| 37 | +# this package can be imported. |
| 38 | +sys.path.insert(0, os.path.abspath('.')) |
| 39 | + |
| 40 | + |
| 41 | +# -- Project information ----------------------------------------------------- |
| 42 | +# type: ignore |
| 43 | + |
| 44 | +project = 'launch_ros' |
| 45 | +copyright = '2024, Open Source Robotics Foundation, Inc.' # noqa |
| 46 | +author = 'Open Source Robotics Foundation, Inc.' |
| 47 | + |
| 48 | +# The short X.Y version |
| 49 | +version = '' |
| 50 | +# The full version, including alpha/beta/rc tags |
| 51 | +release = '0.27.2' |
| 52 | + |
| 53 | + |
| 54 | +# -- General configuration --------------------------------------------------- |
| 55 | + |
| 56 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 57 | +# |
| 58 | +# needs_sphinx = '1.0' |
| 59 | + |
| 60 | +# Add any Sphinx extension module names here, as strings. They can be |
| 61 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 62 | +# ones. |
| 63 | +extensions = [ |
| 64 | + 'sphinx.ext.autodoc', |
| 65 | + 'sphinx.ext.doctest', |
| 66 | + 'sphinx.ext.intersphinx', |
| 67 | + 'sphinx.ext.todo', |
| 68 | + 'sphinx.ext.coverage', |
| 69 | + 'sphinx.ext.mathjax', |
| 70 | + 'sphinx.ext.ifconfig', |
| 71 | + 'sphinx.ext.viewcode', |
| 72 | + 'sphinx.ext.githubpages', |
| 73 | +] |
| 74 | + |
| 75 | +# autodoc settings |
| 76 | +autodoc_default_options = { |
| 77 | + 'special-members': '__init__', |
| 78 | + 'class-doc-from': 'class', |
| 79 | +} |
| 80 | +autodoc_class_signature = 'separated' |
| 81 | + |
| 82 | +# Add any paths that contain templates here, relative to this directory. |
| 83 | +templates_path = ['_templates'] |
| 84 | + |
| 85 | +# The suffix(es) of source filenames. |
| 86 | +# You can specify multiple suffix as a list of string: |
| 87 | +# |
| 88 | +# source_suffix = ['.rst', '.md'] |
| 89 | +source_suffix = '.rst' |
| 90 | + |
| 91 | +# The master toctree document. |
| 92 | +master_doc = 'index' |
| 93 | + |
| 94 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 95 | +# for a list of supported languages. |
| 96 | +# |
| 97 | +# This is also used if you do content translation via gettext catalogs. |
| 98 | +# Usually you set "language" from the command line for these cases. |
| 99 | +language = None |
| 100 | + |
| 101 | +# List of patterns, relative to source directory, that match files and |
| 102 | +# directories to ignore when looking for source files. |
| 103 | +# This pattern also affects html_static_path and html_extra_path. |
| 104 | +# |
| 105 | +# exclude_patterns = [] |
| 106 | + |
| 107 | +# The name of the Pygments (syntax highlighting) style to use. |
| 108 | +pygments_style = 'sphinx' |
| 109 | + |
| 110 | + |
| 111 | +# -- Options for HTML output ------------------------------------------------- |
| 112 | + |
| 113 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 114 | +# a list of builtin themes. |
| 115 | +# |
| 116 | +html_theme = 'alabaster' |
| 117 | + |
| 118 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 119 | +# further. For a list of options available for each theme, see the |
| 120 | +# documentation. |
| 121 | +# |
| 122 | +# html_theme_options = {} |
| 123 | + |
| 124 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 125 | +# relative to this directory. They are copied after the builtin static files, |
| 126 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 127 | +# html_static_path = ['_static'] |
| 128 | + |
| 129 | +# Custom sidebar templates, must be a dictionary that maps document names |
| 130 | +# to template names. |
| 131 | +# |
| 132 | +# The default sidebars (for documents that don't match any pattern) are |
| 133 | +# defined by theme itself. Builtin themes are using these templates by |
| 134 | +# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
| 135 | +# 'searchbox.html']``. |
| 136 | +# |
| 137 | +# html_sidebars = {} |
| 138 | + |
| 139 | + |
| 140 | +# -- Options for HTMLHelp output --------------------------------------------- |
| 141 | + |
| 142 | +# Output file base name for HTML help builder. |
| 143 | +htmlhelp_basename = 'launchdoc' |
| 144 | + |
| 145 | + |
| 146 | +# -- Options for LaTeX output ------------------------------------------------ |
| 147 | + |
| 148 | +# latex_elements: dict[str, str] = { |
| 149 | +# # The paper size ('letterpaper' or 'a4paper'). |
| 150 | + |
| 151 | +# 'papersize': 'letterpaper', |
| 152 | + |
| 153 | +# # The font size ('10pt', '11pt' or '12pt'). |
| 154 | + |
| 155 | +# 'pointsize': '10pt', |
| 156 | + |
| 157 | +# # Additional stuff for the LaTeX preamble. |
| 158 | + |
| 159 | +# 'preamble': '', |
| 160 | + |
| 161 | +# # Latex figure (float) alignment |
| 162 | + |
| 163 | +# 'figure_align': 'htbp', |
| 164 | +# } |
| 165 | + |
| 166 | +# Grouping the document tree into LaTeX files. List of tuples |
| 167 | +# (source start file, target name, title, |
| 168 | +# author, documentclass [howto, manual, or own class]). |
| 169 | +latex_documents = [ |
| 170 | + (master_doc, 'launch_ros.tex', 'launch_ros Documentation', |
| 171 | + 'Open Source Robotics Foundation, Inc.', 'manual'), |
| 172 | +] |
| 173 | + |
| 174 | + |
| 175 | +# -- Options for manual page output ------------------------------------------ |
| 176 | + |
| 177 | +# One entry per manual page. List of tuples |
| 178 | +# (source start file, name, description, authors, manual section). |
| 179 | +man_pages = [ |
| 180 | + (master_doc, 'launch_ros', 'launch_ros Documentation', |
| 181 | + [author], 1) |
| 182 | +] |
| 183 | + |
| 184 | + |
| 185 | +# -- Options for Texinfo output ---------------------------------------------- |
| 186 | + |
| 187 | +# Grouping the document tree into Texinfo files. List of tuples |
| 188 | +# (source start file, target name, title, author, |
| 189 | +# dir menu entry, description, category) |
| 190 | +texinfo_documents = [ |
| 191 | + (master_doc, 'launch_ros', 'launch_ros Documentation', |
| 192 | + author, 'launch_ros', 'One line description of project.', |
| 193 | + 'Miscellaneous'), |
| 194 | +] |
| 195 | + |
| 196 | + |
| 197 | +# -- Extension configuration ------------------------------------------------- |
| 198 | + |
| 199 | +# -- Options for intersphinx extension --------------------------------------- |
| 200 | + |
| 201 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 202 | +intersphinx_mapping = {'https://docs.python.org/': None} |
| 203 | + |
| 204 | +# -- Options for todo extension ---------------------------------------------- |
| 205 | + |
| 206 | +# If true, `todo` and `todoList` produce output, else they produce nothing. |
| 207 | +todo_include_todos = True |
0 commit comments