Skip to content

Commit

Permalink
docs: gh-pages update by tox
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Oct 4, 2023
1 parent 31851ba commit 89d1c5d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,27 @@ description = Build sphinx documentation
platform = darwin
basepython = python3.11
passenv = SAPNWRFC_HOME
change_dir = doc
allowlist_externals =
sphinx-build
deps = sphinx
commands =
sphinx-build -b html -a -E -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:gh-pages]
description = Build gh-pages
platform = darwin
basepython = python3.11
skip_install = true
allowlist_externals =
git
rm
cp
cd
deps = sphinx
commands =
cd doc
sphinx-build -b html -a -E -d {envtmpdir}/doctrees . {envtmpdir}/html
git checkout gh-pages
cd {toxinidir}
rm -rf *.html searchindex.js objects.inv _images _sources _static
cp -R {envtmpdir}/html/. .
cp -R {envtmpdir}/docs/tmp/html/. .
git add .
git commit -m "gh-pages update by tox"
git checkout main
Expand Down

0 comments on commit 89d1c5d

Please sign in to comment.