Skip to content

Commit

Permalink
Build docs when building website
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Apr 20, 2016
1 parent be85869 commit 5e05d72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"opts": {
"readme": "./README.md",
"recurse": true,
"destination": "./demo/public/docs"
"destination": "./docs"
},
"plugins": [
"plugins/markdown"
Expand Down
4 changes: 4 additions & 0 deletions bin/build-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ mkdir -p website/demo
echo "Copying $(pwd)/demo/dist/* to $(pwd)/website/demo"
cp -R demo/dist/* website/demo/

echo "Copying $(pwd)/docs to $(pwd)/website/demo"
mkdir -p website/demo/docs
cp -R docs/* website/demo/docs/

CURRENT_SHA="$(git rev-parse HEAD)"
git add website/
git commit -m "built website from $CURRENT_SHA"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:ci": "npm run build && testem ci -f testem-ci.json",
"test": "npm run build && testem ci -f testem.json",
"build": "rm -rf dist && broccoli build dist",
"build-website": "./bin/build-website.sh",
"build-website": "npm run docs && ./bin/build-website.sh",
"deploy-website": "./bin/deploy-website.sh",
"update-changelog": "conventional-changelog -i CHANGELOG.md -r 0 -s",
"docs": "jsdoc -c ./.jsdoc"
Expand Down

0 comments on commit 5e05d72

Please sign in to comment.