|
19 | 19 | import os
|
20 | 20 | import sys
|
21 | 21 |
|
22 |
| -from nova.version import version_info |
23 |
| - |
24 | 22 | # If extensions (or modules to document with autodoc) are in another directory,
|
25 | 23 | # add these directories to sys.path here. If the directory is relative to the
|
26 | 24 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
27 |
| -sys.path.insert(0, os.path.abspath('../../')) |
28 | 25 | sys.path.insert(0, os.path.abspath('../'))
|
29 |
| -sys.path.insert(0, os.path.abspath('./')) |
30 | 26 |
|
31 | 27 | # -- General configuration ----------------------------------------------------
|
32 | 28 |
|
33 | 29 | # Add any Sphinx extension module names here, as strings. They can be
|
34 | 30 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
35 | 31 |
|
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 | +] |
51 | 47 |
|
52 | 48 | # openstackdocstheme options
|
53 | 49 | repository_name = 'openstack/nova'
|
|
70 | 66 |
|
71 | 67 | todo_include_todos = True
|
72 | 68 |
|
73 |
| -# The suffix of source filenames. |
74 |
| -source_suffix = '.rst' |
75 |
| - |
76 | 69 | # The master toctree document.
|
77 | 70 | master_doc = 'index'
|
78 | 71 |
|
79 | 72 | # General information about the project.
|
80 | 73 | project = u'nova'
|
81 | 74 | copyright = u'2010-present, OpenStack Foundation'
|
82 | 75 |
|
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 |
| - |
108 | 76 | # The name of the Pygments (syntax highlighting) style to use.
|
109 | 77 | pygments_style = 'sphinx'
|
110 | 78 |
|
111 |
| -# A list of ignored prefixes for module index sorting. |
112 |
| -modindex_common_prefix = ['nova.'] |
113 |
| - |
114 | 79 | # -- Options for man page output ----------------------------------------------
|
115 | 80 |
|
116 | 81 | # Grouping the document tree for man pages.
|
|
154 | 119 | # robots.txt.
|
155 | 120 | html_extra_path = ['_extra']
|
156 | 121 |
|
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' |
160 | 122 |
|
161 | 123 | # -- Options for LaTeX output -------------------------------------------------
|
162 | 124 |
|
|
168 | 130 | u'OpenStack Foundation', 'manual'),
|
169 | 131 | ]
|
170 | 132 |
|
| 133 | + |
171 | 134 | # -- Options for openstackdocstheme -------------------------------------------
|
172 | 135 |
|
173 | 136 | # keep this ordered to keep mriedem happy
|
|
0 commit comments