| 1 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 2 |
# not use this file except in compliance with the License. You may obtain |
| 3 |
# a copy of the License at |
| 4 |
# |
| 5 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
# |
| 7 |
# Unless required by applicable law or agreed to in writing, software |
| 8 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 9 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 10 |
# License for the specific language governing permissions and limitations |
| 11 |
# under the License. |
| 12 |
|
| 13 |
import os |
| 14 |
import sys |
| 15 |
|
| 16 |
sys.path = [ |
| 17 |
os.path.abspath('../..'), |
| 18 |
os.path.abspath('../../bin') |
| 19 |
] + sys.path |
| 20 |
|
| 21 |
# -- General configuration ------------------------------------------------ |
| 22 |
|
| 23 |
# If your documentation needs a minimal Sphinx version, state it here. |
| 24 |
needs_sphinx = '2.0' |
| 25 |
|
| 26 |
# Add any Sphinx extension module names here, as strings. They can be |
| 27 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 28 |
# ones. |
| 29 |
extensions = [ |
| 30 |
'sphinx.ext.coverage', |
| 31 |
'sphinx.ext.ifconfig', |
| 32 |
'sphinx.ext.graphviz', |
| 33 |
'sphinx.ext.viewcode', |
| 34 |
'openstackdocstheme' |
| 35 |
] |
| 36 |
|
| 37 |
# geeneral information about project |
| 38 |
openstackdocs_repo_name = u'openstack/python-monascaclient' |
| 39 |
project = u'Monasca Client Dev Docs' |
| 40 |
openstackdocs_use_storyboard = True |
| 41 |
copyright = u'2014-present, OpenStack Foundation' |
| 42 |
author = u'OpenStack Foundation' |
| 43 |
openstackdocs_auto_name = False |
| 44 |
|
| 45 |
# Add any paths that contain templates here, relative to this directory. |
| 46 |
templates_path = ['_templates'] |
| 47 |
|
| 48 |
# The suffix(es) of source filenames. |
| 49 |
source_suffix = '.rst' |
| 50 |
|
| 51 |
# The encoding of source files. |
| 52 |
source_encoding = 'utf-8' |
| 53 |
|
| 54 |
# The master toctree document. |
| 55 |
master_doc = 'index' |
| 56 |
|
| 57 |
# List of patterns, relative to source directory, that match files and |
| 58 |
# directories to ignore when looking for source files. |
| 59 |
exclude_patterns = [ |
| 60 |
'common', |
| 61 |
'doc', |
| 62 |
'documentation', |
| 63 |
'etc', |
| 64 |
'java' |
| 65 |
] |
| 66 |
|
| 67 |
# If true, '()' will be appended to :func: etc. cross-reference text. |
| 68 |
add_function_parentheses = True |
| 69 |
|
| 70 |
# If true, the current module name will be prepended to all description |
| 71 |
# unit titles (such as .. function::). |
| 72 |
add_module_names = True |
| 73 |
|
| 74 |
# If true, sectionauthor and moduleauthor directives will be shown in the |
| 75 |
# output. They are ignored by default. |
| 76 |
show_authors = True |
| 77 |
|
| 78 |
# The name of the Pygments (syntax highlighting) style to use. |
| 79 |
pygments_style = 'native' |
| 80 |
|
| 81 |
# -- Options for HTML output ---------------------------------------------- |
| 82 |
|
| 83 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 84 |
# a list of builtin themes. |
| 85 |
html_theme = 'openstackdocs' |
| 86 |
|
| 87 |
# If false, no index is generated. |
| 88 |
html_use_index = True |
| 89 |
|
| 90 |
# If false, no module index is generated. |
| 91 |
html_use_modindex = True |
| 92 |
|
| 93 |
# Output file base name for HTML help builder. |
| 94 |
htmlhelp_basename = 'python-monascaclientdoc' |
| 95 |
|
| 96 |
# -- Options for LaTeX output --------------------------------------------- |
| 97 |
|
| 98 |
# Grouping the document tree into LaTeX files. List of tuples |
| 99 |
# (source start file, target name, title, |
| 100 |
# author, documentclass [howto, manual, or own class]). |
| 101 |
latex_documents = [ |
| 102 |
(master_doc, 'python-monascaclient.tex', u'python-monascaclient Documentation', |
| 103 |
u'Openstack Foundation \\textless{}[email protected]\\textgreater{}', 'manual'), |
| 104 |
] |
| 105 |
|
| 106 |
# -- Options for manual page output --------------------------------------- |
| 107 |
|
| 108 |
# One entry per manual page. List of tuples |
| 109 |
# (source start file, name, description, authors, manual section). |
| 110 |
man_pages = [ |
| 111 |
(master_doc, 'python-monascaclient', u'python-monascaclient Documentation', |
| 112 |
[author], 1) |
| 113 |
] |
| 114 |
|
| 115 |
# -- Options for Texinfo output ------------------------------------------- |
| 116 |
|
| 117 |
# Grouping the document tree into Texinfo files. List of tuples |
| 118 |
# (source start file, target name, title, author, |
| 119 |
# dir menu entry, description, category) |
| 120 |
texinfo_documents = [ |
| 121 |
(master_doc, 'python-monascaclient', u'python-monascaclient Documentation', |
| 122 |
author, 'python-monascaclient', 'Rest-API to collect logs from your cloud.', |
| 123 |
'Miscellaneous'), |
| 124 |
] |