Skip to content

feat(create-plugin): add panel-docs codemod - #2834

Draft
sunker wants to merge 7 commits into
mainfrom
eriksundell/panel-docs-codemod
Draft

feat(create-plugin): add panel-docs codemod#2834
sunker wants to merge 7 commits into
mainfrom
eriksundell/panel-docs-codemod

Conversation

@sunker

@sunker sunker commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Adds create-plugin add panel-docs, a codemod that scaffolds stub multi-page documentation for panel plugins (overview, data-formats, options, examples, troubleshooting, README), each page carrying section-brief comments describing what to fill in. Also wires the plugin up for docs publishing - docsPath in plugin.json, docs:serve/docs:validate npm scripts, a validate-docs.yml workflow and a build-plugin version bump.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

Stacked on eriksundell/plugin-docs-cli-meta-files (skip repo-meta files during docs validation) - that PR must merge first since docs:validate depends on it. This is a scoped-down split of a larger draft; a datasource-docs codemod and an opt-in AI-authoring layer will follow as separate PRs.

@grafana-catalog-project-bot grafana-catalog-project-bot Bot moved this from 📬 Triage to 🧑‍💻 In development in Grafana Catalog Team Aug 19, 2026
Base automatically changed from eriksundell/plugin-docs-cli-meta-files to main August 20, 2026 10:09
@sunker
sunker force-pushed the eriksundell/panel-docs-codemod branch from b985289 to bdd44bc Compare August 20, 2026 10:31
@sunker sunker added the preview Opts the PR into pkg.pr.new preview publishing label Aug 20, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@grafana/create-plugin

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/create-plugin@fb1f171 -D

@grafana/eslint-config

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/eslint-config@fb1f171 -D

@grafana/eslint-plugin-plugins

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/eslint-plugin-plugins@fb1f171 -D

@grafana/plugin-docs-cli

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/plugin-docs-cli@fb1f171 -D

@grafana/plugin-docs-parser

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/plugin-docs-parser@fb1f171 -D

@grafana/plugin-e2e

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/plugin-e2e@fb1f171 -D

@grafana/plugin-meta-extractor

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/plugin-meta-extractor@fb1f171 -D

@grafana/plugin-types-bundler

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/plugin-types-bundler@fb1f171 -D

@grafana/react-detect

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/react-detect@fb1f171 -D

@grafana/sign-plugin

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/sign-plugin@fb1f171 -D

@grafana/tsconfig

npm i https://pkg.pr.new/grafana/plugin-tools/@grafana/tsconfig@fb1f171 -D

commit: fb1f171

sunker added 2 commits August 21, 2026 13:05
…odemod

0.2.1 is now published and includes the repo-meta-file exclusion and
inline-code-masking fixes that 0.2.0 predates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Opts the PR into pkg.pr.new preview publishing

Projects

Status: 🧑‍💻 In development

Development

Successfully merging this pull request may close these issues.

1 participant