blob: 1d20dcd1c0c0b14c9f65eedd080734b4648b93d8 [file] [log] [blame]
JvD_Ericssond1825032024-06-07 13:53:56 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2024 Ericsson
3# Modifications Copyright (C) 2024 OpenInfra Foundation Europe
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20[tox]
21minversion = 4.0
22envlist =
23 docs,
24 docs-linkcheck,
25skipsdist = true
26
27[testenv:docs]
28basepython = python3
29deps = -r{toxinidir}/docs/requirements-docs.txt
30
31commands =
32 sphinx-build -W -b html -n -d {envtmpdir}/docs/doctrees ./docs/ {toxinidir}/docs/_build/html
33 echo "Generated docs available in {toxinidir}/docs/_build/html"
34allowlist_externals = echo
35
36[testenv:docs-linkcheck]
37basepython = python3
38deps = -r{toxinidir}/docs/requirements-docs.txt
39commands = sphinx-build -W -b linkcheck -d {envtmpdir}/docs/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck