|
13 | 13 | # -- Project information ----------------------------------------------------- |
14 | 14 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
15 | 15 |
|
16 | | -project = "suricata-check-application-example" |
| 16 | +project = "suricata-check-extension-example" |
17 | 17 | copyright = "2024, Koen Teuwen" |
18 | 18 | author = "Koen Teuwen" |
19 | 19 |
|
|
26 | 26 |
|
27 | 27 | extensions = [ |
28 | 28 | "myst_parser", |
29 | | - "sphinx.ext.autodoc", |
30 | 29 | "autoapi.extension", |
31 | 30 | "sphinx.ext.intersphinx", |
32 | 31 | "sphinx.ext.viewcode", |
|
39 | 38 | intersphinx_mapping = { |
40 | 39 | "python": ("https://docs.python.org/3/", None), |
41 | 40 | "sphinx": ("https://www.sphinx-doc.org/en/master", None), |
| 41 | + "suricata-check": ("https://suricata-check.teuwen.net/", None), |
42 | 42 | "idstools": ("https://idstools.readthedocs.io/en/latest/", None), |
43 | | - "suricata-check": ("https://suricata-check.readthedocs.io/en/latest/", None), |
44 | 43 | } |
45 | 44 |
|
46 | 45 | root_doc = "index" |
47 | 46 | master_doc = "index" |
48 | 47 |
|
| 48 | +suppress_warnings = [] |
| 49 | + |
49 | 50 | # -- Options for HTML output ------------------------------------------------- |
50 | 51 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
51 | 52 |
|
52 | 53 | html_theme = "sphinx_rtd_theme" |
53 | | -html_static_path = ["static"] |
| 54 | +html_theme_options = { |
| 55 | + "prev_next_buttons_location": "both", |
| 56 | + "style_external_links": True, |
| 57 | +} |
| 58 | +html_favicon = "https://docs.readthedocs.io/favicon.ico" |
54 | 59 |
|
55 | 60 | # -- Options for MyST ------------------------------------------------- |
56 | 61 | # https://myst-parser.readthedocs.io/en/latest/ |
57 | 62 |
|
58 | 63 | myst_enable_extensions = ["linkify"] |
59 | 64 | myst_heading_anchors = 5 |
60 | 65 |
|
61 | | -# -- Options for Autodoc ------------------------------------------------- |
62 | | -# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration |
63 | | - |
64 | | -autoclass_context = "both" |
65 | | -autodoc_class_signature = "separated" |
66 | | -autodoc_member_order = "groupwise" |
67 | | -autodoc_default_flags = [ |
68 | | - "members", |
69 | | - "special-members", |
70 | | - "inherited-members", |
71 | | - "show-inheritance", |
72 | | - "ignore-module-all", |
73 | | - "maxdepth", |
74 | | -] |
75 | | -autodoc_default_options = { |
76 | | - "member-order": "bysource", |
77 | | - "special-members": "__init__", |
78 | | - "undoc-members": False, |
79 | | - "maxdepth": 2, |
80 | | -} |
81 | | -autodoc_typehints = "both" |
82 | | -autodoc_typehints_description_target = "all" |
83 | | - |
84 | | -# -- Options for AutoAPI ------------------------------------------------- |
85 | | -# https://sphinx-autoapi.readthedocs.io/en/latest/ |
86 | | - |
87 | 66 | autoapi_dirs = ["../suricata_check_extension_example"] |
88 | 67 | autoapi_options = [ |
89 | 68 | "members", |
|
96 | 75 | autoapi_python_class_content = "both" |
97 | 76 | autoapi_member_order = "groupwise" |
98 | 77 | autoapi_own_page_level = "module" |
| 78 | + |
| 79 | +# -- Options for viewcode ------------------------------------------------- |
| 80 | +# https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html |
| 81 | + |
| 82 | +viewcode_line_numbers = True |
0 commit comments