development to main #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add rewrite_content_links() that converts relative .md links in rendered HTML to hero_books page URLs. Handles: - ./page.md and page.md → /book/{book}/page/{name} - ../dir/page.md → /book/{book}/page/{name} - Preserves #anchor fragments - Skips external URLs, absolute paths, and already-rewritten links Closes #29- Add generate_page_pdf() for single-page PDF generation - Move PDF cache from /tmp/ to books_dir/.pdf_cache/ (survives reboots) - Add content-hash-based permanent URLs: /pdf/{hash} - Store markdown snapshots in KVS for permanent regeneration - Add page PDF routes: /book/{name}/page/{page}/pdf[/view] - Add 'Book PDF' and 'Page PDF' buttons to page view template - Fix Chrome sandbox for root (TFGrid VMs) - Add Chrome install to deploy/single-vm setup script- Nav bar: replace flat Import link with Tools dropdown (Import Collection + Markdown to PDF) - Book page: single-column table layout with 4 actions per page (Open, View PDF, Download, Versions) - Library page: single-column table layout with 4 actions per book (Open, View PDF, Download, Versions) - Version tracking: append_pdf_version() stores {hash, date} entries in KVS, API at /api/pdf-versions/{book}/{page} - Versions dropdown: lazy-loads from API, shows hash permalinks with copy button, always fetches fresh data - Markdown-to-PDF converter: /pdf/convert page fetches external markdown URL, generates PDF with permanent /pdf/{hash} link - Ensure herobooks_pdf KVS namespace is created at startup and in each KVS function (self-healing) - Version tracking runs on every PDF serve (not just generation) to bootstrap existing cached PDFs