How venthur/blag works
blag is a Python static-site generator for Markdown-based blogs. A user can bootstrap a site with quickstart, edit content and configuration, then run the build command to convert Markdown, render pages, and generate blog indexes and an Atom feed in an output directory. Its integrated development server watches content, templates, and static assets, rebuilds on changes, and serves the output. The excerpts show the build and development-server relationships; the README documents syntax highlighting and theming, but not their full implementation wiring.
Main entry points: blag.py Page rendering · quickstart.py Quickstart setup · devserver.py Development server · content Markdown content
Components 16
Site authoring
- Quickstart setup
blag/quickstart.py - Markdown content
blag/content - Site configuration
Site generation
- CLI commands
blag/blag.py - Markdown conversion
blag/markdown.py - Page rendering
blag/blag.py - Blog indexes and tags
blag/blag.py - Atom feed generation
blag/blag.py - Generated site
Themes and assets
- Jinja templates
blag/templates - Static assets
blag/static - Syntax highlighting
Development server
- Development server
blag/devserver.py - Change monitoring
blag/devserver.py
Other components
- Site author
- Browser
Connections 23
- Site author → Quickstart setup: initializes site
README.md - Quickstart setup → Site configuration: writes config
blag/quickstart.py - Quickstart setup → Jinja templates: copies theme
blag/quickstart.py - Quickstart setup → Markdown content: copies examples
blag/quickstart.py - Site author → Markdown content: writes Markdown
README.md - Site author → CLI commands: runs commands
README.md - CLI commands → Page rendering: builds site
blag/blag.py - Page rendering → Site configuration: reads settings
blag/blag.py - Page rendering → Markdown content: reads files
blag/blag.py - Page rendering → Markdown conversion: converts Markdown
blag/blag.py - Page rendering → Jinja templates: renders with
blag/blag.py - Page rendering → Generated site: writes pages
blag/blag.py - Page rendering → Static assets: copies assets
blag/blag.py - Page rendering → Blog indexes and tags: generates indexes
blag/blag.py - Blog indexes and tags → Generated site: writes indexes
blag/blag.py - Page rendering → Atom feed generation: generates feed
blag/blag.py - Atom feed generation → Generated site: writes Atom feed
blag/blag.py - Markdown conversion → Syntax highlighting: supports highlighting
README.md - CLI commands → Development server: starts server
blag/blag.py - Development server → Change monitoring: starts monitoring
blag/devserver.py - Change monitoring → Page rendering: triggers rebuild
blag/devserver.py - Development server → Generated site: serves files
blag/devserver.py - Browser → Development server: requests pages