fix documentation 21/125421/4
authorthmsdt <thomas.kulik@telekom.de>
Wed, 27 Oct 2021 13:05:51 +0000 (15:05 +0200)
committerthmsdt <thomas.kulik@telekom.de>
Thu, 28 Oct 2021 09:04:19 +0000 (11:04 +0200)
Issue-ID: CPS-754

Signed-off-by: thmsdt <thomas.kulik@telekom.de>
Change-Id: Ic14bbb60ba1d629d0f12b2d5e268a014cd344792

.readthedocs.yaml [new file with mode: 0644]
docs/requirements-docs.txt [moved from requirements.txt with 100% similarity]
docs/tox.ini [moved from tox.ini with 85% similarity]

diff --git a/.readthedocs.yaml b/.readthedocs.yaml
new file mode 100644 (file)
index 0000000..9c22c0b
--- /dev/null
@@ -0,0 +1,38 @@
+#  ============LICENSE_START=======================================================
+#  Copyright (C) 2021 Nordix Foundation
+#  ================================================================================
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+#  SPDX-License-Identifier: Apache-2.0
+#  ============LICENSE_END=========================================================
+
+---
+# .readthedocs.yml
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+# Required
+version: 2
+
+formats:
+  - htmlzip
+
+build:
+  image: latest
+
+python:
+  version: 3.7
+  install:
+    - requirements: docs/requirements-docs.txt
+
+sphinx:
+  configuration: docs/conf.py
similarity index 100%
rename from requirements.txt
rename to docs/requirements-docs.txt
similarity index 85%
rename from tox.ini
rename to docs/tox.ini
index 92aa4b2..0f25a72 100644 (file)
--- a/tox.ini
@@ -23,12 +23,12 @@ skipsdist = true
 
 [testenv:docs]
 basepython = python3
-deps = -r{toxinidir}/requirements.txt
+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}/docs/doctrees ./docs {toxinidir}/docs/_build/html
-    echo "Generated docs available in {toxinidir}/docs/_build/html"
+    sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
+    echo "Generated docs available in {toxinidir}/_build/html"
 whitelist_externals =
     echo
     git
@@ -36,7 +36,7 @@ whitelist_externals =
 
 [testenv:docs-linkcheck]
 basepython = python3
-deps = -r{toxinidir}/requirements.txt
+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 = echo "Link Checking not enforced"