Skip to content
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

Api-Derives documentation generator #6099

Merged
merged 13 commits into from
Feb 21, 2025
Merged

Api-Derives documentation generator #6099

merged 13 commits into from
Feb 21, 2025

Conversation

valentinfernandez1
Copy link
Contributor

This PR introduces a custom code parser for metadataMd.ts, enabling the script to extract code comments from all api-derives modules. This allows us to systematically gather and document information about each available derive.

The extracted data is then rendered as Markdown, following the conventions used in other documentation files (e.g., constants, errors, transactions). This ensures that polkadot-js/docs remains up to date with the latest derives.

Note: This is a partial solution. I’ll submit a companion PR later to further expand the api-derives documentation, as it currently lacks a lot of information. Consequently, the generated documentation in this PR will be somewhat limited.

Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks amazing, conflicts just need to be resolved.

@TarikGul TarikGul merged commit 03fb086 into master Feb 21, 2025
4 checks passed
@TarikGul TarikGul deleted the docs/api-derive branch February 21, 2025 13:59
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Feb 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants