Debian Codegraph @

docs/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # Junos PyEZ documentation build configuration file, created by
4 # sphinx-quickstart on Thu May 8 10:38:09 2014.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import sys
16 import os
17 import sphinx_bootstrap_theme
18
19 # If extensions (or modules to document with autodoc) are in another directory,
20 # add these directories to sys.path here. If the directory is relative to the
21 # documentation root, use os.path.abspath to make it absolute, like shown here.
22 sys.path.insert(0, os.path.abspath("../lib"))
23
24 # -- General configuration ------------------------------------------------
25
26 # If your documentation needs a minimal Sphinx version, state it here.
27 # needs_sphinx = '1.0'
28
29 # Add any Sphinx extension module names here, as strings. They can be
30 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31 # ones.
32 extensions = [
33 "sphinx.ext.autodoc",
34 "sphinx.ext.viewcode",
35 "sphinx.ext.coverage",
36 "sphinx.ext.todo",
37 "sphinx.ext.intersphinx",
38 ]
39
40
41 def skip(app, what, name, obj, skip, options):
42 if name == "__init__":
43 return False
44 return skip
45
46
47 def setup(app):
48 app.connect("autodoc-skip-member", skip)
49
50
51 # Add any paths that contain templates here, relative to this directory.
52 templates_path = ["_templates"]
53
54 # The suffix of source filenames.
55 source_suffix = ".rst"
56
57 # The encoding of source files.
58 # source_encoding = 'utf-8-sig'
59
60 # The master toctree document.
61 master_doc = "index"
62
63 # General information about the project.
64 import jnpr.junos
65
66 project = "Junos PyEZ"
67 copyright = "2017, Juniper Networks, Inc."
68
69 # The version info for the project you're documenting, acts as replacement for
70 # |version| and |release|, also used in various other places throughout the
71 # built documents.
72 #
73 # The short X.Y version.
74 version = jnpr.junos.__version__
75 # The full version, including alpha/beta/rc tags.
76 release = version
77
78 # The language for content autogenerated by Sphinx. Refer to documentation
79 # for a list of supported languages.
80 # language = None
81
82 # There are two options for replacing |today|: either, you set today to some
83 # non-false value, then it is used:
84 # today = ''
85 # Else, today_fmt is used as the format for a strftime call.
86 # today_fmt = '%B %d, %Y'
87
88 # List of patterns, relative to source directory, that match files and
89 # directories to ignore when looking for source files.
90 exclude_patterns = ["_build"]
91
92 # The reST default role (used for this markup: `text`) to use for all
93 # documents.
94 # default_role = None
95
96 # If true, '()' will be appended to :func: etc. cross-reference text.
97 # add_function_parentheses = True
98
99 # If true, the current module name will be prepended to all description
100 # unit titles (such as .. function::).
101 # add_module_names = True
102
103 # If true, sectionauthor and moduleauthor directives will be shown in the
104 # output. They are ignored by default.
105 # show_authors = False
106
107 # The name of the Pygments (syntax highlighting) style to use.
108 pygments_style = "sphinx"
109
110 # A list of ignored prefixes for module index sorting.
111 # modindex_common_prefix = []
112
113 # If true, keep warnings as "system message" paragraphs in the built documents.
114 # keep_warnings = False
115
116 # Produce todo output
117 todo_include_todos = True
118
119
120 # -- Options for HTML output ----------------------------------------------
121
122 # The theme to use for HTML and HTML Help pages. See the documentation for
123 # a list of builtin themes.
124 html_theme = "bootstrap"
125
126 # Theme options are theme-specific and customize the look and feel of a theme
127 # further. For a list of options available for each theme, see the
128 # documentation.
129 html_theme_options = {
130 "bootswatch_theme": "spacelab",
131 "navbar_sidebarrel": False,
132 "navbar_site_name": "Module",
133 "navbar_pagenav_name": "Classes",
134 "source_link_position": "footer",
135 "navbar_links": [
136 ("Wiki", "https://techwiki.juniper.net/Automation_Scripting/Junos_PyEZ", True),
137 ("Forum", "http://groups.google.com/group/junos-python-ez", True),
138 ],
139 }
140
141 # Add any paths that contain custom themes here, relative to this directory.
142 html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
143
144 # The name for this set of Sphinx documents. If None, it defaults to
145 # "<project> v<release> documentation".
146 # html_title = None
147
148 # A shorter title for the navigation bar. Default is the same as html_title.
149 # html_short_title = None
150
151 # The name of an image file (relative to this directory) to place at the top
152 # of the sidebar.
153 html_logo = "juniper.png"
154
155 # The name of an image file (within the static path) to use as favicon of the
156 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
157 # pixels large.
158 # html_favicon = None
159
160 # Add any paths that contain custom static files (such as style sheets) here,
161 # relative to this directory. They are copied after the builtin static files,
162 # so a file named "default.css" will overwrite the builtin "default.css".
163 html_static_path = ["_static"]
164
165 # Add any extra paths that contain custom files (such as robots.txt or
166 # .htaccess) here, relative to this directory. These files are copied
167 # directly to the root of the documentation.
168 # html_extra_path = []
169
170 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
171 # using the given strftime format.
172 # html_last_updated_fmt = '%b %d, %Y'
173
174 # If true, SmartyPants will be used to convert quotes and dashes to
175 # typographically correct entities.
176 # html_use_smartypants = True
177
178 # Custom sidebar templates, maps document names to template names.
179 html_sidebars = {
180 "**": [
181 "globaltoc.html",
182 "localtoc.html",
183 ]
184 }
185
186 # Additional templates that should be rendered to pages, maps page names to
187 # template names.
188 # html_additional_pages = {}
189
190 # If false, no module index is generated.
191 # html_domain_indices = True
192
193 # If false, no index is generated.
194 # html_use_index = True
195
196 # If true, the index is split into individual pages for each letter.
197 # html_split_index = False
198
199 # If true, links to the reST sources are added to the pages.
200 # html_show_sourcelink = True
201
202 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
203 # html_show_sphinx = True
204
205 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
206 # html_show_copyright = True
207
208 # If true, an OpenSearch description file will be output, and all pages will
209 # contain a <link> tag referring to it. The value of this option must be the
210 # base URL from which the finished HTML is served.
211 # html_use_opensearch = ''
212
213 # This is the file name suffix for HTML files (e.g. ".xhtml").
214 # html_file_suffix = None
215
216 # Output file base name for HTML help builder.
217 htmlhelp_basename = "JunosPyEZdoc"
218
219
220 # -- Options for LaTeX output ---------------------------------------------
221
222 latex_elements = {
223 # The paper size ('letterpaper' or 'a4paper').
224 #'papersize': 'letterpaper',
225 # The font size ('10pt', '11pt' or '12pt').
226 #'pointsize': '10pt',
227 # Additional stuff for the LaTeX preamble.
228 #'preamble': '',
229 }
230
231 # Grouping the document tree into LaTeX files. List of tuples
232 # (source start file, target name, title,
233 # author, documentclass [howto, manual, or own class]).
234 latex_documents = [
235 (
236 "index",
237 "JunosPyEZ.tex",
238 "Junos PyEZ Documentation",
239 "Juniper Networks, Inc.",
240 "manual",
241 ),
242 ]
243
244 # The name of an image file (relative to this directory) to place at the top of
245 # the title page.
246 # latex_logo = None
247
248 # For "manual" documents, if this is true, then toplevel headings are parts,
249 # not chapters.
250 # latex_use_parts = False
251
252 # If true, show page references after internal links.
253 # latex_show_pagerefs = False
254
255 # If true, show URL addresses after external links.
256 # latex_show_urls = False
257
258 # Documents to append as an appendix to all manuals.
259 # latex_appendices = []
260
261 # If false, no module index is generated.
262 # latex_domain_indices = True
263
264
265 # -- Options for manual page output ---------------------------------------
266
267 # One entry per manual page. List of tuples
268 # (source start file, name, description, authors, manual section).
269 man_pages = [
270 ("index", "junospyez", "Junos PyEZ Documentation", ["Juniper Networks, Inc."], 1)
271 ]
272
273 # If true, show URL addresses after external links.
274 # man_show_urls = False
275
276
277 # -- Options for Texinfo output -------------------------------------------
278
279 # Grouping the document tree into Texinfo files. List of tuples
280 # (source start file, target name, title, author,
281 # dir menu entry, description, category)
282 texinfo_documents = [
283 (
284 "index",
285 "JunosPyEZ",
286 "Junos PyEZ Documentation",
287 "Juniper Networks, Inc.",
288 "JunosPyEZ",
289 "One line description of project.",
290 "Miscellaneous",
291 ),
292 ]
293
294 # Documents to append as an appendix to all manuals.
295 # texinfo_appendices = []
296
297 # If false, no module index is generated.
298 # texinfo_domain_indices = True
299
300 # How to display URL addresses: 'footnote', 'no', or 'inline'.
301 # texinfo_show_urls = 'footnote'
302
303 # If true, do not generate a @detailmenu in the "Top" node's menu.
304 # texinfo_no_detailmenu = False
305
306
307 # -- Options for Epub output ----------------------------------------------
308
309 # Bibliographic Dublin Core info.
310 epub_title = "Junos PyEZ"
311 epub_author = "Juniper Networks, Inc."
312 epub_publisher = "Juniper Networks, Inc."
313 epub_copyright = "2014, Juniper Networks, Inc."
314
315 # The basename for the epub file. It defaults to the project name.
316 # epub_basename = u'Junos PyEZ'
317
318 # The HTML theme for the epub output. Since the default themes are not
319 # optimized for small screen space, using the same theme for HTML and epub
320 # output is usually not wise. This defaults to 'epub', a theme designed to
321 # save visual space.
322 # epub_theme = 'epub'
323
324 # The language of the text. It defaults to the language option
325 # or en if the language is not set.
326 # epub_language = ''
327
328 # The scheme of the identifier. Typical schemes are ISBN or URL.
329 # epub_scheme = ''
330
331 # The unique identifier of the text. This can be a ISBN number
332 # or the project homepage.
333 # epub_identifier = ''
334
335 # A unique identification for the text.
336 # epub_uid = ''
337
338 # A tuple containing the cover image and cover page html template filenames.
339 # epub_cover = ()
340
341 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
342 # epub_guide = ()
343
344 # HTML files that should be inserted before the pages created by sphinx.
345 # The format is a list of tuples containing the path and title.
346 # epub_pre_files = []
347
348 # HTML files shat should be inserted after the pages created by sphinx.
349 # The format is a list of tuples containing the path and title.
350 # epub_post_files = []
351
352 # A list of files that should not be packed into the epub file.
353 epub_exclude_files = ["search.html"]
354
355 # The depth of the table of contents in toc.ncx.
356 # epub_tocdepth = 3
357
358 # Allow duplicate toc entries.
359 # epub_tocdup = True
360
361 # Choose between 'default' and 'includehidden'.
362 # epub_tocscope = 'default'
363
364 # Fix unsupported image types using the PIL.
365 # epub_fix_images = False
366
367 # Scale large images.
368 # epub_max_image_width = 0
369
370 # How to display URL addresses: 'footnote', 'no', or 'inline'.
371 # epub_show_urls = 'inline'
372
373 # If false, no index is generated.
374 # epub_use_index = True