Build Automation
Build & Automation
The build system centers on a Makefile with 40+ targets, backed by 10 maintenance scripts, a Kroki diagram server for rendering, and reMarkable PDF generation for offline study.
Every content creation, export, and deployment operation runs through make.
Core Build Targets
| Target | Purpose |
|---|---|
|
Start Kroki server, run Antora build, stop Kroki |
|
Build site and serve on localhost:8000 |
|
Remove build artifacts ( |
|
Check dependencies (Node.js, Antora, Kroki, Python) |
Content Creation
| Target | Purpose |
|---|---|
|
Create today’s WRKLOG with section partial includes |
|
Generate meeting notes template with attendees and agenda sections |
Export Formats
| Target | Purpose |
|---|---|
|
Generate PDF with theme selection (dark, light, catppuccin) |
|
Export standalone HTML |
|
Export Word format |
|
Export e-book format |
|
Run all export formats |
|
Export current day’s worklog in all formats |
|
Export current month’s worklogs in all formats |
Deployment
Push triggers a two-step preflight before syncing to remote:
-
sync-nav— regenerate nav.adoc from filesystem -
update-index— rebuild monthly index pages -
git push— Cloudflare Pages auto-builds via the domus-docs playbook
make push
No manual intervention in domus-docs required. Push this spoke repo; the aggregator picks up the change.
Kroki Server
| Target | Purpose |
|---|---|
|
Start Kroki containers via domus-docs docker-compose (localhost:18000) |
|
Stop Kroki containers |
|
Check running state of Kroki services |
Kroki is required for rendering D2, Mermaid, PlantUML, and Graphviz diagrams during Antora build.
The domus-docs Makefile auto-stops Kroki after build completes (all: diagrams local kroki-stop).
Diagram Generation
| Target | Purpose |
|---|---|
|
Render all diagram formats |
|
Render D2 diagrams only |
|
Render Graphviz DOT diagrams only |
|
Render Mermaid diagrams only |
|
Render PlantUML diagrams only |
Source files live in examples/diagrams/.
Rendered output writes to images/diagrams/.
reMarkable PDF Tools
Python scripts in scripts/remarkable/ generate formatted PDFs for offline study on reMarkable tablet.
| Target | Purpose |
|---|---|
|
Generate vocabulary, grammar, and dashboard PDFs |
|
Generate current worklog PDF |
|
Generate objectives tracker PDF |
|
Generate regex drill sheets |
|
Generate certification study material PDFs |
|
Generate ideas backlog PDF |
|
Generate AsciiDoc reference PDF |
|
Generate mastery tracker PDF |
|
Generate all reMarkable PDFs |
|
Upload generated PDFs to reMarkable via USB/WiFi |
Maintenance Scripts
Ten scripts in scripts/ handle navigation, indexing, auditing, and content migration:
| Script | Purpose |
|---|---|
|
Regenerate nav.adoc from filesystem structure |
|
Regenerate worklog-specific nav entries |
|
Update carryover day counts across worklogs |
|
Rebuild monthly index pages from worklog entries |
|
Validate worklog structure and completeness |
|
Migrate Don Quijote chapter files to standardized format |
|
Three scripts for MDN content cleanup and normalization |