Skip to content

Instantly share code, notes, and snippets.

@nukosuke
Created September 25, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nukosuke/d780bf150c4ac087c4972e1f903b811a to your computer and use it in GitHub Desktop.
Save nukosuke/d780bf150c4ac087c4972e1f903b811a to your computer and use it in GitHub Desktop.
annict.jsのドキュメント生成&公開スクリプト
#!/bin/sh
npm install && \
npm run docs && \
git checkout gh-pages && \
rm -rf classes interfaces assets index.html && \
mv ./docs/* . && \
rmdir docs && \
git add . && \
git commit -m "build $(git describe --abbrev=0 master) document : $(date)" && \
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment