Skip to content

Commit d221ea4

Browse files
zxiirorameshthoomu
authored andcommitted
FAB-7987 Add tox.ini for building docs in CI
Change-Id: Ia3b873b12d7091a1db6b569c913cfc4e6bebd985 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
1 parent d7dd231 commit d221ea4

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ bin/
4848
examples/e2e_cli/channel-artifacts/*.tx
4949
examples/e2e_cli/channel-artifacts/*.block
5050
examples/e2e_cli/crypto-config/*
51+
# tox
52+
.tox/
5153
# vscode settings
5254
.vscode

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build/

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
minversion = 1.6
3+
envlist = docs
4+
skipsdist=true
5+
6+
[testenv:docs]
7+
deps = -rdocs/requirements.txt
8+
commands =
9+
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/source {toxinidir}/docs/_build/html
10+
echo "Generated docs available in {toxinidir}/docs/_build/html"
11+
whitelist_externals = echo

0 commit comments

Comments
 (0)