Build Guide & Pipeline
The project is architected for full reproducibility and minimal build dependencies.
📋 Prerequisites
Building the complete publication release requires:
- Typst (
typstversion 0.13.0 or higher) - Python 3 with
PyMuPDF(isolated automatically viauv) - uv (fast Python package manager)
🛠️ Compiling the Publication PDF
Quick Build via Make
From the repository root directory:
Or invoke the build script directly:
The Two-Stage Pipeline
- Typst Compilation: Generates the raw 520-page vector PDF.
-
TOC & Label Injection:
Readsdata/macdonell_1916.toc.txt, parses the 81-step hierarchical outline, and injects: -
The PDF outline tree.
- Native PDF page labels (
i–xiifor front matter,1–508for the main text). - Consolidated TOC export
dist/Macdonell_1916_Vedic_Grammar_Digital_Edition.toc.txt.
📖 Local Documentation Preview
This documentation site is built with Material for MkDocs using the Birchville "Scholarly Synthesis" theme.
Start Local Development Server
Or directly usinguv:
Open http://127.0.0.1:8000 in your web browser.
Generate Production Static Build
Builds the multilingual static site into thesite/ directory.
🚀 GitHub Actions Continuous Deployment
On every push to main modifying docs/** or mkdocs.yml, the workflow .github/workflows/deploy.yml compiles and deploys the site to: