diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-13 11:14:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-13 11:14:06 +0100 |
commit | 42b79931412e12358aa4bad6444fce1e74ca5d82 (patch) | |
tree | 35cf08aef07cfcea2b6929e84a7d7ad87e168f1a /contrib/update-tos.sh | |
parent | 2a8b351822734d7b028f4b7c62d219fe7cdc9564 (diff) |
generate ToS with inline CSS
Diffstat (limited to 'contrib/update-tos.sh')
-rwxr-xr-x | contrib/update-tos.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/update-tos.sh b/contrib/update-tos.sh index 81636be50..67db7c031 100755 --- a/contrib/update-tos.sh +++ b/contrib/update-tos.sh @@ -14,7 +14,7 @@ cd tos for l in $@ do mkdir -p $l - echo Generating TOS for language $l + echo "Generating TOS for language $l" cat conf.py.in | sed -e "s/%VERSION%/$VERSION/g" > conf.py # 'f' is for the supported formats, note that the 'make' target # MUST match the file extension. @@ -23,7 +23,12 @@ do rm -rf _build echo " Generating format $f" make -e SPHINXOPTS="-D language='$l'" $f >>sphinx.log 2>>sphinx.err < /dev/null - mv _build/$f/${VERSION}.$f $l/${VERSION}.$f + if test $f = "html" + then + htmlark -o $l/${VERSION}.$f _build/$f/${VERSION}.$f + else + mv _build/$f/${VERSION}.$f $l/${VERSION}.$f + fi done done cd .. |