| 1 | all: doc |
| 2 | |
| 3 | doc: |
| 4 | # prerequisites for building docs: |
| 5 | # pacman -S asciidoctor (or your OS's equivalent) |
| 6 | # gem install pygments.rb |
| 7 | mkdir -p dist/latest/ |
| 8 | asciidoctor -a docinfo -a stylesheet! -o dist/latest/index.html content.adoc |
| 9 | cp -r assets dist/latest/ |
| 10 | |
| 11 | github: doc |
| 12 | # prerequisites for pushing docs: |
| 13 | # pip install ghp-import |
| 14 | ghp-import -m "Generate documentation" -b gh-pages dist/ |
| 15 | git push origin gh-pages |