blob: 4fa65e6c97a44fa3b0712c8d165032df3ce3a2f6 [file] [log] [blame]
DavidPurcell663aedf2017-01-03 10:01:14 -05001# -*- 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
Felipe Monteiro47c43cb2018-11-05 17:15:30 +000018# If extensions (or modules to document with autodoc) are in another directory,
19# add these directories to sys.path here. If the directory is relative to the
20# documentation root, use os.path.abspath to make it absolute, like shown here.
21sys.path.insert(0, os.path.abspath('../../'))
22sys.path.insert(0, os.path.abspath('../'))
23sys.path.insert(0, os.path.abspath('./'))
24
DavidPurcell663aedf2017-01-03 10:01:14 -050025# -- General configuration ----------------------------------------------------
26
27# Add any Sphinx extension module names here, as strings. They can be
28# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
29extensions = [
30 'sphinx.ext.autodoc',
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010031 'sphinx.ext.todo',
32 'sphinx.ext.viewcode',
Masayuki Igawa94e6b182019-09-18 15:08:56 +090033 'sphinxcontrib.rsvgconverter',
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010034 'openstackdocstheme',
35 'oslo_config.sphinxconfiggen',
Felipe Monteiro47c43cb2018-11-05 17:15:30 +000036 'sphinxcontrib.apidoc',
DavidPurcell663aedf2017-01-03 10:01:14 -050037]
38
Felipe Monteiro47c43cb2018-11-05 17:15:30 +000039# sphinxcontrib.apidoc options
40apidoc_module_dir = '../../patrole_tempest_plugin'
41apidoc_output_dir = 'framework/code'
42apidoc_excluded_paths = [
43 'hacking',
44 'hacking/*',
45 'tests',
46 'tests/*',
47 'config.py',
48 'plugin.py',
49 'version.py'
50]
51apidoc_separate_modules = True
52
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010053config_generator_config_file = '../../etc/config-generator.patrole.conf'
54sample_config_basename = '_static/patrole'
55
DavidPurcell663aedf2017-01-03 10:01:14 -050056# autodoc generation is a bit aggressive and a nuisance when doing heavy
57# text edit cycles.
58# execute "export SPHINX_DEBUG=1" in your terminal to disable
59
60# The suffix of source filenames.
61source_suffix = '.rst'
62
63# The master toctree document.
64master_doc = 'index'
65
66# General information about the project.
qiufossen2d038b52019-07-16 04:17:57 -040067
raiesmh08a6348e12017-02-07 00:24:59 +053068copyright = u'2017, Patrole Developers'
DavidPurcell663aedf2017-01-03 10:01:14 -050069
70# If true, '()' will be appended to :func: etc. cross-reference text.
71add_function_parentheses = True
72
73# If true, the current module name will be prepended to all description
74# unit titles (such as .. function::).
75add_module_names = True
76
77# The name of the Pygments (syntax highlighting) style to use.
78pygments_style = 'sphinx'
79
80# -- Options for HTML output --------------------------------------------------
81
82# The theme to use for HTML and HTML Help pages. Major themes that come with
83# Sphinx are currently 'default' and 'sphinxdoc'.
84# html_theme_path = ["."]
Van Hung Pham34193e32017-06-28 14:51:11 +070085html_theme = 'openstackdocs'
86
87# openstackdocstheme options
88repository_name = 'openstack/patrole'
89bug_project = 'patrole'
90bug_tag = ''
91
92# Must set this variable to include year, month, day, hours, and minutes.
93html_last_updated_fmt = '%Y-%m-%d %H:%M'
DavidPurcell663aedf2017-01-03 10:01:14 -050094
95# Output file base name for HTML help builder.
qiufossen2d038b52019-07-16 04:17:57 -040096htmlhelp_basename = 'patroledoc'
DavidPurcell663aedf2017-01-03 10:01:14 -050097
Masayuki Igawa94e6b182019-09-18 15:08:56 +090098# Example configuration for intersphinx: refer to the Python standard library.
99#intersphinx_mapping = {'http://docs.python.org/': None}
100
101# -- Options for LaTeX output -------------------------------------------------
102
DavidPurcell663aedf2017-01-03 10:01:14 -0500103# Grouping the document tree into LaTeX files. List of tuples
104# (source start file, target name, title, author, documentclass
105# [howto/manual]).
106latex_documents = [
Masayuki Igawa94e6b182019-09-18 15:08:56 +0900107 ('index', 'doc-patrole.tex', u'Patrole: Tempest Plugin for RBAC Testing',
108 u'OpenStack Foundation', 'manual'),
DavidPurcell663aedf2017-01-03 10:01:14 -0500109]
110
Masayuki Igawa94e6b182019-09-18 15:08:56 +0900111# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
112latex_use_xindy = False