This is the source material for the Introduction to Ancient Metagenomics text book developed for the SPAAM Summer School: Introduction to Ancient Metagenomics.
This text book has been developed as a Quarto Book, allowing for both website and PDF formats.
It is highly recommend to use the Gitpod environment to develop new material for the textbook, as it provides a fully set up writing environment.
If running locally, I highly recommend installing VS Code (or your preferred text editor/IDE) and the corresponding Quarto extension for development. This allows rendering prior to pushing to GitHub, and debugging of any issues of the website view. Make sure you also install all the dependincy requirements as described in the .gitpod.Dockerfile
git switch -c new-chapter
.qmd
file in the root directory, else edit the existing .qmd
file of your choiceassets/images/chapters/
docs/assets/images/chapters/
!references.bib
file into assets/references/<chapter_name>.bib
docs/assets/envs/<chapter_name>.bib
.qmd
file to the _quarto.yml
config file in the chapters:
scopemain
branch [^2]![WARNING] Only push
.qmd
, images,.bib
files etc! Do not pushhtml
json
files etc., from the rendering!
General tips:
![](assets/images/chapters/<your_image>.png)
)If adding a new section chapter:
Clone this repository
Make a new branch e.g. git switch -c new-chapter
Make a new .qmd
file in the root directory
Images for the chapter should go into assets/images/chapters/
docs/assets/images/chapters/
!References in BibTex for the chapter should go a references.bib
file into assets/references/chapters/<chapter>
Add the .qmd
file to the _quarto.yml
config file in the chapters:
scope
Render the book the extensions' Quarto: Render Book
command, or run the following
quarto preview intro-to-ancient-metagenomics-book/ --render all --no-browser --no-watch-inputs
Commit, push to GitHub, and open a PR against the main
branch [^2]
[!WARNING] Only push
.qmd
, images,.bib
files etc! Do not pushhtml
json
files etc., from the rendering!
General tips:
![](assets/images/chapters/<your_image>.png)
)[^1]: I recommend installing the gitpod chrome extension which adds a nice shortcut button to the github repository next to the green 'code' button.
[^2]: If you're using gitpod and have a 'don't have permissions' error when pushing you may need to do the following: (1) Go to: https://gitpod.io/user/integrations (2) Press triple dots next to the GitHub Git Provider (3) Edit permissions so all permissions are ticked except for read:user