blob: 88c1bea3833abf1220dabf9f0e9750f52c44b93d [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
18sys.path.insert(0, os.path.abspath('../..'))
19# -- General configuration ----------------------------------------------------
20
21# Add any Sphinx extension module names here, as strings. They can be
22# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
23extensions = [
24 'sphinx.ext.autodoc',
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010025 'sphinx.ext.todo',
26 'sphinx.ext.viewcode',
27 'openstackdocstheme',
28 'oslo_config.sphinxconfiggen',
DavidPurcell663aedf2017-01-03 10:01:14 -050029]
30
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010031config_generator_config_file = '../../etc/config-generator.patrole.conf'
32sample_config_basename = '_static/patrole'
33
DavidPurcell663aedf2017-01-03 10:01:14 -050034# autodoc generation is a bit aggressive and a nuisance when doing heavy
35# text edit cycles.
36# execute "export SPHINX_DEBUG=1" in your terminal to disable
37
38# The suffix of source filenames.
39source_suffix = '.rst'
40
41# The master toctree document.
42master_doc = 'index'
43
44# General information about the project.
45project = u'patrole'
raiesmh08a6348e12017-02-07 00:24:59 +053046copyright = u'2017, Patrole Developers'
DavidPurcell663aedf2017-01-03 10:01:14 -050047
48# If true, '()' will be appended to :func: etc. cross-reference text.
49add_function_parentheses = True
50
51# If true, the current module name will be prepended to all description
52# unit titles (such as .. function::).
53add_module_names = True
54
55# The name of the Pygments (syntax highlighting) style to use.
56pygments_style = 'sphinx'
57
58# -- Options for HTML output --------------------------------------------------
59
60# The theme to use for HTML and HTML Help pages. Major themes that come with
61# Sphinx are currently 'default' and 'sphinxdoc'.
62# html_theme_path = ["."]
Felipe Monteiro098a8cd2017-09-20 21:31:27 +010063html_static_path = ['_static']
Van Hung Pham34193e32017-06-28 14:51:11 +070064html_theme = 'openstackdocs'
65
66# openstackdocstheme options
67repository_name = 'openstack/patrole'
68bug_project = 'patrole'
69bug_tag = ''
70
71# Must set this variable to include year, month, day, hours, and minutes.
72html_last_updated_fmt = '%Y-%m-%d %H:%M'
DavidPurcell663aedf2017-01-03 10:01:14 -050073
74# Output file base name for HTML help builder.
75htmlhelp_basename = '%sdoc' % project
76
77# Grouping the document tree into LaTeX files. List of tuples
78# (source start file, target name, title, author, documentclass
79# [howto/manual]).
80latex_documents = [
81 ('index',
82 '%s.tex' % project,
83 u'%s Documentation' % project,
raiesmh08a6348e12017-02-07 00:24:59 +053084 u'Patrole Developers', 'manual'),
DavidPurcell663aedf2017-01-03 10:01:14 -050085]
86
87# Example configuration for intersphinx: refer to the Python standard library.
88#intersphinx_mapping = {'http://docs.python.org/': None}