Add documentation export to single HTML and PDF files#7081
Conversation
|
@copilot |
I've updated the export scripts to support the Just-the-docs theme migration (commit fe3f10c). Changes made:
Tested compatibility: The navigation bar is properly excluded from exports in all structures - the parser specifically targets main content areas and ignores nav/sidebar elements. |
|
@copilot |
fe3f10c to
f81b8a7
Compare
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bndtools/bnd/sessions/f984c310-80ca-4eb0-ab37-9e7d2186d4ed Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
f81b8a7 to
704d465
Compare
|
https://gh.io/copilot-coding-agent-docs |
Enables exporting Bnd documentation to offline formats (single HTML or PDF) for archival, distribution, and offline access across different versions.
Implementation
Export scripts:
export-single-html.sh- Combines all Jekyll-generated pages into single HTML with embedded TOC and print-friendly CSSexport-pdf.sh- Converts to PDF using auto-detected tools (wkhtmltopdf > weasyprint > chromium), falls back to HTML with manual conversion instructionsexport-release.sh- Exports fromreleases/directory without requiring Jekyll rebuildContent extraction:
<main id="main-content"><main data-pagefind-body><div class="notes-margin">Documentation:
EXPORT_README.md- User guide with installation, usage, troubleshootingUSAGE_EXAMPLES.md- 10 practical examples covering all workflowsIMPLEMENTATION_SUMMARY.md- Technical detailsCompatibility:
Usage
Tested with 7.0.0 release: 443 pages → 1.7MB HTML / 995KB PDF in <30s.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.