blob: 88b97183fd99c3687f2035e265b4e68d7fe6a81b [file] [log] [blame]
Chandan Kumar5e619872017-09-07 22:23:55 +05301# -*- 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
Elod Illesf2e985e2023-11-06 19:30:29 +010018def autodoc_skip_member_handler(app, what, name, obj, skip, options):
19 return skip or (what == "class" and not name.startswith("test"))
20
21def setup(app):
22 app.connect('autodoc-skip-member', autodoc_skip_member_handler)
23
24sys.path.insert(0, os.path.abspath('../../neutron_tempest_plugin'))
25
Chandan Kumar5e619872017-09-07 22:23:55 +053026# -- General configuration ----------------------------------------------------
27
28# Add any Sphinx extension module names here, as strings. They can be
29# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30extensions = [
31 'sphinx.ext.autodoc',
32 'openstackdocstheme',
Chandan Kumar5e619872017-09-07 22:23:55 +053033]
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
38
39# The suffix of source filenames.
40source_suffix = '.rst'
41
42# The master toctree document.
43master_doc = 'index'
44
45# General information about the project.
LiZekun8ad510e2022-06-06 19:36:41 +080046copyright = '2017, OpenStack Developers'
Chandan Kumar5e619872017-09-07 22:23:55 +053047
48# openstackdocstheme options
Andreas Jaeger7dc28572020-05-31 20:10:42 +020049openstackdocs_repo_name = 'openstack/neutron-tempest-plugin'
50openstackdocs_bug_project = 'neutron_tempest_plugin'
51openstackdocs_bug_tag = ''
Chandan Kumar5e619872017-09-07 22:23:55 +053052
53# If true, '()' will be appended to :func: etc. cross-reference text.
54add_function_parentheses = True
55
56# If true, the current module name will be prepended to all description
57# unit titles (such as .. function::).
58add_module_names = True
59
60# The name of the Pygments (syntax highlighting) style to use.
Andreas Jaeger7dc28572020-05-31 20:10:42 +020061pygments_style = 'native'
Chandan Kumar5e619872017-09-07 22:23:55 +053062
63# -- 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']
70html_theme = 'openstackdocs'
71
72# Output file base name for HTML help builder.
pengyuesheng88ff7432019-07-26 11:34:05 +080073htmlhelp_basename = 'openstackdoc'
Chandan Kumar5e619872017-09-07 22:23:55 +053074
75# Grouping the document tree into LaTeX files. List of tuples
76# (source start file, target name, title, author, documentclass
77# [howto/manual]).
78latex_documents = [
79 ('index',
pengyuesheng88ff7432019-07-26 11:34:05 +080080 'openstack.tex',
LiZekun8ad510e2022-06-06 19:36:41 +080081 'openstack Documentation',
82 'OpenStack Developers', 'manual'),
Chandan Kumar5e619872017-09-07 22:23:55 +053083]
84
85# Example configuration for intersphinx: refer to the Python standard library.
86#intersphinx_mapping = {'http://docs.python.org/': None}