chore(search): automatically compile docs search index

This commit is contained in:
perry
2016-01-20 14:42:37 -06:00
parent d0de3d8d8a
commit 92c67b4174

View File

@ -21,12 +21,17 @@ function run {
cd .. cd ..
VERSION=$(readJsonProp "package.json" "version") VERSION=$(readJsonProp "package.json" "version")
# process new docs
gulp docs --doc-version="$VERSION_NAME" gulp docs --doc-version="$VERSION_NAME"
# compile sass vars json for ionic-site docs # compile sass vars json for ionic-site docs
gulp docs.sass-variables gulp docs.sass-variables
cp tmp/sass.json $SITE_DIR/docs/v2/theming/overriding-ionic-variables/ cp tmp/sass.json $SITE_DIR/docs/v2/theming/overriding-ionic-variables/
# generate search index
gulp docs.index
# CD in to the site dir to commit updated docs
cd $SITE_DIR cd $SITE_DIR
CHANGES=$(git status --porcelain) CHANGES=$(git status --porcelain)