mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Update docs/sync-web-site.sh to include the generated directory
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
git clone git@github.com:quarkusio/quarkusio.github.io.git target/web-site
|
git clone git@github.com:quarkusio/quarkusio.github.io.git target/web-site
|
||||||
|
|
||||||
rsync -vr \
|
rsync -vr \
|
||||||
--exclude='**/*.html' \
|
--exclude='**/*.html' \
|
||||||
--exclude='**/index.adoc' \
|
--exclude='**/index.adoc' \
|
||||||
@@ -7,6 +9,13 @@ rsync -vr \
|
|||||||
src/main/asciidoc/* \
|
src/main/asciidoc/* \
|
||||||
target/web-site/_guides
|
target/web-site/_guides
|
||||||
|
|
||||||
|
rsync -vr \
|
||||||
|
--exclude='**/*.html' \
|
||||||
|
--exclude='**/index.adoc' \
|
||||||
|
--exclude='**/attributes.adoc' \
|
||||||
|
../target/asciidoc/generated \
|
||||||
|
target/web-site/_guides/
|
||||||
|
|
||||||
echo "Sync done!"
|
echo "Sync done!"
|
||||||
echo "=========="
|
echo "=========="
|
||||||
|
|
||||||
@@ -15,7 +24,7 @@ then
|
|||||||
echo "Updating the web site"
|
echo "Updating the web site"
|
||||||
cd target/web-site
|
cd target/web-site
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "sync web site with quarkus documentation"
|
git commit -m "Sync web site with Quarkus documentation"
|
||||||
git push origin develop
|
git push origin develop
|
||||||
echo "Web Site updated - wait for CI build"
|
echo "Web Site updated - wait for CI build"
|
||||||
else
|
else
|
||||||
@@ -23,4 +32,3 @@ else
|
|||||||
echo "cd target/web-site && bundle exec jekyll serve"
|
echo "cd target/web-site && bundle exec jekyll serve"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user