Debian Codegraph @

doc/source/conf.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10 # implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 import os
15 import sys
16
17 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
18 ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
19
20 sys.path.insert(0, os.path.abspath('../..'))
21 # -- General configuration ----------------------------------------------------
22
23 # Add any Sphinx extension module names here, as strings. They can be
24 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
25 extensions = [
26 'sphinx.ext.autodoc',
27 'openstackdocstheme',
28 'oslo_config.sphinxconfiggen',
29 'oslo_config.sphinxext',
30 'oslo_policy.sphinxpolicygen',
31 'oslo_policy.sphinxext',
32 'wsmeext.sphinxext',
33 'sphinxcontrib.pecanwsme.rest',
34 'sphinxcontrib.httpdomain',
35
36 # 'sphinx.ext.intersphinx',
37 ]
38
39 config_generator_config_file = os.path.join(
40 ROOT, 'etc/aetos/aetos-config-generator.conf')
41 sample_config_basename = '_static/aetos'
42
43 policy_generator_config_file = os.path.join(
44 ROOT, 'etc/aetos/aetos-policy-generator.conf'
45 )
46 sample_policy_basename = '_static/aetos'
47
48
49 # autodoc generation is a bit aggressive and a nuisance when doing heavy
50 # text edit cycles.
51 # execute "export SPHINX_DEBUG=1" in your terminal to disable
52
53 # The suffix of source filenames.
54 source_suffix = '.rst'
55
56 # The master toctree document.
57 master_doc = 'index'
58
59 # General information about the project.
60 project = 'aetos'
61 copyright = '2025, OpenStack Developers'
62
63 # openstackdocstheme options
64 openstackdocs_repo_name = 'openstack/aetos'
65 openstackdocs_bug_project = 'aetos'
66 openstackdocs_bug_tag = ''
67
68 # If true, '()' will be appended to :func: etc. cross-reference text.
69 add_function_parentheses = True
70
71 # If true, the current module name will be prepended to all description
72 # unit titles (such as .. function::).
73 add_module_names = True
74
75 # The name of the Pygments (syntax highlighting) style to use.
76 pygments_style = 'native'
77
78 # -- Options for HTML output --------------------------------------------------
79
80 # The theme to use for HTML and HTML Help pages. Major themes that come with
81 # Sphinx are currently 'default' and 'sphinxdoc'.
82 # html_theme_path = ["."]
83 # html_theme = '_theme'
84 # html_static_path = ['static']
85 html_theme = 'openstackdocs'
86
87 # Output file base name for HTML help builder.
88 htmlhelp_basename = '%sdoc' % project
89
90 # Grouping the document tree into LaTeX files. List of tuples
91 # (source start file, target name, title, author, documentclass
92 # [howto/manual]).
93 latex_documents = [
94 ('index',
95 '%s.tex' % project,
96 '%s Documentation' % project,
97 'OpenStack Developers', 'manual'),
98 ]
99
100 # Example configuration for intersphinx: refer to the Python standard library.
101 # intersphinx_mapping = {'http://docs.python.org/': None}