feat: pluggable wiki export/share system (zip + PDF)#54
Merged
Conversation
3784049 to
e9d6c92
Compare
Add a pluggable export system that lets users share wiki pages as self-contained archives. The system follows wikilinks (BFS traversal) from a starting page to collect pages with no broken links. Backend: - Sharer interface and registry (internal/share/share.go) - Zip exporter with include_assets and flatten settings - PDF exporter via chromedp + goldmark (registers only if browser found) - BFS wikilink traversal in wiki.ExportPages (depth: -1/0/N) - HTTP endpoints: GET /api/export, GET /api/export/formats - MCP tool: export_pages WebUI: - Export button in page header (ShareIcon) - ExportPanel with depth picker and format selection - ShareSettings in Settings panel (generic per-plugin schema renderer) DevContainer: - Symlink Playwright Chromium to /usr/local/bin for PDF support - Fix git safe.directory for VCS stamping in builds Docs: - README updated with Export & Share section and screenshots - Playwright screenshot script (tools/screenshots.mjs) - 8 feature screenshots in docs/screenshots/
e9d6c92 to
4241b67
Compare
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.
Summary
Adds a pluggable export system that lets users share wiki pages as self-contained archives. The system follows wikilinks (BFS traversal) from a starting page to collect pages with no broken links.
Features
Export depth control
01N-1Pluggable format system
$PATHBackend
Sharerinterface and registry (internal/share/share.go)include_assetsandflattensettingswiki.ExportPages(depth: -1/0/N)GET /api/export,GET /api/export/formatsexport_pagesWebUI
DevContainer
/usr/local/binfor PDF supportsafe.directoryfor VCS stamping in buildsDocs
docs/screenshots/)tools/screenshots.mjs)Screenshots