How getpelican/pelican works
Pelican is a Python static-site generator. A site author supplies content and settings; the CLI initializes Pelican, which discovers and parses content, builds article/page and other generator outputs, and writes a static site and feeds. The product also supports themes, plugins, caching, content import, and preview serving. The graph emphasizes those documented capabilities; some connections are documented or index-supported rather than visible in full source excerpts, so uncertain links are dashed.
Main entry points: __init__.py CLI and orchestration · generators.py Site generators · writers.py HTML and feeds · server.py Preview server
Components 17
Build workflow
- CLI and orchestration
pelican/__init__.py - Settings
pelican/settings.py - Source discovery
pelican/generators.py - Content readers
pelican/readers.py - Content models
pelican/contents.py - Site generators
pelican/generators.py - Build cache
pelican/cache.py - HTML and feeds
pelican/writers.py
Themes and plugins
- Theme templates
pelican/themes - Plugin loading
pelican/plugins/_utils.py - Plugin signals
pelican/plugins/signals.py
Tools and preview
- Content importer
pelican/tools/pelican_import.py - Project setup
pelican/tools/pelican_quickstart.py - Preview server
pelican/server.py
Other components
- Site author
- Static site output
- Site visitor
Connections 21
- Site author → CLI and orchestration: runs build
README.rst - CLI and orchestration → Settings: loads settings
pelican/__init__.py - CLI and orchestration → Site generators: orchestrates
pelican/__init__.py - Site generators → Source discovery: discovers sources
pelican/generators.py - Site generators → Content readers: parses sources
pelican/generators.py - Content readers → Content models: creates content
pelican/readers.py - Site generators → Content models: organizes content
pelican/generators.py - Site generators → Build cache: uses cache
pelican/generators.py - Site generators → HTML and feeds: writes outputs
pelican/generators.py - HTML and feeds → Static site output: writes site
pelican/writers.py - HTML and feeds → Static site output: generates feeds
pelican/writers.py - Settings → Theme templates: selects theme
pelican/settings.py - CLI and orchestration → Plugin loading: loads plugins
pelican/__init__.py - Plugin loading → Plugin signals: uses signals
- CLI and orchestration → Plugin signals: dispatches lifecycle
pelican/__init__.py - Site author → Content importer: imports legacy content
README.rst - Content importer → Static site output: converts content
README.rst - Site author → Project setup: creates project
pelican/tools/pelican_quickstart.py - CLI and orchestration → Preview server: starts preview
pelican/__init__.py - Site visitor → Preview server: requests pages
- Preview server → Static site output: serves files
pelican/server.py