diff options
-rw-r--r-- | .readthedocs.yaml | 2 | ||||
-rw-r--r-- | docs/conf.py | 13 | ||||
-rw-r--r-- | docs/release/component-release-notes.rst | 1 | ||||
-rw-r--r-- | docs/requirements-docs.txt (renamed from etc/requirements-docs.txt) | 0 | ||||
-rw-r--r-- | docs/tox.ini | 33 | ||||
-rw-r--r-- | tox.ini | 77 |
6 files changed, 43 insertions, 83 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9972e7212..7f740b769 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,7 +12,7 @@ build: python: version: 3.7 install: - - requirements: etc/requirements-docs.txt + - requirements: docs/requirements-docs.txt submodules: include: all diff --git a/docs/conf.py b/docs/conf.py index 88e12576d..e7af3f626 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,11 +6,15 @@ author = "Open Network Automation Platform" # yamllint disable-line rule:line-length copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License" +exclude_patterns = [ + '.tox' +] + pygments_style = "sphinx" html_theme = "sphinx_rtd_theme" html_theme_options = { - "style_nav_header_background": "white", - "sticky_navigation": "False" } + "style_nav_header_background": "white", + "sticky_navigation": "False" } html_logo = "_static/logo_onap_2017.png" html_favicon = "_static/favicon.ico" html_static_path = ["_static"] @@ -20,9 +24,10 @@ extensions = [ 'sphinx.ext.intersphinx', 'sphinx.ext.graphviz', 'sphinxcontrib.blockdiag', + 'sphinxcontrib.plantuml', 'sphinxcontrib.seqdiag', + 'sphinxcontrib.spelling' , 'sphinxcontrib.swaggerdoc', - 'sphinxcontrib.plantuml', 'sphinx_toolbox.collapse' ] @@ -82,5 +87,5 @@ def setup(app): app.add_css_file("css/ribbon.css") linkcheck_ignore = [ - r'http://localhost:\d+/' + r'http://localhost:\d+/' ] diff --git a/docs/release/component-release-notes.rst b/docs/release/component-release-notes.rst index d02cccb22..c73512a43 100644 --- a/docs/release/component-release-notes.rst +++ b/docs/release/component-release-notes.rst @@ -22,7 +22,6 @@ AAI - Active and Available Inventory CCSDK - Common Controller Software Development Kit -------------------------------------------------- -- :ref:`ccsdk/cds <onap-ccsdk-cds:release_notes>` - :ref:`ccsdk/distribution <onap-ccsdk-distribution:release_notes>` - :ref:`ccsdk/oran <onap-ccsdk-oran:release_notes>` diff --git a/etc/requirements-docs.txt b/docs/requirements-docs.txt index 5616848a1..5616848a1 100644 --- a/etc/requirements-docs.txt +++ b/docs/requirements-docs.txt diff --git a/docs/tox.ini b/docs/tox.ini new file mode 100644 index 000000000..a90bc6429 --- /dev/null +++ b/docs/tox.ini @@ -0,0 +1,33 @@ +[tox] +minversion = 1.6 +envlist = docs,docs-linkcheck,docs-spellcheck +skipsdist = true + +[testenv:docs] +basepython = python3.8 +deps = + -r{toxinidir}/requirements-docs.txt + -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt + -c{toxinidir}/../etc/upper-constraints.onap.txt +commands = + sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/html +allowlist_externals = + git + sh + +[testenv:docs-linkcheck] +basepython = python3.8 +deps = + -r{toxinidir}/requirements-docs.txt + -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt + -c{toxinidir}/../etc/upper-constraints.onap.txt +commands = sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/linkcheck + +[testenv:docs-spellcheck] +basepython = python3.8 +deps = + -r{toxinidir}/requirements-docs.txt + -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt + -c{toxinidir}/../etc/upper-constraints.onap.txt +commands = + sphinx-build -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 1fdc85bea..000000000 --- a/tox.ini +++ /dev/null @@ -1,77 +0,0 @@ -[tox] -minversion = 1.6 -envlist = docs,docs-linkcheck -skipsdist = true - -[testenv:docs] -basepython = python3.8 -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html - echo "Generated docs available in {toxinidir}/docs/_build/html" -whitelist_externals = - echo - git - sh - -[testenv:docs-templates] -basepython = python3.8 -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - sphinx-build -W -b html -n -d {envtmpdir}/doctrees -c {toxinidir}/docs ./docs/guides/onap-developer/how-to-use-docs/templates {toxinidir}/docs/_build/html/templates - echo "Generated docs available in {toxinidir}/docs/_build/html/templates" -whitelist_externals = - echo - -[testenv:local] -basepython = python3.8 -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - git submodule update --depth 100 --init - sphinx-build -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html - echo "Generated docs available in {toxinidir}/docs/_build/html" -whitelist_externals = - echo - git - -[testenv:docs-linkcheck] -basepython = python3.8 -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck - -[testenv:spellcheck] -basepython = python3.8 -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck - -[testenv:autopep8] -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - autopep8 --max-line-length 120 --in-place docs/conf.py - -[testenv:pylint] -deps = - -r{toxinidir}/etc/requirements-docs.txt - -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt - -c{toxinidir}/etc/upper-constraints.onap.txt -commands = - pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y --output-format=colorized docs/conf.py |