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