git clone https://github.com/techbootcamp/book.gityarn global add gitbook-cliornpm install gitbook-cli -gcd bookyarnornpm installgitbook updategitbook serve- go to
localhost:4000
Check the markdown of this page to see the source
Youtube videos
{% youtube %} https://www.youtube.com/watch?v=8aGhZQkoFbQ" {% endyoutube %}
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
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 --forceon thegh-pagesbranch. 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
shiftand click refresh.