Debian Codegraph @

doc/source/conf.py

raw symbols SCIP
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.inheritance_diagram',
28 'sphinx.ext.viewcode',
29 'openstackdocstheme',
30 ]
31
32 # openstackdocstheme options
33 openstackdocs_repo_name = 'openstack/automaton'
34 openstackdocs_auto_name = False
35 openstackdocs_bug_project = 'automaton'
36 openstackdocs_bug_tag = ''
37
38 # autodoc generation is a bit aggressive and a nuisance when doing heavy
39 # text edit cycles.
40 # execute "export SPHINX_DEBUG=1" in your terminal to disable
41
42 # The suffix of source filenames.
43 source_suffix = '.rst'
44
45 # The master toctree document.
46 master_doc = 'index'
47
48 # General information about the project.
49 project = 'automaton'
50 copyright = '2013, OpenStack Foundation'
51
52 # If true, '()' will be appended to :func: etc. cross-reference text.
53 add_function_parentheses = True
54
55 # If true, the current module name will be prepended to all description
56 # unit titles (such as .. function::).
57 add_module_names = True
58
59 # The name of the Pygments (syntax highlighting) style to use.
60 pygments_style = 'native'
61
62 # -- Options for HTML output --------------------------------------------------
63
64 # The theme to use for HTML and HTML Help pages. Major themes that come with
65 # Sphinx are currently 'default' and 'sphinxdoc'.
66 # html_theme_path = ["."]
67 # html_theme = '_theme'
68 # html_static_path = ['static']
69 html_theme = 'openstackdocs'
70
71 # Output file base name for HTML help builder.
72 htmlhelp_basename = '%sdoc' % project
73
74 # Grouping the document tree into LaTeX files. List of tuples
75 # (source start file, target name, title, author, documentclass
76 # [howto/manual]).
77 latex_documents = [
78 ('index',
79 '%s.tex' % project,
80 '%s Documentation' % project,
81 'OpenStack Foundation', 'manual'),
82 ]