Scripts for managing DSCI 532 project repositories from the UBC-MDS GitHub organization.
Create a virtual environment and install dependencies:
make setupOr manually:
uv venv
source .venv/bin/activate
uv pip install -e .The script requires a GitHub Personal Access Token (PAT). You can provide it in three ways (in order of precedence):
- Enter it when prompted (press Enter to skip to next option)
- Store in a
.envfile (copy.env.exampleto.envand add your token):cp .env.example .env # Then edit .env and add your token - Set as an environment variable:
export GITHUB_TOKEN=your_token_here # or export GITHUB_PAT=your_token_here
To create a token, visit: https://github.com/settings/tokens
The project includes several scripts that should be run in sequence:
make allTo render and preview the Quarto website locally:
quarto previewThis will start a local web server and automatically open the site in your browser. The preview will auto-refresh when you make changes to any .qmd files.
To build the site without previewing:
quarto renderThe rendered site will be in the _site/ directory.