okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [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 | |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 18 | sys.path.insert(0, os.path.abspath("../..")) |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 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 = [ |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 24 | "sphinx.ext.autodoc", |
| 25 | "openstackdocstheme", |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 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. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 34 | source_suffix = ".rst" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 35 | |
| 36 | # The master toctree document. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 37 | master_doc = "index" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 38 | |
| 39 | # General information about the project. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 40 | project = "staffeln" |
| 41 | copyright = "2017, OpenStack Developers" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 42 | |
| 43 | # openstackdocstheme options |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 44 | openstackdocs_repo_name = "openstack/staffeln" |
| 45 | openstackdocs_bug_project = ( |
| 46 | "replace with the name of the project on Launchpad or the ID from Storyboard" |
| 47 | ) |
| 48 | openstackdocs_bug_tag = "" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 49 | |
| 50 | # If true, '()' will be appended to :func: etc. cross-reference text. |
| 51 | add_function_parentheses = True |
| 52 | |
| 53 | # If true, the current module name will be prepended to all description |
| 54 | # unit titles (such as .. function::). |
| 55 | add_module_names = True |
| 56 | |
| 57 | # The name of the Pygments (syntax highlighting) style to use. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 58 | pygments_style = "native" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 59 | |
| 60 | # -- Options for HTML output -------------------------------------------------- |
| 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'] |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 67 | html_theme = "openstackdocs" |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 68 | |
| 69 | # Output file base name for HTML help builder. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 70 | htmlhelp_basename = "%sdoc" % project |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 71 | |
| 72 | # Grouping the document tree into LaTeX files. List of tuples |
| 73 | # (source start file, target name, title, author, documentclass |
| 74 | # [howto/manual]). |
| 75 | latex_documents = [ |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 76 | ( |
| 77 | "index", |
| 78 | "%s.tex" % project, |
| 79 | "%s Documentation" % project, |
| 80 | "OpenStack Developers", |
| 81 | "manual", |
| 82 | ), |
okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame] | 83 | ] |
| 84 | |
| 85 | # Example configuration for intersphinx: refer to the Python standard library. |
okozachenko1203 | fa747f2 | 2022-05-16 20:13:54 +1000 | [diff] [blame^] | 86 | # intersphinx_mapping = {'http://docs.python.org/': None} |