File: conf.py

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,924 kB
  • sloc: python: 21,132; javascript: 187; makefile: 89; sh: 29; xml: 10
file content (65 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
extensions = ["sphinx_needs"]

needs_types = [
    {
        "directive": "spec",
        "title": "Specification",
        "prefix": "SP_",
    }
]

needs_extra_links = [
    {
        "option": "link1",
        "incoming": "is linked by",
        "outgoing": "links to",
    },
    {
        "option": "link2",
        "incoming": "is linked by",
        "outgoing": "links to",
    },
    {
        "option": "link3",
        "incoming": "is linked by",
        "outgoing": "links to",
    },
]

needs_extra_options = [
    "option_1",
    "option_2",
    "option_3",
    "option_4",
    "option_5",
    "bad_value_type",
    "too_many_params",
]

needs_global_options = {
    "layout": "clean_l",
    "option_1": "test_global",
    "option_2": "[[copy('id')]]",
    "option_3": ("STATUS_IMPL", 'status == "implemented"'),
    "option_4": ("STATUS_CLOSED", 'status == "closed"', "STATUS_UNKNOWN"),
    "option_5": [
        ("STATUS_IMPL", 'status == "implemented"', "bad"),
        ("STATUS_CLOSED", 'status == "closed"', "final"),
    ],
    "link1": "SPEC_1",
    "link2": [
        ("SPEC_2,[[copy('link1')", 'status == "implemented"'),
        ("SPEC_3", 'status == "closed"', ["SPEC_1"]),
    ],
    "link3": 1,
    "tags": [
        ("a,b", 'status == "implemented"'),
        ("c", 'status == "closed"', ["d"]),
    ],
    "bad_value_type": 1.27,
    "too_many_params": ("a", "b", "c", "d"),
    "unknown": "unknown",
}

needs_build_json = True
needs_json_remove_defaults = True