Chapter 2 Scripting in Texworks
Process to host this document on github
- Download and unpack [https://github.com/rstudio/bookdown-demo/archive/master.zip]
 - Open the project file in RStudio
 - Add a new textfile named 
00-texworks-scripting.Rmdin the project. - Open the 
index.Rmdfile and knit it to gitbook - Following chapter 6.2 Github in [https://bookdown.org/yihui/bookdown/github.html] for hosting on github
touch .nojekyll- Generated a github personal access token
 - Create the github repository [https://github.com/henrikmidtiby/bookdown-testing]
 - Commit changes to git and push to the git hub repository [https://github.com/henrikmidtiby/bookdown-testing]
 - Signed in on tracis-ci.com using github
 - Activated the 
bookdown-testingrepository on travis-ci.com by clicking on the buttonActivate all repositories using gihub apps, after clicking I could select a single repository - Set up deployment to github pages [https://docs.travis-ci.com/user/deployment/pages/]
 
 - Manual running the build and deploy script locally.
- [https://henrikmidtiby.github.io/bookdown-testing/]
 - Modified the file 
_output.ymlby setting the path to the hosting github repository `+ edit: https://github.com/henrikmidtiby/bookdown-testing/edit/master/%s` - Modified the 
_deploy.shscript to check for themainbranch instead of themasterbranch 
 - It actually works now!
 - This is a change made in the github online editor