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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user