Debian Codegraph @

doc/source/conf.py

raw symbols SCIP
1 # Mistral documentation build configuration file
2
3 import os
4 import sys
5
6 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
7
8 # If extensions (or modules to document with autodoc) are in another directory,
9 # add these directories to sys.path here. If the directory is relative to the
10 # documentation root, use os.path.abspath to make it absolute, like shown here.
11 sys.path.insert(0, os.path.abspath('../../'))
12 sys.path.insert(0, os.path.abspath('../'))
13 sys.path.insert(0, os.path.abspath('./'))
14
15 # -- General configuration ---------------------------------------------------
16
17 # Add any Sphinx extension module names here, as strings. They can be
18 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
19 extensions = [
20 'sphinxcontrib.apidoc',
21 'openstackdocstheme',
22 ]
23
24 # Add any paths that contain templates here, relative to this directory.
25 # templates_path = ['_templates']
26
27 # sphinxcontrib.apidoc options
28 apidoc_module_dir = '../../mistralclient'
29 apidoc_output_dir = 'api'
30 apidoc_excluded_paths = [
31 'test',
32 'tests/*']
33 apidoc_separate_modules = True
34
35 # The suffix of source filenames.
36 source_suffix = '.rst'
37
38 # The master toctree document.
39 master_doc = 'index'
40
41 # General information about the project.
42 project = 'Mistral Client'
43 copyright = '2016, Mistral Contributors'
44
45 # List of patterns, relative to source directory, that match files and
46 # directories to ignore when looking for source files.
47 exclude_patterns = []
48
49 # If true, '()' will be appended to :func: etc. cross-reference text.
50 add_function_parentheses = True
51
52 # If true, the current module name will be prepended to all description
53 # unit titles (such as .. function::).
54 add_module_names = True
55
56 # If true, sectionauthor and moduleauthor directives will be shown in the
57 # output. They are ignored by default.
58 show_authors = False
59
60 # The name of the Pygments (syntax highlighting) style to use.
61 pygments_style = 'native'
62
63 # A list of ignored prefixes for module index sorting.
64 modindex_common_prefix = ['mistralclient.']
65
66
67 # -- Options for HTML output -------------------------------------------------
68
69 # The theme to use for HTML and HTML Help pages. See the documentation for
70 # a list of builtin themes.
71 html_theme = 'openstackdocs'
72
73 # The name for this set of Sphinx documents. If None, it defaults to
74 # "<project> v<release> documentation".
75 html_title = 'MistralClient'
76
77 # Custom sidebar templates, maps document names to template names.
78 html_sidebars = {
79 'index': [
80 'sidebarlinks.html', 'localtoc.html', 'searchbox.html',
81 'sourcelink.html'
82 ],
83 '**': [
84 'localtoc.html', 'relations.html',
85 'searchbox.html', 'sourcelink.html'
86 ]
87 }
88
89 # Output file base name for HTML help builder.
90 htmlhelp_basename = 'Mistraldoc'
91
92
93 # -- Options for manual page output ------------------------------------------
94
95 # One entry per manual page. List of tuples
96 # (source start file, name, description, authors, manual section).
97 man_pages = [
98 ('index', 'mistral_client', 'Mistral Client Documentation',
99 ['Mistral Contributors'], 1)
100 ]
101
102 # -- Options for openstackdocstheme -------------------------------------------
103 openstackdocs_repo_name = 'openstack/python-mistralclient'
104 openstackdocs_bug_project = 'python-mistralclient'
105 openstackdocs_bug_tag = ''
106 openstackdocs_auto_name = False