feat: implement PDF generation and update Dockerfile

- Add PDF generation using go-pdf/fpdf (Pure Go library)
- Walk markdown AST and render directly to PDF
- Update Dockerfile to include themes directory and config
- Fix ENTRYPOINT format for serve mode

Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
2026-03-05 02:33:37 +01:00
parent e3c6c25624
commit 4779e63132
6 changed files with 181 additions and 7 deletions

View File

@@ -82,6 +82,11 @@ func generateOutput() error {
return fmt.Errorf("failed to write %s: %w", outputFile, err)
}
fmt.Printf(" -> Written: %s\n", outputFile)
// Generate PDF
if err := generatePDF(file.Content, file.Name); err != nil {
fmt.Printf(" -> PDF generation failed: %s\n", err)
}
}
return nil