Kamil::Generator::SiteEmitter
[FUNC-006] [TECH-006] Clean URL Static Site and Feed Emitter Compiles indexed content documents and static assets into a production-ready static HTML directory structure with clean URL hierarchy.
Constructors
Standard configurable constructor with default dependencies.
Alternative constructor supporting dependency injection order.
Instance methods
Standard build entry point returning total emitted page count.
Compiles all eligible published documents and copies static assets. Returns EmitStats with emitted page count and static asset count.
Generates standard Atom feed.xml content from a list of published documents.
Generates standard sitemap.xml content from a list of published documents.
Resolves the clean URL disk destination path for a Document entity.
Resolves the clean URL disk destination path for a given source relative path. Rules:
- Root index (index.md, index.html) -> output_dir/index.html
- Section index (posts/index.md) -> output_dir/posts/index.html
- Standard document (about.md) -> output_dir/about/index.html
- Nested document (posts/hello.md) -> output_dir/posts/hello/index.html
- Deep document (docs/api/v1/auth.md) -> output_dir/docs/api/v1/auth/index.html
Removes compiled HTML artifact in output directory corresponding to a deleted content source file.
Removes a static asset from output directory corresponding to a deleted static file.