aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToineSiebelink <toine.siebelink@est.tech>2021-10-28 13:51:17 +0100
committerToineSiebelink <toine.siebelink@est.tech>2021-10-28 13:55:43 +0100
commit8d0a6367aef11a50b67d8d222425afbb88a67356 (patch)
tree16beff07fd5d1922385af662d16d1b7918a4c51a
parentf9031bed13fef2d37a2f864b33d30a9f32e52502 (diff)
RTD Doc Fixes as done in Master branch
Cherry picking gave problems merged all changes into this patch instead Issue-ID: CPS-754 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Iae542c56b4657144f95a77588e6659b29aa5a575
-rw-r--r--.readthedocs.yaml38
-rw-r--r--docs/requirements-docs.txt (renamed from requirements.txt)0
-rw-r--r--docs/tox.ini (renamed from tox.ini)8
3 files changed, 42 insertions, 4 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
new file mode 100644
index 0000000..9c22c0b
--- /dev/null
+++ b/.readthedocs.yaml
@@ -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
diff --git a/requirements.txt b/docs/requirements-docs.txt
index 5a3d2f1..5a3d2f1 100644
--- a/requirements.txt
+++ b/docs/requirements-docs.txt
diff --git a/tox.ini b/docs/tox.ini
index 0087c8c..55d6f09 100644
--- a/tox.ini
+++ b/docs/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?h=istanbul
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=istanbul
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?h=istanbul
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=istanbul
commands = echo "Link Checking not enforced"