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 | 0ec5a75 | 2018-07-12 16:23:19 -0400 | [diff] [blame] | 41 | 'sphinxcontrib.needs', |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 42 | 'sphinxcontrib.nwdiag', |
Rich Bennett | 3beeced | 2017-09-18 10:01:25 -0400 | [diff] [blame] | 43 | 'sphinxcontrib.seqdiag', |
| 44 | 'sphinx.ext.ifconfig', |
| 45 | 'sphinx.ext.todo', |
Rich Bennett | 3beeced | 2017-09-18 10:01:25 -0400 | [diff] [blame] | 46 | 'sphinxcontrib.plantuml', |
| 47 | 'sphinxcontrib.swaggerdoc' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 48 | ] |
| 49 | |
Rich Bennett | a9d6a44 | 2017-08-25 02:37:15 -0400 | [diff] [blame] | 50 | # Font path for seqdiag |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 51 | seqdiag_fontpath = '/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf' |
| 52 | nwdiag_fontpath = '/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf' |
Rich Bennett | a9d6a44 | 2017-08-25 02:37:15 -0400 | [diff] [blame] | 53 | |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 54 | # Add any paths that contain templates here, relative to this directory. |
| 55 | templates_path = ['_templates'] |
| 56 | |
| 57 | # The suffix(es) of source filenames. |
| 58 | # You can specify multiple suffix as a list of string: |
| 59 | # source_suffix = ['.rst', '.md'] |
| 60 | source_suffix = '.rst' |
| 61 | |
| 62 | # The encoding of source files. |
| 63 | #source_encoding = 'utf-8-sig' |
| 64 | |
| 65 | # The master toctree document. |
| 66 | master_doc = 'index' |
| 67 | |
| 68 | # General information about the project. |
Rich Bennett | ae91ceb | 2017-10-16 08:28:03 -0400 | [diff] [blame] | 69 | project = u'' |
Rich Bennett | 52b5c09 | 2018-09-01 09:48:13 -0400 | [diff] [blame] | 70 | copyright = u'2018 ONAP. Licensed under Creative Commons Attribution 4.0 International License' |
Rich Bennett | c599566 | 2017-10-18 15:27:52 -0400 | [diff] [blame] | 71 | |
| 72 | |
Rich Bennett | ae91ceb | 2017-10-16 08:28:03 -0400 | [diff] [blame] | 73 | author = u'Open Network Automation Platform' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 74 | |
| 75 | # The version info for the project you're documenting, acts as replacement for |
| 76 | # |version| and |release|, also used in various other places throughout the |
| 77 | # built documents. |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 78 | # The short X.Y version. |
Rich Bennett | 0463c5d | 2017-11-24 08:42:31 -0500 | [diff] [blame] | 79 | version = 'master branch' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 80 | # The full version, including alpha/beta/rc tags. |
Rich Bennett | 0463c5d | 2017-11-24 08:42:31 -0500 | [diff] [blame] | 81 | release = 'master branch' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 82 | |
| 83 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 84 | # for a list of supported languages. |
| 85 | # |
| 86 | # This is also used if you do content translation via gettext catalogs. |
| 87 | # Usually you set "language" from the command line for these cases. |
| 88 | language = None |
| 89 | |
| 90 | # There are two options for replacing |today|: either, you set today to some |
| 91 | # non-false value, then it is used: |
| 92 | #today = '' |
| 93 | # Else, today_fmt is used as the format for a strftime call. |
| 94 | #today_fmt = '%B %d, %Y' |
| 95 | |
| 96 | # List of patterns, relative to source directory, that match files and |
| 97 | # directories to ignore when looking for source files. |
Rich Bennett | d1f0949 | 2017-07-25 19:28:00 -0400 | [diff] [blame] | 98 | exclude_patterns = [ |
Rich Bennett | 082a34d | 2017-10-24 10:08:26 -0400 | [diff] [blame] | 99 | '_build' |
Rich Bennett | d1f0949 | 2017-07-25 19:28:00 -0400 | [diff] [blame] | 100 | ] |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 101 | |
| 102 | # The reST default role (used for this markup: `text`) to use for all |
| 103 | # documents. |
| 104 | #default_role = None |
| 105 | |
| 106 | # If true, '()' will be appended to :func: etc. cross-reference text. |
| 107 | #add_function_parentheses = True |
| 108 | |
| 109 | # If true, the current module name will be prepended to all description |
| 110 | # unit titles (such as .. function::). |
| 111 | #add_module_names = True |
| 112 | |
| 113 | # If true, sectionauthor and moduleauthor directives will be shown in the |
| 114 | # output. They are ignored by default. |
| 115 | #show_authors = False |
| 116 | |
| 117 | # The name of the Pygments (syntax highlighting) style to use. |
| 118 | pygments_style = 'sphinx' |
| 119 | |
| 120 | # A list of ignored prefixes for module index sorting. |
| 121 | #modindex_common_prefix = [] |
| 122 | |
| 123 | # If true, keep warnings as "system message" paragraphs in the built documents. |
| 124 | #keep_warnings = False |
| 125 | |
| 126 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
| 127 | todo_include_todos = True |
| 128 | |
| 129 | |
| 130 | # -- Options for HTML output ---------------------------------------------- |
| 131 | |
| 132 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 133 | # a list of builtin themes. |
Rich Bennett | ae91ceb | 2017-10-16 08:28:03 -0400 | [diff] [blame] | 134 | #html_theme = 'bootstrap' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 135 | html_theme = 'classic' |
| 136 | |
| 137 | # Theme options are theme-specific and customize the look and feel of a theme |
| 138 | # further. For a list of options available for each theme, see the |
| 139 | # documentation. |
| 140 | #html_theme_options = {} |
| 141 | |
| 142 | # Add any paths that contain custom themes here, relative to this directory. |
Rich Bennett | ae91ceb | 2017-10-16 08:28:03 -0400 | [diff] [blame] | 143 | #html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 144 | |
| 145 | # The name for this set of Sphinx documents. If None, it defaults to |
| 146 | # "<project> v<release> documentation". |
| 147 | #html_title = None |
| 148 | |
| 149 | # A shorter title for the navigation bar. Default is the same as html_title. |
| 150 | #html_short_title = None |
| 151 | |
| 152 | # The name of an image file (relative to this directory) to place at the top |
| 153 | # of the sidebar. |
| 154 | html_logo = '_static/logo_onap_2017.png' |
| 155 | |
| 156 | # The name of an image file (within the static path) to use as favicon of the |
| 157 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 158 | # pixels large. |
| 159 | html_favicon = '_static/favicon.ico' |
| 160 | |
| 161 | # Add any paths that contain custom static files (such as style sheets) here, |
| 162 | # relative to this directory. They are copied after the builtin static files, |
| 163 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 164 | html_static_path = ['_static'] |
| 165 | |
| 166 | # Add any extra paths that contain custom files (such as robots.txt or |
| 167 | # .htaccess) here, relative to this directory. These files are copied |
| 168 | # directly to the root of the documentation. |
| 169 | #html_extra_path = [] |
| 170 | |
| 171 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
| 172 | # using the given strftime format. |
Rich Bennett | 80455a5 | 2017-11-08 05:17:00 -0500 | [diff] [blame] | 173 | html_last_updated_fmt = '%d-%b-%y %H:%M' |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 174 | |
| 175 | # If true, SmartyPants will be used to convert quotes and dashes to |
| 176 | # typographically correct entities. |
| 177 | #html_use_smartypants = True |
| 178 | |
| 179 | # Custom sidebar templates, maps document names to template names. |
| 180 | #html_sidebars = {} |
| 181 | |
| 182 | # Additional templates that should be rendered to pages, maps page names to |
| 183 | # template names. |
| 184 | #html_additional_pages = {} |
| 185 | |
| 186 | # If false, no module index is generated. |
| 187 | #html_domain_indices = True |
| 188 | |
| 189 | # If false, no index is generated. |
| 190 | #html_use_index = True |
| 191 | |
| 192 | # If true, the index is split into individual pages for each letter. |
| 193 | #html_split_index = False |
| 194 | |
| 195 | # If true, links to the reST sources are added to the pages. |
| 196 | #html_show_sourcelink = True |
| 197 | |
| 198 | # 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] | 199 | html_show_sphinx = False |
Rich Bennett | 22ef085 | 2017-07-19 18:05:55 -0400 | [diff] [blame] | 200 | |
| 201 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
| 202 | #html_show_copyright = True |
| 203 | |
| 204 | # If true, an OpenSearch description file will be output, and all pages will |
| 205 | # contain a <link> tag referring to it. The value of this option must be the |
| 206 | # base URL from which the finished HTML is served. |
| 207 | #html_use_opensearch = '' |
| 208 | |
| 209 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
| 210 | #html_file_suffix = None |
| 211 | |
| 212 | # Language to be used for generating the HTML full-text search index. |
| 213 | # Sphinx supports the following languages: |
| 214 | # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' |
| 215 | # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' |
| 216 | #html_search_language = 'en' |
| 217 | |
| 218 | # A dictionary with options for the search language support, empty by default. |
| 219 | # Now only 'ja' uses this config value |
| 220 | #html_search_options = {'type': 'default'} |
| 221 | |
| 222 | # The name of a javascript file (relative to the configuration directory) that |
| 223 | # implements a search results scorer. If empty, the default will be used. |
| 224 | #html_search_scorer = 'scorer.js' |
| 225 | |
| 226 | # Output file base name for HTML help builder. |
| 227 | htmlhelp_basename = 'ONAPdoc' |
| 228 | |
| 229 | # -- Options for LaTeX output --------------------------------------------- |
| 230 | |
| 231 | latex_elements = { |
| 232 | # The paper size ('letterpaper' or 'a4paper'). |
| 233 | #'papersize': 'letterpaper', |
| 234 | |
| 235 | # The font size ('10pt', '11pt' or '12pt'). |
| 236 | #'pointsize': '10pt', |
| 237 | |
| 238 | # Additional stuff for the LaTeX preamble. |
| 239 | #'preamble': '', |
| 240 | |
| 241 | # Latex figure (float) alignment |
| 242 | #'figure_align': 'htbp', |
| 243 | } |
| 244 | |
| 245 | # Grouping the document tree into LaTeX files. List of tuples |
| 246 | # (source start file, target name, title, |
| 247 | # author, documentclass [howto, manual, or own class]). |
| 248 | latex_documents = [ |
| 249 | (master_doc, 'ONAP.tex', u'ONAP Documentation', |
| 250 | u'ONAP Contributors', 'manual'), |
| 251 | ] |
| 252 | |
| 253 | # The name of an image file (relative to this directory) to place at the top of |
| 254 | # the title page. |
| 255 | #latex_logo = None |
| 256 | |
| 257 | # For "manual" documents, if this is true, then toplevel headings are parts, |
| 258 | # not chapters. |
| 259 | #latex_use_parts = False |
| 260 | |
| 261 | # If true, show page references after internal links. |
| 262 | #latex_show_pagerefs = False |
| 263 | |
| 264 | # If true, show URL addresses after external links. |
| 265 | #latex_show_urls = False |
| 266 | |
| 267 | # Documents to append as an appendix to all manuals. |
| 268 | #latex_appendices = [] |
| 269 | |
| 270 | # If false, no module index is generated. |
| 271 | #latex_domain_indices = True |
| 272 | |
| 273 | |
| 274 | # -- Options for manual page output --------------------------------------- |
| 275 | |
| 276 | # One entry per manual page. List of tuples |
| 277 | # (source start file, name, description, authors, manual section). |
| 278 | man_pages = [ |
| 279 | (master_doc, 'onap', u'ONAP Documentation', |
| 280 | [author], 1) |
| 281 | ] |
| 282 | |
| 283 | # If true, show URL addresses after external links. |
| 284 | #man_show_urls = False |
| 285 | |
| 286 | |
| 287 | # -- Options for Texinfo output ------------------------------------------- |
| 288 | |
| 289 | # Grouping the document tree into Texinfo files. List of tuples |
| 290 | # (source start file, target name, title, author, |
| 291 | # dir menu entry, description, category) |
| 292 | texinfo_documents = [ |
| 293 | (master_doc, 'ONAP', u'ONAP Documentation', |
| 294 | author, 'ONAP', 'Open Network Automation Platform', |
| 295 | 'Platform'), |
| 296 | ] |
| 297 | |
| 298 | # Documents to append as an appendix to all manuals. |
| 299 | #texinfo_appendices = [] |
| 300 | |
| 301 | # If false, no module index is generated. |
| 302 | #texinfo_domain_indices = True |
| 303 | |
| 304 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
| 305 | #texinfo_show_urls = 'footnote' |
| 306 | |
| 307 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
| 308 | #texinfo_no_detailmenu = False |
| 309 | |
| 310 | |
| 311 | # -- Options for Epub output ---------------------------------------------- |
| 312 | |
| 313 | # Bibliographic Dublin Core info. |
| 314 | epub_title = project |
| 315 | epub_author = author |
| 316 | epub_publisher = author |
| 317 | epub_copyright = copyright |
| 318 | |
| 319 | # The basename for the epub file. It defaults to the project name. |
| 320 | #epub_basename = project |
| 321 | |
| 322 | # The HTML theme for the epub output. Since the default themes are not optimized |
| 323 | # for small screen space, using the same theme for HTML and epub output is |
| 324 | # usually not wise. This defaults to 'epub', a theme designed to save visual |
| 325 | # space. |
| 326 | #epub_theme = 'epub' |
| 327 | |
| 328 | # The language of the text. It defaults to the language option |
| 329 | # or 'en' if the language is not set. |
| 330 | #epub_language = '' |
| 331 | |
| 332 | # The scheme of the identifier. Typical schemes are ISBN or URL. |
| 333 | #epub_scheme = '' |
| 334 | |
| 335 | # The unique identifier of the text. This can be a ISBN number |
| 336 | # or the project homepage. |
| 337 | #epub_identifier = '' |
| 338 | |
| 339 | # A unique identification for the text. |
| 340 | #epub_uid = '' |
| 341 | |
| 342 | # A tuple containing the cover image and cover page html template filenames. |
| 343 | #epub_cover = () |
| 344 | |
| 345 | # A sequence of (type, uri, title) tuples for the guide element of content.opf. |
| 346 | #epub_guide = () |
| 347 | |
| 348 | # HTML files that should be inserted before the pages created by sphinx. |
| 349 | # The format is a list of tuples containing the path and title. |
| 350 | #epub_pre_files = [] |
| 351 | |
| 352 | # HTML files shat should be inserted after the pages created by sphinx. |
| 353 | # The format is a list of tuples containing the path and title. |
| 354 | #epub_post_files = [] |
| 355 | |
| 356 | # A list of files that should not be packed into the epub file. |
| 357 | epub_exclude_files = ['search.html'] |
| 358 | |
| 359 | # The depth of the table of contents in toc.ncx. |
| 360 | #epub_tocdepth = 3 |
| 361 | |
| 362 | # Allow duplicate toc entries. |
| 363 | #epub_tocdup = True |
| 364 | |
| 365 | # Choose between 'default' and 'includehidden'. |
| 366 | #epub_tocscope = 'default' |
| 367 | |
| 368 | # Fix unsupported image types using the Pillow. |
| 369 | #epub_fix_images = False |
| 370 | |
| 371 | # Scale large images. |
| 372 | #epub_max_image_width = 0 |
| 373 | |
| 374 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
| 375 | #epub_show_urls = 'inline' |
| 376 | |
| 377 | # If false, no index is generated. |
| 378 | #epub_use_index = True |
Rich Bennett | 927141f | 2017-09-13 14:15:20 -0400 | [diff] [blame] | 379 | |
| 380 | # Patterns to ignore in linkcheck builder |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 381 | linkcheck_ignore = [ |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 382 | r'http://$', |
Rich Bennett | 054fce6 | 2018-05-22 00:07:55 -0400 | [diff] [blame] | 383 | r'http:/$', |
| 384 | r'http://10\.', |
| 385 | r'http://127\.', |
| 386 | r'http://172\.[123]', |
| 387 | r'http://app_host:port/', |
| 388 | r'http://app-host:port/', |
| 389 | r'http://ESR_SERVICE_IP', |
| 390 | r'http://ESR_SERVER_IP', |
| 391 | r'http://hostIP:\d+/', |
| 392 | r'http://load-balanced-address:\d+/', |
| 393 | r'http://localhost', |
| 394 | r'http://\$msb_address/', |
| 395 | r'http://\$MSB_SERVER_IP:\d+/', |
| 396 | r'http://msb_docker_host_ip:\d+/', |
| 397 | r'http://MSB_IP:MSB_PORT/', |
| 398 | r'http://msb.onap.org', |
| 399 | r'http://MSB_SERVER_IP:\d+/', |
| 400 | r'http://org.openecomp.', |
| 401 | r'http://{PDP_URL}:\d+/', |
| 402 | r'http://servername.domain.com', |
| 403 | r'http://.*simpledemo.openecomp.org', |
| 404 | r'http://.*simpledemo.onap.org', |
| 405 | r'http://.*test.att.com:\d+/', |
| 406 | r'http://we-are-data-router.us', |
| 407 | r'http://we-are-message-router.us:\d+/' |
| 408 | r'http://www.\[host\]:\[port\]/', |
| 409 | r'http://yourhostname', |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 410 | r'https://$', |
Rich Bennett | 054fce6 | 2018-05-22 00:07:55 -0400 | [diff] [blame] | 411 | r'https:/$', |
| 412 | r'https://10\.', |
| 413 | r'https://127\.', |
| 414 | r'https://172\.[123]', |
| 415 | r'https://aaf.onap.org', |
| 416 | r'https://\$CBAM_IP', |
| 417 | r'https://ESR_SERVICE_IP', |
| 418 | r'https://ESR_SERVER_IP', |
| 419 | r'https://msb.onap.org', |
| 420 | r'https://my-subscriber-app.dcae', |
| 421 | r'https://\$CBAM_IP:\d+/', |
| 422 | r'https://load-balanced-address:\d+/', |
| 423 | r'https://prov.datarouternew.com:8443', |
| 424 | r'https://.*simpledemo.openecomp.org', |
| 425 | r'https://.*simpledemo.onap.org', |
| 426 | r'https://.*test.att.com:\d+/', |
| 427 | r'https://we-are-data-router.us', |
| 428 | r'https://we-are-message-router.us:\d+/' |
Rich Bennett | 3665e09 | 2018-05-08 00:06:15 -0400 | [diff] [blame] | 429 | ] |
Rich Bennett | 0ec5a75 | 2018-07-12 16:23:19 -0400 | [diff] [blame] | 430 | |
| 431 | from docutils.parsers.rst import directives |
| 432 | |
| 433 | needs_extra_options = { |
| 434 | "target": directives.unchanged, |
| 435 | "keyword": directives.unchanged, |
| 436 | "introduced": directives.unchanged, |
| 437 | "updated": directives.unchanged, |
| 438 | "impacts": directives.unchanged, |
| 439 | "validation_mode": directives.unchanged, |
| 440 | "validated_by": directives.unchanged, |
| 441 | "test": directives.unchanged, |
| 442 | "test_case": directives.unchanged, |
| 443 | "test_file": directives.unchanged, |
| 444 | "notes": directives.unchanged, |
| 445 | } |
| 446 | |
| 447 | needs_id_regex = "^[A-Z0-9]+-[A-Z0-9]+" |
| 448 | needs_id_required = True |
| 449 | needs_title_optional = True |
| 450 | |
| 451 | needs_template_collapse = """ |
| 452 | .. _{{id}}: |
| 453 | |
| 454 | {% if hide == false -%} |
| 455 | .. role:: needs_tag |
| 456 | .. role:: needs_status |
| 457 | .. role:: needs_type |
| 458 | .. role:: needs_id |
| 459 | .. role:: needs_title |
| 460 | |
| 461 | .. rst-class:: need |
| 462 | .. rst-class:: need_{{type_name}} |
| 463 | |
| 464 | .. container:: need |
| 465 | |
| 466 | `{{id}}` - {{content|indent(4)}} |
| 467 | |
| 468 | .. container:: toggle |
| 469 | |
| 470 | .. container:: header |
| 471 | |
| 472 | Details |
| 473 | |
| 474 | {% if status and status|upper != "NONE" and not hide_status %} | status: :needs_status:`{{status}}`{% endif %} |
| 475 | {% if tags and not hide_tags %} | tags: :needs_tag:`{{tags|join("` :needs_tag:`")}}`{% endif %} |
| 476 | {% if keyword %} | keyword: `{{keyword}}` {% endif %} |
| 477 | {% if target %} | target: `{{target}}` {% endif %} |
| 478 | {% if introduced %} | introduced: `{{introduced}}` {% endif %} |
| 479 | {% if updated %} | updated: `{{updated}}` {% endif %} |
| 480 | {% if impacts %} | impacts: `{{impacts}}` {% endif %} |
| 481 | {% if validation_mode %} | validation mode: `{{validation_mode}}` {% endif %} |
| 482 | {% if validated_by %} | validated by: `{{validated_by}}` {% endif %} |
| 483 | {% if test %} | test: `{{test}}` {% endif %} |
| 484 | {% if test_case %} | test case: {{test_case}} {% endif %} |
| 485 | {% if test_file %} | test file: `{{test_file}}` {% endif %} |
| 486 | {% if notes %} | notes: `{{notes}}` {% endif %} |
| 487 | | children: :need_incoming:`{{id}}` |
| 488 | | parents: :need_outgoing:`{{id}}` |
| 489 | {% endif -%} |
| 490 | """ |