blob: 76cda40532a50ba7cbab081eea8a98980568362c [file] [log] [blame]
Michael Johnson34139b02017-03-15 10:31:10 -07001# -*- 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
Michael Johnson791fefb2019-09-13 10:48:05 -070015import datetime
Michael Johnson34139b02017-03-15 10:31:10 -070016import os
17import sys
18
19sys.path.insert(0, os.path.abspath('../..'))
Jude Cross986e3f52017-07-24 14:57:20 -070020sys.path.insert(0, os.path.abspath('.'))
21
Michael Johnson34139b02017-03-15 10:31:10 -070022# -- General configuration ----------------------------------------------------
23
24# Add any Sphinx extension module names here, as strings. They can be
25# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
26extensions = [
27 'sphinx.ext.autodoc',
Jude Cross986e3f52017-07-24 14:57:20 -070028 'sphinx.ext.viewcode',
29 'openstackdocstheme',
Adam Harwell008dbec2018-05-16 00:35:36 -070030 'oslo_config.sphinxext',
Michael Johnson791fefb2019-09-13 10:48:05 -070031 'sphinxcontrib.apidoc',
32 'sphinxcontrib.rsvgconverter'
Michael Johnson34139b02017-03-15 10:31:10 -070033]
34
35# autodoc generation is a bit aggressive and a nuisance when doing heavy
36# text edit cycles.
37# execute "export SPHINX_DEBUG=1" in your terminal to disable
Jude Cross986e3f52017-07-24 14:57:20 -070038templates_path = ['_templates']
Michael Johnson34139b02017-03-15 10:31:10 -070039
40# The suffix of source filenames.
41source_suffix = '.rst'
42
43# The master toctree document.
44master_doc = 'index'
45
46# General information about the project.
47project = u'octavia-tempest-plugin'
Michael Johnson791fefb2019-09-13 10:48:05 -070048copyright = u'2017-2019, OpenStack Foundation'
49
Michael Johnson34139b02017-03-15 10:31:10 -070050# If true, '()' will be appended to :func: etc. cross-reference text.
51add_function_parentheses = True
52
53# If true, the current module name will be prepended to all description
54# unit titles (such as .. function::).
Jude Cross986e3f52017-07-24 14:57:20 -070055add_module_names = False
Michael Johnson34139b02017-03-15 10:31:10 -070056
57# The name of the Pygments (syntax highlighting) style to use.
Andreas Jaegerd2c48812020-05-28 14:32:42 +020058pygments_style = 'native'
Michael Johnson34139b02017-03-15 10:31:10 -070059
Jude Cross986e3f52017-07-24 14:57:20 -070060# A list of ignored prefixes for module index sorting.
61modindex_common_prefix = ['octavia_tempest_plugin.']
62
Andreas Jaegerd2c48812020-05-28 14:32:42 +020063openstackdocs_repo_name = 'openstack/octavia-tempest-plugin'
64openstackdocs_pdf_link = True
Richard Cruise637e9422026-01-08 09:03:12 +000065openstackdocs_bug_project = 'octavia'
66openstackdocs_bug_tag = 'docs'
Michael Johnson791fefb2019-09-13 10:48:05 -070067
68apidoc_output_dir = '_build/modules'
69apidoc_module_dir = '../../octavia_tempest_plugin'
70apidoc_excluded_paths = []
71
Michael Johnson34139b02017-03-15 10:31:10 -070072# -- Options for HTML output --------------------------------------------------
73
74# The theme to use for HTML and HTML Help pages. Major themes that come with
75# Sphinx are currently 'default' and 'sphinxdoc'.
76# html_theme_path = ["."]
77# html_theme = '_theme'
78# html_static_path = ['static']
79
Jude Cross986e3f52017-07-24 14:57:20 -070080html_theme = 'openstackdocs'
81
Jude Cross986e3f52017-07-24 14:57:20 -070082
Michael Johnson34139b02017-03-15 10:31:10 -070083# Output file base name for HTML help builder.
84htmlhelp_basename = '%sdoc' % project
85
Jude Cross986e3f52017-07-24 14:57:20 -070086# If false, no module index is generated.
87html_domain_indices = True
88
89# If false, no index is generated.
90html_use_index = True
91
Michael Johnson791fefb2019-09-13 10:48:05 -070092# -- Options for LaTeX output -------------------------------------------------
93
94# Fix Unicode character for sphinx_feature_classification
95# Sphinx default latex engine (pdflatex) doesn't know much unicode
96latex_preamble = r"""
97\usepackage{newunicodechar}
98\newunicodechar{✖}{\sffamily X}
99\setcounter{tocdepth}{2}
100\authoraddress{\textcopyright %s OpenStack Foundation}
101""" % datetime.datetime.now().year
102
103latex_elements = {
104 # The paper size ('letterpaper' or 'a4paper').
105 # 'papersize': 'letterpaper',
106
107 # The font size ('10pt', '11pt' or '12pt').
108 # 'pointsize': '10pt',
109
110 # Additional stuff for the LaTeX preamble.
111 # openany: Skip blank pages in generated PDFs
112 'extraclassoptions': 'openany,oneside',
113 'makeindex': '',
114 'printindex': '',
115 'preamble': latex_preamble
116}
117
118# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
119# Some distros are missing xindy
120latex_use_xindy = False
121
122# Fix missing apostrophe
123smartquotes_excludes = {'builders': ['latex']}
124
Michael Johnson34139b02017-03-15 10:31:10 -0700125# Grouping the document tree into LaTeX files. List of tuples
126# (source start file, target name, title, author, documentclass
127# [howto/manual]).
Michael Johnson791fefb2019-09-13 10:48:05 -0700128latex_documents = [(
129 'index',
130 'doc-octavia-tempest-plugin.tex',
131 u'Octavia Tempest Plugin Documentation',
132 u'OpenStack Octavia Team',
133 'manual'
134)]
Michael Johnson34139b02017-03-15 10:31:10 -0700135
Michael Johnson791fefb2019-09-13 10:48:05 -0700136# The name of an image file (relative to this directory) to place at the top of
137# the title page.
138# latex_logo = None
Jude Cross986e3f52017-07-24 14:57:20 -0700139
Michael Johnson791fefb2019-09-13 10:48:05 -0700140# For "manual" documents, if this is true, then toplevel headings are parts,
141# not chapters.
142# latex_use_parts = False
Jude Cross986e3f52017-07-24 14:57:20 -0700143
Michael Johnson791fefb2019-09-13 10:48:05 -0700144# If true, show page references after internal links.
145# latex_show_pagerefs = False
146
147# If true, show URL addresses after external links.
148# latex_show_urls = False
149
150# Documents to append as an appendix to all manuals.
151# latex_appendices = []
152
153# If false, no module index is generated.
154latex_domain_indices = False