Add script to generate plugin documentation from JSDoc comments#3635
Add script to generate plugin documentation from JSDoc comments#3635
Conversation
|
…xamples Co-authored-by: jodeleeuw <595524+jodeleeuw@users.noreply.github.com>
…n, and escaping Co-authored-by: jodeleeuw <595524+jodeleeuw@users.noreply.github.com>
Co-authored-by: jodeleeuw <595524+jodeleeuw@users.noreply.github.com>
| ${generateInstallSection(pluginName, version || "latest")} | ||
| `; | ||
|
|
||
| // Add examples section if examples exist |
There was a problem hiding this comment.
I'd like to do more than this. Can we take files that are in /examples and convert them into the kinds of examples that are in the current documentation? This would allow us to not maintain two separate example sets.
There was a problem hiding this comment.
Enhanced example handling in commit 9e09ed9. The script now:
- Extracts individual trial configurations from
/examplesfiles - Generates interactive demo HTML files (using docs-demo-timeline.js wrapper)
- Creates markdown with
???+ exampleblocks containing Code/Demo tabs
Usage:
npm run generate-plugin-docs -- html-button-response --output docs/plugins --demos-output docs/demosThis eliminates maintaining two separate example sets - examples in /examples are automatically converted to the documentation format.
jodeleeuw
left a comment
There was a problem hiding this comment.
Let's enhance how examples are handled.
…o HTML files Co-authored-by: jodeleeuw <595524+jodeleeuw@users.noreply.github.com>
npm run generate-plugin-docs)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.