-from docs_conf.conf import *
+"""Sphinx configuration for vnfrqts/requirements documentation."""
-branch = 'latest'
-master_doc = 'index'
-version = 'honolulu'
+project = "onap"
+release = "master"
+version = "master"
+
+author = "Open Network Automation Platform"
+# yamllint disable-line rule:line-length
+copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License"
+
+pygments_style = "sphinx"
+html_theme = "sphinx_rtd_theme"
+html_theme_options = {
+ "style_nav_header_background": "white",
+ "sticky_navigation": "False",
+}
+html_logo = "_static/logo_onap_2017.png"
+html_favicon = "_static/favicon.ico"
+html_static_path = ["_static"]
+html_show_sphinx = False
+
+master_doc = "index"
+
+extensions = [
+ "sphinx.ext.intersphinx",
+ "sphinx.ext.graphviz",
+ "sphinx.ext.ifconfig",
+ "sphinxcontrib.needs",
+ "sphinxcontrib.plantuml",
+ "sphinxcontrib.mermaid",
+]
+
+exclude_patterns = [
+ ".DS_Store",
+ "_build",
+ "Thumbs.db",
+ ".tox",
+]
+
+todo_include_todos = False
linkcheck_ignore = [
- 'http://localhost',
+ "http://localhost",
]
-intersphinx_mapping.update({
- 'modeling': ('https://docs.onap.org/projects/onap-modeling-modelspec/en/latest/', None),
- 'dcae': ('https://docs.onap.org/projects/onap-dcaegen2/en/latest/', None),
- 'appc': ('https://docs.onap.org/projects/onap-appc/en/latest/', None),
- 'appc-deployment': ('https://docs.onap.org/projects/onap-appc-deployment/en/latest/', None),
-})
+branch = "latest"
+
+doc_url = "https://docs.onap.org/projects"
+
+intersphinx_mapping = {
+ "modeling": (
+ "{}/onap-modeling-modelspec/en/latest/".format(doc_url),
+ None,
+ ),
+ "dcae": (
+ "{}/onap-dcaegen2/en/latest/".format(doc_url),
+ None,
+ ),
+}
-html_last_updated_fmt = '%d-%b-%y %H:%M'
+html_last_updated_fmt = "%d-%b-%y %H:%M"
def setup(app):
app.add_css_file("css/ribbon.css")
-from docutils.parsers.rst import directives
-
-needs_extra_options = {
- "target": directives.unchanged,
- "keyword": directives.unchanged,
- "introduced": directives.unchanged,
- "updated": directives.unchanged,
- "impacts": directives.unchanged,
- "validation_mode": directives.unchanged,
-}
+needs_extra_options = [
+ "target",
+ "keyword",
+ "introduced",
+ "updated",
+ "impacts",
+ "validation_mode",
+]
needs_id_regex = "^[A-Z0-9]+-[A-Z0-9]+"
needs_id_required = True
-needs_title_optional = True
+needs_title_optional = True
\ No newline at end of file
skipsdist = true
[testenv:docs]
-basepython = python3
+basepython = python3.13
deps =
-r{toxinidir}/requirements-docs.txt
- -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
echo "Generated docs available in {toxinidir}/_build/html"
-whitelist_externals =
+allowlist_externals =
echo
git
sh
[testenv:docs-linkcheck]
-basepython = python3
+basepython = python3.13
#deps = -r{toxinidir}/requirements-docs.txt
commands = echo "Link Checking not enforced"
#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
-whitelist_externals = echo
+allowlist_externals = echo
python3 check.py
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/_build/html"
-whitelist_externals =
+allowlist_externals =
echo
git
sh
[testenv:needs]
basepython = python3
deps = -r{toxinidir}/etc/requirements.txt
- -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
commands = sphinx-build -c ./docs/ -b needs -n -d {envtmpdir}/doctrees ./docs/ ./docs/data/
[testenv:docs-linkcheck]
basepython = python3
deps = -r{toxinidir}/etc/requirements.txt
- -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
commands = echo "Link Checking not enforced"
#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
-whitelist_externals = echo
\ No newline at end of file
+allowlist_externals = echo
\ No newline at end of file