Merge "New docs for 'How to include documentation'"
[opnfvdocs.git] / docs / conf.py
1 import sphinx_bootstrap_theme
2
3 # If extensions (or modules to document with autodoc) are in another directory,
4 # add these directories to sys.path here. If the directory is relative to the
5 # documentation root, use os.path.abspath to make it absolute, like shown here.
6 # -- General configuration ------------------------------------------------
7
8 # If your documentation needs a minimal Sphinx version, state it here.
9 # needs_sphinx = '1.0'
10 needs_sphinx = '1.3'
11 # Add any Sphinx extension module names here, as strings. They can be
12 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
13 # ones.
14 extensions = ['sphinxcontrib.httpdomain', 'sphinx.ext.autodoc',
15               'sphinx.ext.viewcode', 'sphinx.ext.napoleon']
16 # Disable javasphinx generation until we have a solution to long build
17 # times. readthedocs timesout after 902 seconds.
18
19 # Add any paths that contain templates here, relative to this directory.
20 templates_path = ['_templates']
21
22 # The suffix(es) of source filenames.
23 # You can specify multiple suffix as a list of string:
24 # source_suffix = ['.rst', '.md']
25 source_suffix = '.rst'
26
27 # The encoding of source files.
28 # source_encoding = 'utf-8-sig'
29
30 # The master toctree document.
31 master_doc = 'index'
32
33 # General information about the project.
34 project = 'Documentation'
35 copyright = '2017, OPNFV. Licensed under CC BY 4.0'
36 author = 'Open Platform for NFV'
37
38 # The version info for the project you're documenting, acts as replacement for
39 # |version| and |release|, also used in various other places throughout the
40 # built documents.
41 #
42 # The short X.Y version.
43 version = 'Colorado'
44 # The full version, including alpha/beta/rc tags.
45 release = 'Colorado'
46
47 # The language for content autogenerated by Sphinx. Refer to documentation
48 # for a list of supported languages.
49 #
50 # This is also used if you do content translation via gettext catalogs.
51 # Usually you set "language" from the command line for these cases.
52 language = None
53
54 # There are two options for replacing |today|: either, you set today to some
55 # non-false value, then it is used:
56 # today = ''
57 # Else, today_fmt is used as the format for a strftime call.
58 # today_fmt = '%B %d, %Y'
59
60 # List of patterns, relative to source directory, that match files and
61 # directories to ignore when looking for source files.
62 # This patterns also effect to html_static_path and html_extra_path
63 exclude_patterns = []
64
65 # The reST default role (used for this markup: `text`) to use for all
66 # documents.
67 # default_role = None
68
69 # If true, '()' will be appended to :func: etc. cross-reference text.
70 # add_function_parentheses = True
71
72 # If true, the current module name will be prepended to all description
73 # unit titles (such as .. function::).
74 # add_module_names = True
75
76 # If true, sectionauthor and moduleauthor directives will be shown in the
77 # output. They are ignored by default.
78 # show_authors = False
79
80 # The name of the Pygments (syntax highlighting) style to use.
81 pygments_style = 'sphinx'
82
83 # A list of ignored prefixes for module index sorting.
84 # modindex_common_prefix = []
85
86 # If true, keep warnings as "system message" paragraphs in the built documents.
87 # keep_warnings = False
88
89 # If true, `todo` and `todoList` produce output, else they produce nothing.
90 todo_include_todos = False
91
92
93 # -- Options for HTML output ----------------------------------------------
94
95 # The theme to use for HTML and HTML Help pages.  See the documentation for
96 # a list of builtin themes.
97 html_theme = 'bootstrap'
98
99 # Theme options are theme-specific and customize the look and feel of a theme
100 # further.  For a list of options available for each theme, see the
101 # documentation.
102 # html_theme_options = {}
103 html_theme_options = {
104     'bootswatch_theme': "journal",
105 }
106
107 # Add any paths that contain custom themes here, relative to this directory.
108 # html_theme_path = []
109 html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
110
111 # The name for this set of Sphinx documents.
112 # "<project> v<release> documentation" by default.
113 # html_title = 'OpenDaylight Documentation v0.3.0'
114
115 # A shorter title for the navigation bar.  Default is the same as html_title.
116 # html_short_title = None
117
118 # The name of an image file (relative to this directory) to place at the top
119 # of the sidebar.
120 html_logo = '_static/opnfv-logo.png'
121
122 # The name of an image file (relative to this directory) to use as a favicon of
123 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
124 # pixels large.
125 html_favicon = '_static/favicon.ico'
126
127 # Add any paths that contain custom static files (such as style sheets) here,
128 # relative to this directory. They are copied after the builtin static files,
129 # so a file named "default.css" will overwrite the builtin "default.css".
130 html_static_path = ['_static']
131
132 # Add any extra paths that contain custom files (such as robots.txt or
133 # .htaccess) here, relative to this directory. These files are copied
134 # directly to the root of the documentation.
135 # html_extra_path = []
136
137 # If not None, a 'Last updated on:' timestamp is inserted at every page
138 # bottom, using the given strftime format.
139 # The empty string is equivalent to '%b %d, %Y'.
140 # html_last_updated_fmt = None
141
142 # If true, SmartyPants will be used to convert quotes and dashes to
143 # typographically correct entities.
144 # html_use_smartypants = True
145
146 # Custom sidebar templates, maps document names to template names.
147 # html_sidebars = {}
148
149 # Additional templates that should be rendered to pages, maps page names to
150 # template names.
151 # html_additional_pages = {}
152
153 # If false, no module index is generated.
154 # html_domain_indices = True
155
156 # If false, no index is generated.
157 # html_use_index = True
158
159 # If true, the index is split into individual pages for each letter.
160 # html_split_index = False
161
162 # If true, links to the reST sources are added to the pages.
163 # html_show_sourcelink = True
164
165 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
166 # html_show_sphinx = True
167
168 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
169 # html_show_copyright = True
170
171 # If true, an OpenSearch description file will be output, and all pages will
172 # contain a <link> tag referring to it.  The value of this option must be the
173 # base URL from which the finished HTML is served.
174 # html_use_opensearch = ''
175
176 # This is the file name suffix for HTML files (e.g. ".xhtml").
177 # html_file_suffix = None
178
179 # Language to be used for generating the HTML full-text search index.
180 # Sphinx supports the following languages:
181 #   'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
182 #   'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
183 # html_search_language = 'en'
184
185 # A dictionary with options for the search language support, empty by default.
186 # 'ja' uses this config value.
187 # 'zh' user can custom change `jieba` dictionary path.
188 # html_search_options = {'type': 'default'}
189
190 # The name of a javascript file (relative to the configuration directory) that
191 # implements a search results scorer. If empty, the default will be used.
192 # html_search_scorer = 'scorer.js'
193
194 # Output file base name for HTML help builder.
195 htmlhelp_basename = 'OPNFV'
196
197 # -- Options for LaTeX output ---------------------------------------------
198
199 latex_elements = {
200     # The paper size ('letterpaper' or 'a4paper').
201     #'papersize': 'letterpaper',
202
203     # The font size ('10pt', '11pt' or '12pt').
204     #'pointsize': '10pt',
205
206     # Additional stuff for the LaTeX preamble.
207     #'preamble': '',
208
209     # Latex figure (float) alignment
210     #'figure_align': 'htbp',
211 }
212
213 # Grouping the document tree into LaTeX files. List of tuples
214 # (source start file, target name, title,
215 #  author, documentclass [howto, manual, or own class]).
216 latex_documents = [
217     (master_doc, 'OPNFV.tex', 'OPNFV Documentation',
218      'OPNFV Project', 'manual'),
219 ]
220
221 # The name of an image file (relative to this directory) to place at the top of
222 # the title page.
223 # latex_logo = None
224
225 # For "manual" documents, if this is true, then toplevel headings are parts,
226 # not chapters.
227 # latex_use_parts = False
228
229 # If true, show page references after internal links.
230 # latex_show_pagerefs = False
231
232 # If true, show URL addresses after external links.
233 # latex_show_urls = False
234
235 # Documents to append as an appendix to all manuals.
236 # latex_appendices = []
237
238 # If false, no module index is generated.
239 # latex_domain_indices = True
240
241
242 # -- Options for manual page output ---------------------------------------
243
244 # One entry per manual page. List of tuples
245 # (source start file, name, description, authors, manual section).
246 man_pages = [
247     (master_doc, 'OPNFVDocs', 'OPNFV Documentation',
248      [author], 1)
249 ]
250
251 # If true, show URL addresses after external links.
252 # man_show_urls = False
253
254
255 # -- Options for Texinfo output -------------------------------------------
256
257 # Grouping the document tree into Texinfo files. List of tuples
258 # (source start file, target name, title, author,
259 #  dir menu entry, description, category)
260 texinfo_documents = [
261     (master_doc, 'OPNFVDocs', 'OPNFV Documentation',
262      author, 'OPNFV', 'One line description of project.',
263      'Miscellaneous'),
264 ]
265
266 # Documents to append as an appendix to all manuals.
267 # texinfo_appendices = []
268
269 # If false, no module index is generated.
270 # texinfo_domain_indices = True
271
272 # How to display URL addresses: 'footnote', 'no', or 'inline'.
273 # texinfo_show_urls = 'footnote'
274
275 # If true, do not generate a @detailmenu in the "Top" node's menu.
276 # texinfo_no_detailmenu = False
277
278 # intersphinx_mapping =
279 # {'RTD':('http://opnfvdocsdemo.readthedocs.io/projects/', None)}