Skip to content

Commit 59f1f18

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "docs: Misc cleanups"
2 parents 45d66ab + ebbd84f commit 59f1f18

File tree

1 file changed

+16
-53
lines changed

1 file changed

+16
-53
lines changed

doc/source/conf.py

Lines changed: 16 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,31 @@
1919
import os
2020
import sys
2121

22-
from nova.version import version_info
23-
2422
# If extensions (or modules to document with autodoc) are in another directory,
2523
# add these directories to sys.path here. If the directory is relative to the
2624
# documentation root, use os.path.abspath to make it absolute, like shown here.
27-
sys.path.insert(0, os.path.abspath('../../'))
2825
sys.path.insert(0, os.path.abspath('../'))
29-
sys.path.insert(0, os.path.abspath('./'))
3026

3127
# -- General configuration ----------------------------------------------------
3228

3329
# Add any Sphinx extension module names here, as strings. They can be
3430
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
3531

36-
extensions = ['sphinx.ext.autodoc',
37-
'sphinx.ext.todo',
38-
'openstackdocstheme',
39-
'sphinx.ext.coverage',
40-
'sphinx.ext.graphviz',
41-
'sphinx_feature_classification.support_matrix',
42-
'oslo_config.sphinxconfiggen',
43-
'oslo_config.sphinxext',
44-
'oslo_policy.sphinxpolicygen',
45-
'oslo_policy.sphinxext',
46-
'ext.versioned_notifications',
47-
'ext.feature_matrix',
48-
'sphinxcontrib.actdiag',
49-
'sphinxcontrib.seqdiag',
50-
]
32+
extensions = [
33+
'sphinx.ext.autodoc',
34+
'sphinx.ext.todo',
35+
'sphinx.ext.graphviz',
36+
'openstackdocstheme',
37+
'sphinx_feature_classification.support_matrix',
38+
'oslo_config.sphinxconfiggen',
39+
'oslo_config.sphinxext',
40+
'oslo_policy.sphinxpolicygen',
41+
'oslo_policy.sphinxext',
42+
'ext.versioned_notifications',
43+
'ext.feature_matrix',
44+
'sphinxcontrib.actdiag',
45+
'sphinxcontrib.seqdiag',
46+
]
5147

5248
# openstackdocstheme options
5349
repository_name = 'openstack/nova'
@@ -70,47 +66,16 @@
7066

7167
todo_include_todos = True
7268

73-
# The suffix of source filenames.
74-
source_suffix = '.rst'
75-
7669
# The master toctree document.
7770
master_doc = 'index'
7871

7972
# General information about the project.
8073
project = u'nova'
8174
copyright = u'2010-present, OpenStack Foundation'
8275

83-
# The version info for the project you're documenting, acts as replacement for
84-
# |version| and |release|, also used in various other places throughout the
85-
# built documents.
86-
#
87-
# The full version, including alpha/beta/rc tags.
88-
release = version_info.release_string()
89-
# The short X.Y version.
90-
version = version_info.version_string()
91-
92-
# A list of glob-style patterns that should be excluded when looking for
93-
# source files. They are matched against the source file names relative to the
94-
# source directory, using slashes as directory separators on all platforms.
95-
exclude_patterns = [
96-
'api/nova.wsgi.nova-*',
97-
'api/nova.tests.*',
98-
]
99-
100-
# If true, the current module name will be prepended to all description
101-
# unit titles (such as .. function::).
102-
add_module_names = False
103-
104-
# If true, sectionauthor and moduleauthor directives will be shown in the
105-
# output. They are ignored by default.
106-
show_authors = False
107-
10876
# The name of the Pygments (syntax highlighting) style to use.
10977
pygments_style = 'sphinx'
11078

111-
# A list of ignored prefixes for module index sorting.
112-
modindex_common_prefix = ['nova.']
113-
11479
# -- Options for man page output ----------------------------------------------
11580

11681
# Grouping the document tree for man pages.
@@ -154,9 +119,6 @@
154119
# robots.txt.
155120
html_extra_path = ['_extra']
156121

157-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158-
# using the given strftime format.
159-
html_last_updated_fmt = '%Y-%m-%d %H:%M'
160122

161123
# -- Options for LaTeX output -------------------------------------------------
162124

@@ -168,6 +130,7 @@
168130
u'OpenStack Foundation', 'manual'),
169131
]
170132

133+
171134
# -- Options for openstackdocstheme -------------------------------------------
172135

173136
# keep this ordered to keep mriedem happy

0 commit comments

Comments
 (0)