Debian Codegraph @

doc/source/conf.py

raw
1 # Copyright (C) 2020 Red Hat, 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
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 import os
17 import sys
18
19 sys.path.insert(0, os.path.abspath('../..'))
20 # -- General configuration ----------------------------------------------------
21
22 # Add any Sphinx extension module names here, as strings. They can be
23 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
24 extensions = [
25 'sphinx.ext.autodoc',
26 'sphinx.ext.doctest',
27 'sphinx.ext.napoleon',
28 'openstackdocstheme',
29 ]
30
31 # openstackdocstheme options
32 openstackdocs_repo_name = 'openstack/futurist'
33 openstackdocs_auto_name = False
34 openstackdocs_bug_project = 'futurist'
35 openstackdocs_bug_tag = ''
36
37 # autodoc generation is a bit aggressive and a nuisance when doing heavy
38 # text edit cycles.
39 # execute "export SPHINX_DEBUG=1" in your terminal to disable
40
41 # The suffix of source filenames.
42 source_suffix = '.rst'
43
44 # The master toctree document.
45 master_doc = 'index'
46
47 # General information about the project.
48 project = 'futurist'
49 copyright = '2013, OpenStack Foundation'
50
51 # If true, '()' will be appended to :func: etc. cross-reference text.
52 add_function_parentheses = True
53
54 # If true, the current module name will be prepended to all description
55 # unit titles (such as .. function::).
56 add_module_names = True
57
58 # The name of the Pygments (syntax highlighting) style to use.
59 pygments_style = 'native'
60
61 # -- Options for HTML output --------------------------------------------------
62
63 # The theme to use for HTML and HTML Help pages. Major themes that come with
64 # Sphinx are currently 'default' and 'sphinxdoc'.
65 # html_theme_path = ["."]
66 # html_theme = '_theme'
67 # html_static_path = ['static']
68 html_theme = 'openstackdocs'
69
70 # Output file base name for HTML help builder.
71 htmlhelp_basename = '%sdoc' % project
72
73 # Grouping the document tree into LaTeX files. List of tuples
74 # (source start file, target name, title, author, documentclass
75 # [howto/manual]).
76 latex_documents = [
77 ('index',
78 '%s.tex' % project,
79 '%s Documentation' % project,
80 'OpenStack Foundation', 'manual'),
81 ]