This repository is designed to help you quickly get started with PreTeXt by launching a GitHub Codespace. The following steps will guide you through building and deploying your PreTeXt project.
There are two easy ways to set up your own PreTeXt-enabled Codespace:
.devcontainer/, .github/, .gitignore, requirements.txt folder from fragandi/CURITutorialDevelopment2025.README_images/ folder and README.md file (for guidance and troubleshooting)This option gives you more flexibility to customize your setup while keeping the essential PreTeXt environment.
Once the Codespace has finished creating, check that PreTeXt is installed by running:
pretext --version
If you see an error like command not found, follow these steps:
Ctrl+Shift+P → type Reload Window → hit Enter.Terminal: Kill Terminal from the command palette.Ctrl+Shift+\` (backtick) or go to Terminal → New Terminal.pretext build web
codechat serve
pretext deploy --pages
Make sure to configure GitHub Pages to use GitHub Actions as the build and deployment source:

Go to your repository Settings → Environments → click on github-pages, and make sure it looks similar to the following:

Deployment usually takes about 4 minutes. After triggering the deployment, wait a few minutes and then visit your GitHub Pages URL.
