Skip to content

Commit

Permalink
🔥 Get rid of make for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jun 23, 2020
1 parent 9a4f93b commit bea3777
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 104 deletions.
77 changes: 0 additions & 77 deletions docs/docsite/Makefile

This file was deleted.

25 changes: 0 additions & 25 deletions docs/docsite/Makefile.sphinx

This file was deleted.

19 changes: 17 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,24 @@ passenv =
PRE_COMMIT_HOME

[testenv:docs]
whitelist_externals = make
basepython = python3
deps = sphinx
commands = make -C docs/docsite htmldocs
commands =
# sh -c "cat _themes/srtd/static/css/theme.css | sed -e 's/^[ ]*//g; s/[ ]*$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$/d' | sed -e :a -e '$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css"
sh -c "{envpython} -m ansiblelint -L -f rst > rst/rules/default_rules.rst"
# -W \ # TODO: apply once no warnings
{envpython} -m sphinx \
-j auto \
--color \
-n \
-b html \
rst/ \
_build/html/
{envpython} -c 'print("BUILD: Produced docs at file://{toxinidir}/docs/docsite/_build/html/index.html")'
sh -c "git diff --quiet || \{ echo 'ERROR: Building docs changed tracked files, include them in commit to avoid this failure.'; exit 1; \}"
changedir = {toxinidir}/docs/docsite
whitelist_externals =
sh

[testenv:metadata-validation]
description =
Expand Down

0 comments on commit bea3777

Please sign in to comment.