Add Markdown and PDF export formats#5
Open
johnzastrow wants to merge 2 commits into
Open
Conversation
Adds .md and .pdf as export options alongside the existing .csv/.json. Both are human-readable, export-only outputs (import still round-trips csv/json only). PDF is rendered via QTextDocument + QPrinter and Markdown is generated as plain text, so no new dependencies are needed. - UI: add .md/.pdf to the format combo box - export_plugins(): new .md/.pdf branches - add build_report_rows()/build_markdown()/build_html() helpers - set_filter(): cover *.md and *.pdf - metadata: bump to 0.3.0 + changelog Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The JSON export dumps each plugin's full metadata dict, but Markdown and PDF only emitted a fixed 5-column subset. They now render every field the plugin manager exposes per plugin (one Field/Value table per plugin), matching the JSON export's completeness. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 Markdown (
.md) and PDF (.pdf) as export formats alongside the existing.csv/.json..csv/.json(it relies on the structured per-pluginid); other types are already rejected gracefully by the existing "Unsupported file type" handling..jsonexport, not a fixed subset.QTextDocument+QPrinter(already bundled with QGIS), Markdown is plain text.Changes
plugin_exporter_dialog_base.ui: add.md/.pdfto the format combo boxplugin_exporter.py: new.md/.pdfbranches inexport_plugins();build_report_data()/build_markdown()/build_html()helpers;set_filter()covers*.md/*.pdf; scoped Qt6 enums used to match the existing stylemetadata.txt: version bump to 0.3.0 + changelog entryTesting
Verified headless on QGIS 4.0.1-Norrköping / Qt 6.11.0 (Windows): dialog loads, the format combo lists all four options, a full 17-field sample plugin renders with every field present in both Markdown and HTML, and the PDF code path writes a valid
%PDF-file.🤖 Generated with Claude Code