How chompy78/pact_players works
1. What this repo is
- This is a Quartz-based static site for the *PACT Campaign 2026* reference. The primary product is a browsable campaign knowledge base, not an app with a runtime backend.
- The site’s editorial content lives in content/, while the Quartz framework code that builds and renders the site lives in quartz/.
2. Main content boundary
- content/ is the authored source of truth: session logs, NPCs, locations, factions, maps, handouts, and rules reference.
- Pages are mostly Markdown with index.md files controlling section landing pages and nested folders for hierarchy.
- This content layer is separate from the framework layer, which means the site can be updated primarily by editing Markdown rather than application code.
3. Framework and documentation boundary
- docs/ is the Quartz project’s own documentation and feature reference, including plugin docs and user-facing setup guides.
- The presence of both content/ and docs/ indicates a repository that combines:
- a live campaign site
- the underlying site generator/framework documentation
4. Build entrypoints and configuration
- quartz.ts, quartz/build.ts, quartz/worker.ts, and the bootstrap files are the main runtime/build entrypoints.
- quartz.config.yaml and quartz.config.default.yaml define site behavior, theme, plugins, and content processing options.
- quartz.lock.json and package-lock.json indicate pinned dependency and plugin resolution for reproducible builds.
5. Content processing pipeline
- Quartz uses a staged pipeline under quartz/processors/:
- parse content into an internal file representation
- filter which files/pages should be included
- emit rendered output and static artifacts
- The repo uses a file/vfile-style abstraction (quartz/plugins/vfile.ts) to move content through transformers and emitters.
6. Plugin-based architecture
- The site is assembled from modular plugins in quartz/plugins/.
- Major plugin categories:
- loaders: ingest content, config, Git data, frames, components
- transformers: enrich or rewrite page data
- filters: control visibility and inclusion
- emitters: produce final assets/pages
- page types: dispatch specific layouts like 404 pages or specialized content types
- This plugin system is the main architectural extension point for the site.
7. Rendering and UI layer
- quartz/components/ contains the page layout system, reusable UI components, and page frames.
- Key layout pieces include body, header, head metadata, navigation, page lists, and responsive variants.
- quartz/components/pages/ and quartz/components/frames/ indicate the site supports multiple page shells rather than one fixed template.
8. Client-side behavior
- quartz/components/scripts/ provides browser-side behavior such as:
- SPA-style navigation
- popover previews
- search-related interactions
- The site is not purely static HTML; it ships small client scripts for interactive reading/navigation features.
9. Cross-cutting features
- quartz/plugins and docs/features/ show the site supports knowledge-base features typical of Quartz:
- backlinks, breadcrumbs, graph view
- wikilinks and Obsidian-style compatibility
- folder/tag listings, search, TOC, dark mode
- citations, LaTeX, Mermaid, and other content enrichments
- quartz/i18n/ shows localization support, so page chrome and feature labels can be translated.
10. Styling and static assets
- Global and feature-specific styles live in quartz/styles/ and component SCSS files.
- Static assets, including Giscus theme CSS, live under quartz/static/.
- The visual layer is bundled with the generated site rather than served from a separate frontend app.
11. Command-line and automation surface
- quartz/cli/ provides commands for build, create, sync, restore, plugin management, TUI interaction, and upgrades.
- This suggests a workflow where content authors can manage the site from the command line, not only through manual file editing.
12. Deployment and infrastructure
- GitHub Actions workflows cover CI, preview builds, Pages deployment, versioned deployment, and Docker image build/push.
- Dockerfile indicates the site can also be packaged as a container for self-hosting or CI-based publishing.
- Net effect: source Markdown and config are turned into a deployable static site, then published via GitHub Pages or container-based workflows.
13. Testing and quality gates
- There are tests in components, CLI helpers, and utility modules, indicating the repo validates both build logic and interactive behavior.
- Tooling files like .prettierrc, .node-version, and TypeScript config show the project is built and maintained as a typed Node/TypeScript codebase.
14. Architectural summary for a diagram
- The central flow is: Markdown content + Quartz config → Quartz parsing/plugin pipeline → rendered static site assets → deployment.
- The strongest boundary is between authorable content (content/) and framework/runtime logic (quartz/), with docs/ serving as the framework’s own reference and github/workflows/Dockerfile handling delivery.
Main entry points: plugins Plugin system · components UI components · quartz.ts Build entrypoints · processors Content pipeline
Components 20
Authoring content
Campaign notes and docs edited as Markdown hierarchy
- Campaign notes · PACT Campaign 2026 authored pages: sessions, NPCs, locations, factions, maps, and handouts
content - Framework docs · Quartz feature, plugin, CLI, and setup reference
docs
Quartz framework
Site generator, rendering, plugins, and shared runtime code
- Site config · Quartz site behavior, theme, plugins, and processing options
quartz.config.yaml - Default config · Fallback Quartz configuration shipped with the repo
quartz.config.default.yaml - Content pipeline · Staged processing of files into rendered outputs
quartz/processors - Plugin system · Modular loaders, transformers, filters, emitters, and page types
quartz/plugins - Loaders · Ingest content, config, git data, frames, and components
quartz/plugins/loader - Transformers · Rewrite and enrich page and file data
quartz/plugins/transformers - Filters · Control which files and pages are included
quartz/plugins/filters - Emitters · Produce static pages and other build artifacts
quartz/plugins/emitters - Page types · Match specialized layouts such as 404 and other page classes
quartz/plugins/pageTypes - UI components · Shared page shells, chrome, and reusable rendering components
quartz/components - Client scripts · SPA navigation, popovers, and search interactions
quartz/components/scripts - Styling · Global styles, component styles, and syntax/theme variables
quartz/styles - Localization · Localized UI labels and feature text
quartz/i18n - Utilities · Path, file, theme, logging, and rendering helpers used across the framework
quartz/util
Build and deploy
Entry points, packaging, CI, and publishing
- Build entrypoints · Main bootstrap and build/worker entry files
quartz.ts - CLI tools · Build, create, sync, restore, plugin, TUI, and upgrade commands
quartz/cli - GitHub Actions · Preview, CI, Pages deployment, versioned deployment, and Docker publish workflows
.github/workflows - Docker image · Container packaging for self-hosting or CI publishing
Dockerfile
Connections 20
- Campaign notes → Content pipeline: source pages · Markdown content is parsed into the build pipeline
- Framework docs → Campaign notes: authoring guide · Documentation explains the content model and site features
- Site config → Build entrypoints: runtime settings · Configuration is loaded by the build/runtime bootstrap
- Default config → Site config: fallbacks · Default settings are overridden by repo config
- Build entrypoints → Content pipeline: drives build · Entry points orchestrate parse, filter, and emit stages
- Content pipeline → Plugin system: invokes plugins · Processing stages are extended by the plugin system
- Plugin system → Loaders: load stage · Plugins ingest external and repository data
- Plugin system → Transformers: transform stage · Plugins enrich or rewrite content models
- Plugin system → Filters: filter stage · Plugins decide inclusion and visibility
- Plugin system → Emitters: emit stage · Plugins produce final static assets
- Plugin system → Page types: page dispatch · Plugins select specialized page layouts
- Content pipeline → UI components: render pages · Processed page data is rendered through UI shells
- UI components → Client scripts: interactive chrome · Layouts include client-side navigation and previews
- UI components → Styling: visual theme · Component and global styles shape the generated site
- UI components → Localization: localized labels · UI text and feature labels are translated through locales
- UI components → Utilities: shared helpers · Rendering and layout code uses common utilities
- CLI tools → Build entrypoints: commands · CLI commands wrap build and site maintenance entrypoints
- GitHub Actions → Build entrypoints: ci build · GitHub Actions run the site build and deployment flow
- Docker image → Build entrypoints: container run · Container image packages the same build/runtime path
- Emitters → GitHub Actions: publish artifacts · Static output is handed to deployment workflows