Debian Codegraph @

doc/source/conf.py

raw
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2020 Red Hat, Inc.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 import os
18 import sys
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 ]
29
30 # autodoc generation is a bit aggressive and a nuisance when doing heavy
31 # text edit cycles.
32 # execute "export SPHINX_DEBUG=1" in your terminal to disable
33
34 # The suffix of source filenames.
35 source_suffix = '.rst'
36
37 # The master toctree document.
38 master_doc = 'index'
39
40 # General information about the project.
41 project = u'sphinx-feature-classification'
42 copyright = u'2017, OpenStack Foundation'
43
44 # openstackdocstheme options
45 openstackdocs_repo_name = 'openstack/sphinx-feature-classification'
46 openstackdocs_use_storyboard = True
47
48 # If true, '()' will be appended to :func: etc. cross-reference text.
49 add_function_parentheses = True
50
51 # If true, the current module name will be prepended to all description
52 # unit titles (such as .. function::).
53 add_module_names = True
54
55 # The name of the Pygments (syntax highlighting) style to use.
56 pygments_style = 'native'
57
58 # -- Options for HTML output --------------------------------------------------
59
60 html_theme = 'openstackdocs'
61
62 # The theme to use for HTML and HTML Help pages. Major themes that come with
63 # Sphinx are currently 'default' and 'sphinxdoc'.
64 # html_theme_path = ["."]
65 # html_theme = '_theme'
66 # html_static_path = ['static']
67
68 # Output file base name for HTML help builder.
69 htmlhelp_basename = '%sdoc' % project
70
71 # Grouping the document tree into LaTeX files. List of tuples
72 # (source start file, target name, title, author, documentclass
73 # [howto/manual]).
74 latex_documents = [
75 ('index',
76 '%s.tex' % project,
77 u'%s Documentation' % project,
78 u'OpenStack Foundation', 'manual'),
79 ]