- Check out https://github.com/hasura/gatsby-gitbook-starter
- Create a public repo on githut (knowledgebase-test)
- Check out knowledgebase-test
- git checkout -b master
- copy gatsby-gitbook-starter files on to knowledgebase-test
- push master to remote
- update package.json run scripts with :
"deploy": "gatsby build --prefix-paths && gh-pages -d public"
- install gh-pages npm package :
npm i gh-pages
- add .gitignore file and add the following to it
- node_modules
- .cache
- public
- move
README.md
todocs/gatsby-gitbook-starter-readme.md
- Change config.js
- pathPrefix: '/knowledgebase-test'
- siteUrl: 'https://hdsenevi.github.io'
- githubUrl : 'https://hdsenevi.github.io/knowledgebase-test'
- title: 'Knowledge base test'
- description: 'My personal knowledge base for test'
- docsLocation: 'https://github.com/hdsenevi/knowledgebase-test/tree/master/content'
- favicon: 'https://github.com/hdsenevi/knowledgebase-test/tree/master/src/images/img/hasura_icon_black.svg'
npm run deploy