|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +# -- Project information ----------------------------------------------------- |
| 7 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | + |
| 9 | +project = "test_needextend" |
| 10 | +copyright = "2025, useblocks" |
| 11 | +author = "team useblocks" |
| 12 | + |
| 13 | +# -- General configuration --------------------------------------------------- |
| 14 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 15 | + |
| 16 | +templates_path = ["_templates"] |
| 17 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 18 | + |
| 19 | + |
| 20 | +# -- Options for HTML output ------------------------------------------------- |
| 21 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 22 | + |
| 23 | +html_theme = "furo" |
| 24 | +# html_static_path = ["_static"] |
| 25 | + |
| 26 | +extensions = ["sphinx_needs", "sphinx_codelinks"] |
| 27 | + |
| 28 | +# for needextend to work with remote url |
| 29 | +needs_extra_options = ["remote_url"] |
| 30 | + |
| 31 | +needs_string_links = { |
| 32 | + "custom_name": { |
| 33 | + "regex": r"^(?P<value>.+)#L(?P<lineno>.*)?", |
| 34 | + "link_url": "{url}", |
| 35 | + "link_name": "{{value}}#L{{lineno}}", |
| 36 | + "options": ["remote_url"], |
| 37 | + } |
| 38 | +} |
0 commit comments