Contribute Guide
Getting started (Local gitbook)
git clone https://github.com/techbootcamp/book.git
yarn global add gitbook-cli
ornpm install gitbook-cli -g
cd book
yarn
ornpm install
gitbook update
gitbook serve
- go to
localhost:4000
Some features you can include in this gitbook
Check the markdown of this page to see the source
Youtube videos
Mermaid Diagrams (helpful for flow or process diagrams) See the Official Mermaid website on how to use this cool tool.
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
Language Syntax Highlighting (using Prism)
const apiUrl = 'http://numbersapi.com/random/year?json'
const requestRandomNumberFact = fetch(apiUrl).then((res) => res.json())
requestRandomNumberFact
.then((fact) => {
console.log(fact.text)
})
REPL JS using klipse
//This section is interactive/editable
function greet() {
return 'Welcome to Tech Bootcamp!'
}
greet()
// You will see the last return below
See Klipse
Publishing the Gitbook
git add .
- Commit your changes with
git commit -m "<YOUR COMMIT MESSAGE>"
git push
- Travis will build your changes and build the gitbook and do a
git push --force
on thegh-pages
branch. This way you don't have to worry about merge conflicts :D - Wait a minute and go to the Gitbook to see your change.
- If you don't see your change, disable your cache See how on chrome here and refresh with your devtool open. OR you can try holding
shift
and click refresh.