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

Automated API Reference Generation and Index File Creation #14

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

aelmanaa
Copy link
Contributor

@aelmanaa aelmanaa commented Jul 15, 2024

This PR introduces a fully automated process for generating API reference documentation for both JavaScript and Solidity files, with a focus on compatibility with MDX formatting. The key changes include:

  1. Compilation of Hardhat and Forge Projects:

    • Ensures both Hardhat and Forge projects are compiled before generating documentation.
  2. API Documentation Generation:

    • Uses Hardhat's solidity-docgen to generate Markdown (.mdx) documentation files for the Solidity contracts.
    • Uses jsdoc-to-markdown to generate Markdown (.mdx) documentation files for the JavaScript files.
  3. Automated Index File Creation:

    • Introduces a TypeScript script (generate-index-files.ts) that creates index.mdx files with appropriate headers and bullet points for each directory and its contents.
  4. Prettier Formatting:

    • Ensures all generated documentation files are formatted consistently using Prettier.

@aelmanaa aelmanaa requested a review from andrejrakic July 15, 2024 13:48
@aelmanaa aelmanaa marked this pull request as draft July 15, 2024 13:51
1alexbc1

This comment was marked as off-topic.

@andrejrakic andrejrakic marked this pull request as ready for review July 29, 2024 16:13
@aelmanaa aelmanaa merged commit d97d6e9 into main Jul 29, 2024
@andrejrakic andrejrakic deleted the automatic-apiref branch July 29, 2024 16:17
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.

3 participants