@@ -15,3 +15,5 @@ deploy:
tags: true
branch: master
repo: opensheetmusicdisplay/opensheetmusicdisplay
+after_deploy:
+ - ./bin/publish_docs.sh
@@ -121,11 +121,12 @@ module.exports = function (grunt) {
typings: {
install: {}
},
+ // Class documentation using typedoc
typedoc: {
build: {
options: {
module: 'commonjs',
- out: './docs',
+ out: './build/docs',
name: 'opensheetmusicdisplay',
target: 'es5',
mode: 'file'
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+git clone git@github.com:opensheetmusicdisplay/opensheetmusicdisplay.github.io.git
+rsync -a ./build/docs ./opensheetmusicdisplay.github.io.git
+git status
+git add *
+git commit -m "Pushed auto-generated class documentation for $TRAVIS_TAG"
+git tag -a $TRAVIS_TAG -m "Class documentation for $TRAVIS_TAG"
+git push origin master --follow-tags