blob: 45d8021307492f35d5d3f93f01b26a15ae96ea73 [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',
33 'openstackdocstheme',
34 'oslo_config.sphinxconfiggen',
Felipe Monteiro47c43cb2018-11-05 17:15:30 +000035 'sphinxcontrib.apidoc',
DavidPurcell663aedf2017-01-03 10:01:14 -050036]
37
Felipe Monteiro47c43cb2018-11-05 17:15:30 +000038# sphinxcontrib.apidoc options
39apidoc_module_dir = '../../patrole_tempest_plugin'
40apidoc_output_dir = 'framework/code'
41apidoc_excluded_paths = [
42 'hacking',
43 'hacking/*',
44 'tests',
45 'tests/*',
46 'config.py',
47 'plugin.py',
48 'version.py'
49]
50apidoc_separate_modules = True
51
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010052config_generator_config_file = '../../etc/config-generator.patrole.conf'
53sample_config_basename = '_static/patrole'
54
DavidPurcell663aedf2017-01-03 10:01:14 -050055# autodoc generation is a bit aggressive and a nuisance when doing heavy
56# text edit cycles.
57# execute "export SPHINX_DEBUG=1" in your terminal to disable
58
59# The suffix of source filenames.
60source_suffix = '.rst'
61
62# The master toctree document.
63master_doc = 'index'
64
65# General information about the project.
66project = u'patrole'
raiesmh08a6348e12017-02-07 00:24:59 +053067copyright = u'2017, Patrole Developers'
DavidPurcell663aedf2017-01-03 10:01:14 -050068
69# If true, '()' will be appended to :func: etc. cross-reference text.
70add_function_parentheses = True
71
72# If true, the current module name will be prepended to all description
73# unit titles (such as .. function::).
74add_module_names = True
75
76# The name of the Pygments (syntax highlighting) style to use.
77pygments_style = 'sphinx'
78
79# -- Options for HTML output --------------------------------------------------
80
81# The theme to use for HTML and HTML Help pages. Major themes that come with
82# Sphinx are currently 'default' and 'sphinxdoc'.
83# html_theme_path = ["."]
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010084html_static_path = ['_static']
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.
96htmlhelp_basename = '%sdoc' % project
97
98# Grouping the document tree into LaTeX files. List of tuples
99# (source start file, target name, title, author, documentclass
100# [howto/manual]).
101latex_documents = [
102 ('index',
103 '%s.tex' % project,
104 u'%s Documentation' % project,
raiesmh08a6348e12017-02-07 00:24:59 +0530105 u'Patrole Developers', 'manual'),
DavidPurcell663aedf2017-01-03 10:01:14 -0500106]
107
108# Example configuration for intersphinx: refer to the Python standard library.
109#intersphinx_mapping = {'http://docs.python.org/': None}