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 sys.path.insert(0, os.path.abspath('../..'))
18
19 # -- General configuration ----------------------------------------------------
20
21 # Add any Sphinx extension module names here, as strings. They can be
22 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
23 extensions = [
24 'sphinx.ext.autodoc',
25 'openstackdocstheme',
26 ]
27
28 # The suffix of source filenames.
29 source_suffix = '.rst'
30
31 # The master toctree document.
32 master_doc = 'index'
33
34 # General information about the project.
35 project = 'os-service-types'
36 copyright = '2017-, OpenStack Developers'
37
38 # openstackdocstheme options
39 openstackdocs_repo_name = 'openstack/os-service-types'
40 openstackdocs_auto_name = False
41 openstackdocs_use_storyboard = True
42
43 # If true, '()' will be appended to :func: etc. cross-reference text.
44 add_function_parentheses = True
45
46 # If true, the current module name will be prepended to all description
47 # unit titles (such as .. function::).
48 add_module_names = True
49
50 # The name of the Pygments (syntax highlighting) style to use.
51 pygments_style = 'native'
52
53 # -- Options for HTML output --------------------------------------------------
54
55 # The theme to use for HTML and HTML Help pages. Major themes that come with
56 # Sphinx are currently 'default' and 'sphinxdoc'.
57 # html_theme_path = ["."]
58 # html_theme = '_theme'
59 # html_static_path = ['static']
60 html_theme = 'openstackdocs'
61
62 # Grouping the document tree into LaTeX files. List of tuples
63 # (source start file, target name, title, author, documentclass
64 # [howto/manual]).
65 latex_documents = [
66 (
67 'index',
68 f'{project}.tex',
69 f'{project} Documentation',
70 'OpenStack Foundation',
71 'manual',
72 ),
73 ]