Skip to content

Commit adb85ad

Browse files
committed
Merge pull request #127 from stephenplusplus/docs
docs: jsdoc + travis auto build to gh-pages.
2 parents 454fcc5 + dce251d commit adb85ad

33 files changed

Lines changed: 9181 additions & 639 deletions

.jsdoc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"opts": {
3+
"destination": "docs",
4+
"encoding": "utf-8"
5+
},
6+
"plugins": [
7+
"plugins/markdown"
8+
],
9+
"source": {
10+
"include": [
11+
"lib/datastore/index.js",
12+
"lib/datastore/dataset.js",
13+
"lib/datastore/query.js",
14+
"lib/storage/index.js",
15+
"lib/index.js"
16+
]
17+
}
18+
}

.travis.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
language: node_js
2-
script: "npm run-script lint && npm run-script test"
1+
language:
2+
node_js
33
node_js:
4-
- "0.10"
4+
- 0.10
5+
branches:
6+
only:
7+
- master
8+
env:
9+
global:
10+
- secure: "B1vanjI2TMf+YnmbcF5HWAMNnmT+CFr2EB1CCIcyoWqs2RIBvgiDH0gDR46iUDdfPRSt3Eokaru1fY8ptZDRnrt3oKokWp4ZrRO0x7uUGbkGfdmHHxnOlUA1m9rVhaOBCWl5opfaA8ncWcXwdWZGg7HWpS7EfTNr2dIr7lAC2mU="
11+
- GH_OWNER: GoogleCloudPlatform
12+
- GH_PROJECT_NAME: gcloud-node
13+
script:
14+
- npm run lint
15+
- npm run test
16+
after_success:
17+
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
18+
- cd site
19+
- if git checkout gh-pages; then git checkout -b gh-pages; fi
20+
- git rm -r .
21+
- cp -R ../docs/* .
22+
- cp ../docs/.* .
23+
- git add -f .
24+
- git config user.email "sawchuk@gmail.com"
25+
- git config user.name "stephenplusplus"
26+
- git commit -am "building gh-pages [ci skip]"
27+
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1

0 commit comments

Comments
 (0)