Quarto: The Definitive Guide
The book is rendered and deployed to Netlify via a GitHub action. Changes to the main
branch trigger a deployment to the published site. Pull requests trigger a deployment preview.
Substantive changes are proposed using pull requests.
The book project sets freeze
to auto
, so when you propose changes you should:
- Locally render the book
- Examine the git diff for changes to
_freeze/
, and commit changes to relevant files.
Since the GitHub action that renders the book does not execute any code, forgetting to commit to _freeze
will result in a failed check on the PR.
The R environment is managed with renv. This should work automatically when opening the book project, and you'll be prompted by renv to get the required packages with renv::restore()
.
If your contribution adds a dependency on an R package, make sure you run renv::snapshot()
, and commit changes to renv.lock
.
Use Python 3.12.
Create a virtual environment in the env/
folder, in Terminal:
python3 -m venv env
Activate the environment:
source env/bin/activate
Install packages from requirements.txt
:
python3 -m pip install -r requirements.txt
VS Code + Python extension should pick up this environment automatically.
Or on Terminal, activate the environment:
source env/bin/activate
- Activate the environment
- Install the additional packages using
pip
- Update
requirements.txt
python3 -m pip freeze > requirements.txt
- Commit
requirements.txt