Add documentation export to single HTML and PDF files#7081
Draft
Add documentation export to single HTML and PDF files#7081
Conversation
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>
Copilot
AI
changed the title
[WIP] Add options for creating HTML or PDF from docs
Add documentation export to single HTML and PDF files
Feb 3, 2026
Contributor
|
@copilot |
…f-generation-options 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>
Contributor
Author
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.