blob: a041612d5271991380caa8d41f31b0991a66484c [file] [log] [blame]
E. Scott Danielsb7a4b522019-11-07 15:35:17 -05001# vim: ts=4 expandtab sw=4:
2#==================================================================================
3# Copyright (c) 2019 Nokia
4# Copyright (c) 2018-2019 AT&T Intellectual Property.
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#==================================================================================
18
19# This is needed only to support the RTD scraper(s)
20#
21# CAUTION: requires python/tox and maybe others to be installed in the dev environment
22# to test with:
23# tox -e docs
24#
25[tox]
26minversion = 2.0
27envlist =
28 docs,
29 docs-linkcheck,
30skipsdist = true
31
32[testenv:docs]
33basepython = python3
34deps =
35 sphinx
36 sphinx-rtd-theme
37 sphinxcontrib-httpdomain
38 recommonmark
39 lfdocs-conf
Anil Belur39a4b3f2023-05-30 17:21:44 +100040 urllib3~=1.26.15
41allowlist_externals = echo
E. Scott Danielsb7a4b522019-11-07 15:35:17 -050042commands =
43 sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
44 echo "Generated docs available in {toxinidir}/docs/_build/html"
E. Scott Danielsb7a4b522019-11-07 15:35:17 -050045
46[testenv:docs-linkcheck]
47basepython = python3
48deps = sphinx
49 sphinx-rtd-theme
50 sphinxcontrib-httpdomain
51 recommonmark
52 lfdocs-conf
Anil Belur39a4b3f2023-05-30 17:21:44 +100053 urllib3~=1.26.15
E. Scott Danielsb7a4b522019-11-07 15:35:17 -050054commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
55