language: node_js
dist: trusty
sudo: false
node_js:
  - "6"
git:
    submodules: false
install:
  - yarn global add gitbook-cli
  - npm install gitbook@3.2.2
  - mkdir -p ~/.gitbook/versions
  - cp node_modules/gitbook ~/.gitbook/versions/3.2.2
  - cd ~/.gitbook/versions/3.2.2 && npm i
  - cd $TRAVIS_BUILD_DIR
script:
  - gitbook build ./docs ./docs-build
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  local_dir: docs-build
  fqdn: doc.iot.noahgao.net
  on:
    branch: master

language: node_js
dist: trusty
sudo: false
node_js:
  - "6"
git:
    submodules: false
install:
  - yarn global add gitbook-cli
  - npm install gitbook@3.2.2
  - mkdir -p ~/.gitbook/versions
  - cp -r node_modules/gitbook ~/.gitbook/versions/3.2.2
  - cd ~/.gitbook/versions/3.2.2 && npm i
  - cd $TRAVIS_BUILD_DIR
script:
  - gitbook build ./docs ./docs-build
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  local_dir: docs-build
  fqdn: doc.iot.noahgao.net
  on:
    branch: master

Check Travis CI support for Documentation Deployment
Check Travis CI support for Documentation Deployment
