Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hdsenevi/f597273cc079f478048e5b7c5fc1c553 to your computer and use it in GitHub Desktop.
Save hdsenevi/f597273cc079f478048e5b7c5fc1c553 to your computer and use it in GitHub Desktop.
Publish Gatsby gitbook starter on github pages
  1. Check out https://github.com/hasura/gatsby-gitbook-starter
  2. Create a public repo on githut (knowledgebase-test)
  3. Check out knowledgebase-test
  4. git checkout -b master
  5. copy gatsby-gitbook-starter files on to knowledgebase-test
  6. push master to remote
  7. update package.json run scripts with : "deploy": "gatsby build --prefix-paths && gh-pages -d public"
  8. install gh-pages npm package : npm i gh-pages
  9. add .gitignore file and add the following to it
  • node_modules
  • .cache
  • public
  1. move README.md to docs/gatsby-gitbook-starter-readme.md
  2. Change config.js
  1. npm run deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment