π Digital Gardens with Quartz v4 & GitHub Pages
NOTE
A Digital Garden is an interconnected network of technical knowledge, mental models, and architectural references. Unlike linear chronological blogs, a digital garden is explored through conceptual graph connections, bidirectional wikilinks, and topical hubs.
β‘ 1. What is Quartz v4?
Quartz v4 is a high-performance static site generator (SSG) powered by Node.js, Preact, TypeScript, and esbuild/lightningcss. It compiles Markdown vaults with YAML frontmatter, resolves Obsidian-style wikilinks ([[note]]), renders interactive D3 knowledge graphs, and outputs ultra-fast static HTML.
graph LR MD["π Markdown Vault (content/)<br/>- pt-br/<br/>- en/<br/>- assets/"] --> Quartz["β‘ Quartz v4 Engine<br/>Transformers β Emitters β Plugins"] Quartz --> HTML["π¦ Static Output (public/)<br/>HTML + CSS + JS + Graph"] HTML --> Pages["π GitHub Pages / CDN<br/>Global Edge Hosting"]
π 2. Mirrored Multilingual Architecture (PT-BR / EN-US)
To maintain a frictionless bilingual digital garden:
- Locale folders in
content/:content/pt-br/module/topic.mdcontent/en/module/topic.md
- Strict Slug Mirroring:
- File and folder names match 1:1 across languages.
- The
LanguageToggle.tsxcomponent instantly swaps the active locale between/pt-br/and/en/without broken links or 404s.
- Explorer Language Flattening:
- CSS rules in
custom.scsshide the root folder of inactive languages and un-indent active folders so topics appear cleanly as top-level sidebar items.
- CSS rules in
π 3. Local Development Commands
# Install dependencies
npm install
# Install Quartz community plugins
npx quartz plugin install
# Start local live-reload server (http://localhost:8080)
npm run serve
# Production static build
npm run build
# Typecheck TypeScript files
npm run checkπ Official Documentation & References
- π Git SCM Official Documentation β Official Pro Git book and command manual.
- π GitHub Docs β Official guides on GitHub Actions, PRs, Security, and REST/GraphQL APIs.
- π¦ Conventional Commits 1.0.0 Specification β Official specification.
- π‘οΈ SonarCloud Documentation & Snyk Docs β Official SAST & SCA security docs.
π Second Brain Links
- Configure automated publishing in GitHub Actions & CI/CD.
- Learn doc authoring standards in Documentation Authoring Skill.
- Graph network topology curation in Second Brain Graph Skill.