-
-
Notifications
You must be signed in to change notification settings - Fork 723
Add script to generate plugin documentation from JSDoc comments #3635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
…xamples Co-authored-by: jodeleeuw <[email protected]>
…n, and escaping Co-authored-by: jodeleeuw <[email protected]>
Co-authored-by: jodeleeuw <[email protected]>
| ${generateInstallSection(pluginName, version || "latest")} | ||
| `; | ||
|
|
||
| // Add examples section if examples exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's enhance how examples are handled.
…o HTML files Co-authored-by: jodeleeuw <[email protected]>
npm run generate-plugin-docs)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.