diff --git a/package.json b/package.json index 853e1c95e..a6cf730be 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build": "./scripts/build.sh", "release": "./scripts/release.sh", "lint": "eslint .", - "test": "npm run lint" + "test": "npm run lint", + "gh-pages": "./scripts/gh-pages" }, "author": "Algolia (https://github.com/algolia/)", "license": "MIT", @@ -26,6 +27,7 @@ "eslint-config-airbnb": "^0.1.0", "eslint-config-algolia": "^4.2.0", "eslint-plugin-react": "^3.5.1", + "gh-pages": "^0.5.0", "json": "^9.0.3", "mversion": "^1.10.1", "npm-shrinkwrap": "^200.4.0", diff --git a/scripts/gh-pages b/scripts/gh-pages new file mode 100755 index 000000000..0f9fe4f15 --- /dev/null +++ b/scripts/gh-pages @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +rm -rf node_modules/gh-pages/.cache + +cd ./docs +bundle install +bundle exec jekyll build +gh-pages --dist docs/_site --branch gh-pages