blob: 2d5c49ff9fc487d31707045aa1af71ba72a1ae51 [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
15import os
16import sys
17
Jude Cross986e3f52017-07-24 14:57:20 -070018import openstackdocstheme
Jude Cross986e3f52017-07-24 14:57:20 -070019
Michael Johnson34139b02017-03-15 10:31:10 -070020sys.path.insert(0, os.path.abspath('../..'))
Jude Cross986e3f52017-07-24 14:57:20 -070021sys.path.insert(0, os.path.abspath('.'))
22
Michael Johnson34139b02017-03-15 10:31:10 -070023# -- General configuration ----------------------------------------------------
24
25# Add any Sphinx extension module names here, as strings. They can be
26# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
27extensions = [
28 'sphinx.ext.autodoc',
Jude Cross986e3f52017-07-24 14:57:20 -070029 'sphinx.ext.viewcode',
30 'openstackdocstheme',
Adam Harwell008dbec2018-05-16 00:35:36 -070031 'oslo_config.sphinxext',
32 'sphinxcontrib.apidoc'
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'
48copyright = u'2017, OpenStack Foundation'
49
50# 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.
58pygments_style = 'sphinx'
59
Jude Cross986e3f52017-07-24 14:57:20 -070060# A list of ignored prefixes for module index sorting.
61modindex_common_prefix = ['octavia_tempest_plugin.']
62
Michael Johnson34139b02017-03-15 10:31:10 -070063# -- Options for HTML output --------------------------------------------------
64
65# The theme to use for HTML and HTML Help pages. Major themes that come with
66# Sphinx are currently 'default' and 'sphinxdoc'.
67# html_theme_path = ["."]
68# html_theme = '_theme'
69# html_static_path = ['static']
70
Jude Cross986e3f52017-07-24 14:57:20 -070071html_theme = 'openstackdocs'
72
73html_last_updated_fmt = '%Y-%m-%d %H:%M'
74
Michael Johnson34139b02017-03-15 10:31:10 -070075# Output file base name for HTML help builder.
76htmlhelp_basename = '%sdoc' % project
77
Jude Cross986e3f52017-07-24 14:57:20 -070078# If false, no module index is generated.
79html_domain_indices = True
80
81# If false, no index is generated.
82html_use_index = True
83
Michael Johnson34139b02017-03-15 10:31:10 -070084# Grouping the document tree into LaTeX files. List of tuples
85# (source start file, target name, title, author, documentclass
86# [howto/manual]).
87latex_documents = [
88 ('index',
89 '%s.tex' % project,
90 u'%s Documentation' % project,
91 u'OpenStack Foundation', 'manual'),
92]
93
94# Example configuration for intersphinx: refer to the Python standard library.
95#intersphinx_mapping = {'http://docs.python.org/': None}
Jude Cross986e3f52017-07-24 14:57:20 -070096
97repository_name = 'openstack/octavia-tempest-plugin'
98bug_project = '910'
99bug_tag = 'docs'
100
Adam Harwell008dbec2018-05-16 00:35:36 -0700101apidoc_output_dir = '_build/modules'
102apidoc_module_dir = '../../octavia_tempest_plugin'
103apidoc_excluded_paths = []