forked from neo4j-documentation/developer-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·22 lines (17 loc) · 764 Bytes
/
deploy.sh
File metadata and controls
executable file
·22 lines (17 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
rm -rf deploy
mkdir deploy
export IMAGE_BASE_URL=http://dev.assets.neo4j.com.s3.amazonaws.com/wp-content/uploads/
export GITHUB=https://github.com/neo4j-contrib/developer-resources/tree/gh-pages
export MANUAL=http://neo4j.com/docs/stable
for file in `find . -mindepth 2 -maxdepth 3 -name "*.adoc"`; do
echo "Rendering $file"
filename=${file##*/}
filename=${filename%.adoc}
bundle exec asciidoctor -a source-highlighter=codemirror -a linkattrs -a img=${IMAGE_BASE_URL} -a manual="${MANUAL}" -a github="${GITHUB}" -T _templates/wordpress $file -o deploy/${filename}.html 2>&1 | grep -v "out of sequence"
done
for guide in deploy/* ; do
./publish.rb $guide
done
#git add .
#git commit -m "content-update for github-pages"
#git push origin gh-pages