Skip to content

acederberg/quarto-maths

Repository files navigation

This is my blog, powered by quarto. For more details about site content see the deployed instance. To see coverage reports, got see the artifacts on github pages.

Running

For all set ups, make the configuration dir config and provide your kaggle configuration in config/kaggle/kaggle.json.

With Docker Compose

To run in development mode, use docker compose like

docker compose --file docker/compose.yaml

This will provide access to quarto, python, and r.

The Hard Way

First, ensure that quarto is installed. Then setup a virtual environment and add install the dependencies using poetry:

python -m venv .venv
source .venv/bin/activate
python -m pip install poetry
poetry install

Building

To render the website, just

cd blog
quarto add quarto-ext/iclude-code-files
quarto render
cd -

To build the docker image, run

export ACEDERBERG_IO_GOOGLE_TRACKING_ID="tracking id here"
docker build --tag acederberg/quarto-blog-builder \
    --file ./docker/dockerfile \
    --secret id=kaggle_json,src=./config/kaggle/kaggle.json . \
    --secret id=google_tracking_id,env=ACEDERBERG_IO_GOOGLE_TRACKING_ID

or use the production compose project:

export ACEDERBERG_IO_GOOGLE_TRACKING_ID="tracking id here"
docker compose --file docker/compose.prod.yaml build

To verify the build metatags use scripts.meta.