Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 11 | # implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | import os |
| 16 | import sys |
| 17 | |
| 18 | sys.path.insert(0, os.path.abspath('../..')) |
| 19 | # -- General configuration ---------------------------------------------------- |
| 20 | |
| 21 | # Add any Sphinx extension module names here, as strings. They can be |
| 22 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 23 | extensions = [ |
| 24 | 'sphinx.ext.autodoc', |
| 25 | 'openstackdocstheme', |
| 26 | #'sphinx.ext.intersphinx', |
| 27 | ] |
| 28 | |
| 29 | # autodoc generation is a bit aggressive and a nuisance when doing heavy |
| 30 | # text edit cycles. |
| 31 | # execute "export SPHINX_DEBUG=1" in your terminal to disable |
| 32 | |
| 33 | # The suffix of source filenames. |
| 34 | source_suffix = '.rst' |
| 35 | |
| 36 | # The master toctree document. |
| 37 | master_doc = 'index' |
| 38 | |
| 39 | # General information about the project. |
wangjiaqi07 | 24782ee | 2022-08-25 09:08:32 +0800 | [diff] [blame^] | 40 | project = 'openstack' |
| 41 | copyright = '2017, OpenStack Developers' |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 42 | |
| 43 | # openstackdocstheme options |
Andreas Jaeger | c78c6c7 | 2020-06-02 14:01:23 +0200 | [diff] [blame] | 44 | openstackdocs_repo_name = 'openstack/openstack' |
| 45 | openstackdocs_auto_name = False |
| 46 | openstackdocs_use_storyboard = True |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 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. |
Andreas Jaeger | c78c6c7 | 2020-06-02 14:01:23 +0200 | [diff] [blame] | 56 | pygments_style = 'native' |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 57 | |
| 58 | # -- Options for HTML output -------------------------------------------------- |
| 59 | |
| 60 | # The theme to use for HTML and HTML Help pages. Major themes that come with |
| 61 | # Sphinx are currently 'default' and 'sphinxdoc'. |
| 62 | # html_theme_path = ["."] |
| 63 | # html_theme = '_theme' |
| 64 | # html_static_path = ['static'] |
| 65 | html_theme = 'openstackdocs' |
| 66 | |
| 67 | # Output file base name for HTML help builder. |
| 68 | htmlhelp_basename = '%sdoc' % project |
| 69 | |
| 70 | # Grouping the document tree into LaTeX files. List of tuples |
| 71 | # (source start file, target name, title, author, documentclass |
| 72 | # [howto/manual]). |
| 73 | latex_documents = [ |
| 74 | ('index', |
| 75 | '%s.tex' % project, |
wangjiaqi07 | 24782ee | 2022-08-25 09:08:32 +0800 | [diff] [blame^] | 76 | '%s Documentation' % project, |
| 77 | 'OpenStack Developers', 'manual'), |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 78 | ] |
| 79 | |
| 80 | # Example configuration for intersphinx: refer to the Python standard library. |
| 81 | #intersphinx_mapping = {'http://docs.python.org/': None} |