Rendered Book URL: https://giovannellilab.github.io/
- Suggested way: using
Pull Requests
- Suggested tool:
RStudio
as it can show a preview of the rendered book. However, any code editor can work.
git clone [email protected]:giovannellilab/giovannellilab.github.io.git
Open R in the terminal and install bookdown
package:
install.packages("bookdown")
For a complete reference go to: bookdown repository
Open Rstudio and create a new project
RStudio > File > New Project > Existing Directory > giovannellilab.github.io
then click Create Project
.
In the panel Build
, open the dropdown menu and choose: bookdown::gitbook
.
From now on, you can modify each markdown file and render all the changes by clicking on Build Book
in the Build panel. After this, Rstudio will open a preview of the book
.
This will update the docs
folder, then commit changes and push when you have finished.
After modifying the markdown, you can render all the changes by executing the following command in R:
bookdown::render_book()
To see the changes, you have to manually open the docs/index.html
with your browser.
-
Commit the changes and push them to GitHub.
-
The GitHub page will load the new version in a few minutes