Skip to content

Commit

Permalink
Make wget less verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Aug 23, 2024
1 parent cea1578 commit f477d92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/website-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ mkdir web-site
cd web-site
echo "Clone gh-pages"
git clone https://$GH_TOKEN@github.com/ObeoNetwork/M2Doc.git -b gh-pages --quiet .
if [[ "$TAG" != "" ]]; then chmod a+x ./promote.sh; ./promote.sh $TAG; fi
echo "Build gh-pages"
# create documentation folder
mkdir ../plugins/org.obeonetwork.m2doc.doc/doc
# download the nighlty documentation
echo " - Download nightly documentation"
wget -r --no-parent --no-host-directories -P ../plugins/org.obeonetwork.m2doc.doc/doc/ https://www.m2doc.org/ref-doc/nightly/
wget -r --no-parent --no-host-directories --no-verbose -P ../plugins/org.obeonetwork.m2doc.doc/doc/ https://www.m2doc.org/ref-doc/nightly/
# replace nigthly by current tag
if [ -n "$TAG" ]; then
echo " - Replace Nightly to" $TAG
Expand All @@ -23,7 +22,7 @@ echo " - Remove navigation bar"
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i '/<nav/,/nav>/d' {} \;
# replace all download versions link
echo " - Replace all versions download link"
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's#../../download/#all-versions#https://github.com/ObeoNetwork/M2Doc/releases#g' {} \;
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's_../../download/#all-versions_https://github.com/ObeoNetwork/M2Doc/releases_g' {} \;
# copy static resources
echo " - Copy static resources"
cp -R css ../plugins/org.obeonetwork.m2doc.doc/doc/
Expand Down

0 comments on commit f477d92

Please sign in to comment.