feat(wiki): print view and export (PDF, ZIP, single-page HTML) #675
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Summary
Add wiki export and print capabilities — printable page view, PDF export, bulk ZIP download, and single-page HTML compilation. Similar to Wikipedia's "Download as PDF" and "Printable version" features.
Current State
Design
1. Print View
GET /:owner/:repo/wiki/:page?action=_print2. PDF Export (single page)
GET /:owner/:repo/wiki/:page?action=_pdfgo-wkhtmltopdf)3. Bulk Export (ZIP)
GET /:owner/:repo/wiki?action=_export&format=zipformat=html— renders all pages to static HTML with relative links preserved4. Single-Page HTML Compilation
GET /:owner/:repo/wiki?action=_export&format=html-singleFiles to Modify
routers/web/repo/wiki.gotemplates/repo/wiki/print.tmpltemplates/repo/wiki/view.tmplweb_src/css/@media print)Wikipedia Parity
Wikipedia offers "Printable version", "Download as PDF", and book creator for compiling multiple articles. Export capabilities make wiki content portable and useful beyond the web UI.