Bruno Sakoto | ff7d57a | 2021-09-07 18:21:59 -0400 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2021 Bell Canada |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | [tox] |
| 20 | minversion = 1.6 |
| 21 | envlist = docs |
| 22 | skipsdist = true |
| 23 | |
| 24 | [testenv:docs] |
| 25 | basepython = python3 |
Cédric Ollivier | 508a72a | 2021-10-15 09:41:53 +0200 | [diff] [blame] | 26 | deps = -r{toxinidir}/requirements.txt |
lukegleeson | 4e50279 | 2021-09-30 11:01:48 +0100 | [diff] [blame] | 27 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt |
| 28 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt |
Bruno Sakoto | ff7d57a | 2021-09-07 18:21:59 -0400 | [diff] [blame] | 29 | commands = |
Cédric Ollivier | 508a72a | 2021-10-15 09:41:53 +0200 | [diff] [blame] | 30 | sphinx-build -b html -n -d {envtmpdir}/docs/doctrees ./docs {toxinidir}/docs/_build/html |
| 31 | echo "Generated docs available in {toxinidir}/docs/_build/html" |
Bruno Sakoto | ff7d57a | 2021-09-07 18:21:59 -0400 | [diff] [blame] | 32 | whitelist_externals = |
| 33 | echo |
| 34 | git |
| 35 | sh |
| 36 | |
| 37 | [testenv:docs-linkcheck] |
| 38 | basepython = python3 |
Cédric Ollivier | 508a72a | 2021-10-15 09:41:53 +0200 | [diff] [blame] | 39 | deps = -r{toxinidir}/requirements.txt |
lukegleeson | 4e50279 | 2021-09-30 11:01:48 +0100 | [diff] [blame] | 40 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt |
| 41 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt |
Bruno Sakoto | ff7d57a | 2021-09-07 18:21:59 -0400 | [diff] [blame] | 42 | commands = echo "Link Checking not enforced" |
| 43 | whitelist_externals = |
| 44 | echo |