1 from docs_conf.conf import *
10 intersphinx_mapping = {}
12 html_last_updated_fmt = '%d-%b-%y %H:%M'
15 app.add_stylesheet("css/ribbon_onap.css")
18 from docutils.parsers.rst import directives
20 needs_extra_options = {
21 "target": directives.unchanged,
22 "keyword": directives.unchanged,
23 "introduced": directives.unchanged,
24 "updated": directives.unchanged,
25 "impacts": directives.unchanged,
26 "validation_mode": directives.unchanged,
27 "validated_by": directives.unchanged,
28 "test": directives.unchanged,
29 "test_case": directives.unchanged,
30 "test_file": directives.unchanged,
31 "notes": directives.unchanged,
34 needs_id_regex = "^[A-Z0-9]+-[A-Z0-9]+"
35 needs_id_required = True
36 needs_title_optional = True
38 needs_template_collapse = """
41 {% if hide == false -%}
43 .. role:: needs_status
49 .. rst-class:: need_{{type_name}}
53 `{{id}}` - {{content|indent(4)}}
61 {% if status and status|upper != "NONE" and not hide_status %} | status: :needs_status:`{{status}}`{% endif %}
62 {% if tags and not hide_tags %} | tags: :needs_tag:`{{tags|join("` :needs_tag:`")}}`{% endif %}
63 {% if keyword %} | keyword: `{{keyword}}` {% endif %}
64 {% if target %} | target: `{{target}}` {% endif %}
65 {% if introduced %} | introduced: `{{introduced}}` {% endif %}
66 {% if updated %} | updated: `{{updated}}` {% endif %}
67 {% if impacts %} | impacts: `{{impacts}}` {% endif %}
68 {% if validation_mode %} | validation mode: `{{validation_mode}}` {% endif %}
69 {% if validated_by %} | validated by: `{{validated_by}}` {% endif %}
70 {% if test %} | test: `{{test}}` {% endif %}
71 {% if test_case %} | test case: {{test_case}} {% endif %}
72 {% if test_file %} | test file: `{{test_file}}` {% endif %}
73 {% if notes %} | notes: `{{notes}}` {% endif %}
74 | children: :need_incoming:`{{id}}`
75 | parents: :need_outgoing:`{{id}}`