Skip to content

Commit

Permalink
move docs/versions.html to the new generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Feb 7, 2023
1 parent cf21d2f commit e82cdb0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 199 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ disttmp
docroot
docs/download.html
docs/options.html
docs/versions.html
dygraphs-2.*.tgz
env
jsdoc
Expand Down
191 changes: 0 additions & 191 deletions docs/versions.html

This file was deleted.

21 changes: 13 additions & 8 deletions scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ else
dv=
fi

rm -f docs/download.html docs/options.html
rm -f docs/download.html docs/options.html docs/versions.html
scripts/generate-download.py ${dv:+"$dv"} >docs/download.html
scripts/generate-documentation.py >docs/options.html
chmod a+r docs/options.html
test -s docs/options.html || {
echo "generate-documentation.py failed"
exit 1
}
scripts/generate-versions.sh >docs/versions.html
chmod a+r docs/download.html docs/options.html docs/versions.html
for file in docs/download.html docs/options.html docs/versions.html; do
test -s "$file" || {
echo >&2 "E: generating $file failed"
exit 1
}
done

scripts/generate-jsdoc.sh
scripts/generate-download.py ${dv:+"$dv"} >docs/download.html

rm -rf docroot
mkdir docroot
cd docs
Expand All @@ -31,7 +36,7 @@ cd ../docroot
rm -f NOTES TODO common footer.html header.html *.py
mv README README-docs.txt
cd ..
rm -f docs/download.html docs/options.html
rm -f docs/download.html docs/options.html docs/versions.html
pax -rw -l \
common \
gallery \
Expand Down

0 comments on commit e82cdb0

Please sign in to comment.