Skip to content

Commit

Permalink
Added script for doc release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbury committed Nov 24, 2016
1 parent 12b2eb2 commit d588bd7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2
2 changes: 1 addition & 1 deletion doc/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Guillaume Bury <[email protected]>

* link:dev[]
* link:0.1[]

* link:0.2[]

34 changes: 34 additions & 0 deletions doc/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash -e

# Get current verison number
version=`cat VERSION`

# Enssure we are on master branch
git checkout master

# Generate documentation
(cd src && make doc)
(cd doc && asciidoc index.txt)

# Checkout gh-pages
git checkout gh-pages
git pull

# Create doc folder if it does not exists
mkdir -p ./$version

# Copy doc to the right locations
cp doc/index.html ./
cp src/dolmen.docdir/* ./$version/

# Add potentially new pages
git add ./$version/*
git add ./index.html

# Commit it all & push
git commit -m "Doc release $version"
git push

# Get back to master branch
git checkout master

0 comments on commit d588bd7

Please sign in to comment.