blob: ee0bcecdb517464005278c03c24eafa256a33bf1 [file] [log] [blame]
okozachenko093ce9e2021-04-01 22:47:39 +03001# -*- 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
okozachenko1203fa747f22022-05-16 20:13:54 +100018sys.path.insert(0, os.path.abspath("../.."))
okozachenko093ce9e2021-04-01 22:47:39 +030019# -- 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 = [
okozachenko1203fa747f22022-05-16 20:13:54 +100024 "sphinx.ext.autodoc",
okozachenko1203d306c652022-05-16 22:44:49 +100025 "openstackdocstheme"
okozachenko093ce9e2021-04-01 22:47:39 +030026]
27
28# autodoc generation is a bit aggressive and a nuisance when doing heavy
29# text edit cycles.
30# execute "export SPHINX_DEBUG=1" in your terminal to disable
31
32# The suffix of source filenames.
okozachenko1203fa747f22022-05-16 20:13:54 +100033source_suffix = ".rst"
okozachenko093ce9e2021-04-01 22:47:39 +030034
35# The master toctree document.
okozachenko1203fa747f22022-05-16 20:13:54 +100036master_doc = "index"
okozachenko093ce9e2021-04-01 22:47:39 +030037
38# General information about the project.
okozachenko1203fa747f22022-05-16 20:13:54 +100039project = "staffeln"
40copyright = "2017, OpenStack Developers"
okozachenko093ce9e2021-04-01 22:47:39 +030041
42# openstackdocstheme options
okozachenko1203fa747f22022-05-16 20:13:54 +100043openstackdocs_repo_name = "openstack/staffeln"
44openstackdocs_bug_project = (
45 "replace with the name of the project on Launchpad or the ID from Storyboard"
46)
47openstackdocs_bug_tag = ""
okozachenko093ce9e2021-04-01 22:47:39 +030048
49# If true, '()' will be appended to :func: etc. cross-reference text.
50add_function_parentheses = True
51
52# If true, the current module name will be prepended to all description
53# unit titles (such as .. function::).
54add_module_names = True
55
56# The name of the Pygments (syntax highlighting) style to use.
okozachenko1203fa747f22022-05-16 20:13:54 +100057pygments_style = "native"
okozachenko093ce9e2021-04-01 22:47:39 +030058
59# -- Options for HTML output --------------------------------------------------
60
61# The theme to use for HTML and HTML Help pages. Major themes that come with
62# Sphinx are currently 'default' and 'sphinxdoc'.
63# html_theme_path = ["."]
64# html_theme = '_theme'
65# html_static_path = ['static']
okozachenko1203fa747f22022-05-16 20:13:54 +100066html_theme = "openstackdocs"
okozachenko093ce9e2021-04-01 22:47:39 +030067
68# Output file base name for HTML help builder.
okozachenko1203fa747f22022-05-16 20:13:54 +100069htmlhelp_basename = "%sdoc" % project
okozachenko093ce9e2021-04-01 22:47:39 +030070
71# Grouping the document tree into LaTeX files. List of tuples
72# (source start file, target name, title, author, documentclass
73# [howto/manual]).
74latex_documents = [
okozachenko1203fa747f22022-05-16 20:13:54 +100075 (
76 "index",
77 "%s.tex" % project,
78 "%s Documentation" % project,
79 "OpenStack Developers",
80 "manual",
81 ),
okozachenko093ce9e2021-04-01 22:47:39 +030082]
83
84# Example configuration for intersphinx: refer to the Python standard library.
okozachenko1203fa747f22022-05-16 20:13:54 +100085# intersphinx_mapping = {'http://docs.python.org/': None}