Skip to content

Implement automated Custom Block documentation pipeline - #19

Open
Sarvesh-Mishra1981 wants to merge 13 commits into
JdeRobot:mainfrom
Sarvesh-Mishra1981:feature/automate-block-docs
Open

Implement automated Custom Block documentation pipeline#19
Sarvesh-Mishra1981 wants to merge 13 commits into
JdeRobot:mainfrom
Sarvesh-Mishra1981:feature/automate-block-docs

Conversation

@Sarvesh-Mishra1981

Copy link
Copy Markdown
Collaborator

Context

With the new decentralized Custom Block Marketplace, the static block documentation has been moved to this resources repository. This PR automates the documentation process so that whenever a new community block is approved and merged, its documentation is updated automatically without any manual work from maintainers.

What Changed

The blockDocs/ folder has been moved here and the README.md has been updated with a simple guide for contributors to create, export, and submit custom blocks. A new update_docs.py script uses the block's JSON file to automatically generate and update its documentation in Blocks.html, including inputs, outputs, parameters, and the existing View Source section.

The process is also integrated into the existing GitHub Actions workflow. After changes are pushed to main, the workflow updates the registry, generates the documentation, and commits both changes automatically.

Impact

This makes the documentation process fully automated and keeps the marketplace documentation in sync with the available community blocks. Maintainers only need to review and merge the block files, the rest is handled by the workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants