1 # -*- coding: utf-8 -*-
3 # libjuju documentation build configuration file, created by
4 # sphinx-quickstart on Thu May 19 11:21:38 2016.
6 # This file is execfile()d with the current directory set to its
9 # Note that not all possible configuration values are present in this
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
18 from pathlib
import Path
20 here
= Path(__file__
).absolute().parent
21 version
= (here
.parent
/ 'VERSION').read_text().strip()
23 # If extensions (or modules to document with autodoc) are in another directory,
24 # add these directories to sys.path here. If the directory is relative to the
25 # documentation root, use os.path.abspath to make it absolute, like shown here.
26 sys
.path
.insert(0, os
.path
.abspath('..'))
28 # -- General configuration ------------------------------------------------
30 # If your documentation needs a minimal Sphinx version, state it here.
33 # Add any Sphinx extension module names here, as strings. They can be
34 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
36 sys
.path
.append(os
.path
.abspath('_extensions/'))
39 'sphinx.ext.autosummary',
40 'sphinx.ext.intersphinx',
42 'sphinx.ext.viewcode',
43 'sphinxcontrib.asyncio',
47 # Add any paths that contain templates here, relative to this directory.
48 templates_path
= ['_templates']
50 # The suffix(es) of source filenames.
51 # You can specify multiple suffix as a list of string:
52 # source_suffix = ['.rst', '.md']
53 source_suffix
= '.rst'
55 # The encoding of source files.
56 #source_encoding = 'utf-8-sig'
58 # The master toctree document.
61 # General information about the project.
63 copyright
= u
'2016, Canonical Ltd.'
66 # The version info for the project you're documenting, acts as replacement for
67 # |version| and |release|, also used in various other places throughout the
70 # The short X.Y version.
72 # The full version, including alpha/beta/rc tags.
75 # The language for content autogenerated by Sphinx. Refer to documentation
76 # for a list of supported languages.
78 # This is also used if you do content translation via gettext catalogs.
79 # Usually you set "language" from the command line for these cases.
82 # There are two options for replacing |today|: either, you set today to some
83 # non-false value, then it is used:
85 # Else, today_fmt is used as the format for a strftime call.
86 #today_fmt = '%B %d, %Y'
88 # List of patterns, relative to source directory, that match files and
89 # directories to ignore when looking for source files.
90 # This patterns also effect to html_static_path and html_extra_path
91 exclude_patterns
= ['_build', 'Thumbs.db', '.DS_Store']
93 # The reST default role (used for this markup: `text`) to use for all
97 # If true, '()' will be appended to :func: etc. cross-reference text.
98 #add_function_parentheses = True
100 # If true, the current module name will be prepended to all description
101 # unit titles (such as .. function::).
102 #add_module_names = True
104 # If true, sectionauthor and moduleauthor directives will be shown in the
105 # output. They are ignored by default.
106 #show_authors = False
108 # The name of the Pygments (syntax highlighting) style to use.
109 pygments_style
= 'sphinx'
111 # A list of ignored prefixes for module index sorting.
112 #modindex_common_prefix = []
114 # If true, keep warnings as "system message" paragraphs in the built documents.
115 #keep_warnings = False
117 # If true, `todo` and `todoList` produce output, else they produce nothing.
118 todo_include_todos
= True
121 # -- Options for HTML output ----------------------------------------------
123 # The theme to use for HTML and HTML Help pages. See the documentation for
124 # a list of builtin themes.
125 html_theme
= 'sphinx_rtd_theme'
127 # Theme options are theme-specific and customize the look and feel of a theme
128 # further. For a list of options available for each theme, see the
130 #html_theme_options = {}
132 # Add any paths that contain custom themes here, relative to this directory.
133 #html_theme_path = []
135 # The name for this set of Sphinx documents.
136 # "<project> v<release> documentation" by default.
137 #html_title = u'libjuju v0.0.0'
139 # A shorter title for the navigation bar. Default is the same as html_title.
140 #html_short_title = None
142 # The name of an image file (relative to this directory) to place at the top
146 # The name of an image file (relative to this directory) to use as a favicon of
147 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
151 # Add any paths that contain custom static files (such as style sheets) here,
152 # relative to this directory. They are copied after the builtin static files,
153 # so a file named "default.css" will overwrite the builtin "default.css".
154 html_static_path
= ['_static']
156 # Add any extra paths that contain custom files (such as robots.txt or
157 # .htaccess) here, relative to this directory. These files are copied
158 # directly to the root of the documentation.
159 #html_extra_path = []
161 # If not None, a 'Last updated on:' timestamp is inserted at every page
162 # bottom, using the given strftime format.
163 # The empty string is equivalent to '%b %d, %Y'.
164 #html_last_updated_fmt = None
166 # If true, SmartyPants will be used to convert quotes and dashes to
167 # typographically correct entities.
168 #html_use_smartypants = True
170 # Custom sidebar templates, maps document names to template names.
173 # Additional templates that should be rendered to pages, maps page names to
175 #html_additional_pages = {}
177 # If false, no module index is generated.
178 #html_domain_indices = True
180 # If false, no index is generated.
181 #html_use_index = True
183 # If true, the index is split into individual pages for each letter.
184 #html_split_index = False
186 # If true, links to the reST sources are added to the pages.
187 #html_show_sourcelink = True
189 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
190 #html_show_sphinx = True
192 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
193 #html_show_copyright = True
195 # If true, an OpenSearch description file will be output, and all pages will
196 # contain a <link> tag referring to it. The value of this option must be the
197 # base URL from which the finished HTML is served.
198 #html_use_opensearch = ''
200 # This is the file name suffix for HTML files (e.g. ".xhtml").
201 #html_file_suffix = None
203 # Language to be used for generating the HTML full-text search index.
204 # Sphinx supports the following languages:
205 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
206 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
207 #html_search_language = 'en'
209 # A dictionary with options for the search language support, empty by default.
210 # 'ja' uses this config value.
211 # 'zh' user can custom change `jieba` dictionary path.
212 #html_search_options = {'type': 'default'}
214 # The name of a javascript file (relative to the configuration directory) that
215 # implements a search results scorer. If empty, the default will be used.
216 #html_search_scorer = 'scorer.js'
218 # Output file base name for HTML help builder.
219 htmlhelp_basename
= 'libjujudoc'
221 # -- Options for LaTeX output ---------------------------------------------
224 # The paper size ('letterpaper' or 'a4paper').
225 #'papersize': 'letterpaper',
227 # The font size ('10pt', '11pt' or '12pt').
228 #'pointsize': '10pt',
230 # Additional stuff for the LaTeX preamble.
233 # Latex figure (float) alignment
234 #'figure_align': 'htbp',
237 # Grouping the document tree into LaTeX files. List of tuples
238 # (source start file, target name, title,
239 # author, documentclass [howto, manual, or own class]).
241 (master_doc
, 'libjuju.tex', u
'libjuju Documentation',
242 u
'Canonical', 'manual'),
245 # The name of an image file (relative to this directory) to place at the top of
249 # For "manual" documents, if this is true, then toplevel headings are parts,
251 #latex_use_parts = False
253 # If true, show page references after internal links.
254 #latex_show_pagerefs = False
256 # If true, show URL addresses after external links.
257 #latex_show_urls = False
259 # Documents to append as an appendix to all manuals.
260 #latex_appendices = []
262 # If false, no module index is generated.
263 #latex_domain_indices = True
266 # -- Options for manual page output ---------------------------------------
268 # One entry per manual page. List of tuples
269 # (source start file, name, description, authors, manual section).
271 (master_doc
, 'libjuju', u
'libjuju Documentation',
275 # If true, show URL addresses after external links.
276 #man_show_urls = False
279 # -- Options for Texinfo output -------------------------------------------
281 # Grouping the document tree into Texinfo files. List of tuples
282 # (source start file, target name, title, author,
283 # dir menu entry, description, category)
284 texinfo_documents
= [
285 (master_doc
, 'libjuju', u
'libjuju Documentation',
286 author
, 'libjuju', 'One line description of project.',
290 # Documents to append as an appendix to all manuals.
291 #texinfo_appendices = []
293 # If false, no module index is generated.
294 #texinfo_domain_indices = True
296 # How to display URL addresses: 'footnote', 'no', or 'inline'.
297 #texinfo_show_urls = 'footnote'
299 # If true, do not generate a @detailmenu in the "Top" node's menu.
300 #texinfo_no_detailmenu = False
303 app
.add_stylesheet('custom.css')