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

docs(generation): fix docs generation issue #29

Merged
merged 2 commits into from
Jan 9, 2025
Merged

docs(generation): fix docs generation issue #29

merged 2 commits into from
Jan 9, 2025

Conversation

hiyaryan
Copy link
Member

@hiyaryan hiyaryan commented Jan 9, 2025

This PR fixes the docs generation issue that was generating documentation for only one file. Documentation can now be generated for all files with /docs matching the file structure of /src. This is done with the following changes,

  • Update typedoc.json.
    • Update entryPoint to src.
    • Use expand entryPointStrategy to convert entry points into documentation modules.
  • Update generate-docs.sh script to remove auto-generated README.md files at root of every generated module.
    • Ignore docusaurus broken-markdown-link warning due to missing README.
  • Delete custom-output plugin.
    • Plugin no longer needed with new generation strategy.
    • Use default naming to match docs file structure with src.

Documentation has been created for the entire project. Note that most of it is incomplete. To see what documentation should look like when complete, see /hooks.

- Update typedoc.json.
  - Update `entryPoint` to `src`.
  - Use `expand` `entryPointStrategy` to convert entry points into documentation modules.
- Update generate-docs.sh script to remove auto-generated README.md files at root of every generated module.
  - Ignore docusaurus broken-markdown-link warning due to missing README.
- Delete custom-output plugin.
  - Plugin no longer needed with new generation strategy.
  - Use default naming to match docs file structure with src.
@hiyaryan hiyaryan added the documentation Improvements or additions to documentation label Jan 9, 2025
@hiyaryan hiyaryan requested a review from ishaan000 January 9, 2025 00:12
@hiyaryan hiyaryan self-assigned this Jan 9, 2025
- Update `onBrokenLinks` to `ignore`.
  - Prevent docusaurus warnings on build.
Copy link
Collaborator

@ishaan000 ishaan000 left a comment

Choose a reason for hiding this comment

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

Looks amazing! Good job 👍

@hiyaryan hiyaryan merged commit 20c9c14 into main Jan 9, 2025
1 check passed
@hiyaryan hiyaryan deleted the docs branch January 9, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants