Skip to content

Add PDF export to the HaLOS docs - #33

Merged
mairas merged 1 commit into
mainfrom
feat/pdf-export
Jul 27, 2026
Merged

Add PDF export to the HaLOS docs#33
mairas merged 1 commit into
mainfrom
feat/pdf-export

Conversation

@mairas

@mairas mairas commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Why

Readers want an offline/printable copy of the guide. This adds a one-click path from any page to a PDF.

How

Uses mkdocs-print-site-plugin: a printer icon on every page (top-right, beside the edit pencil) links to a combined /print_page/ that aggregates the whole guide with a cover page and an auto-numbered TOC. A banner on that page instructs the reader to export via File > Print > Save as PDF — the browser renders the PDF, so diagrams and CSS come out exactly as on screen.

This approach adds no CI dependenciesuv sync picks up the new package and the existing strict build is unchanged. Same change as the HALPI2 docs (hatlabs/halpi2#24).

Verified

  • uv run mkdocs build --strict → exit 0, no new warnings
  • Printer button renders on every page without colliding with the edit button
  • Print page produces cover + banner + full aggregated guide

🤖 Generated with Claude Code

Add mkdocs-print-site-plugin to generate a combined print page with a
cover page and export banner, plus a printer icon on every page linking
to it. Readers export the guide to PDF via the browser's print dialog.

No new CI dependencies; the strict build is unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mairas
mairas merged commit 712c9ad into main Jul 27, 2026
1 check passed
@mairas
mairas deleted the feat/pdf-export branch July 27, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant