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

Improve Utility of Typedoc API Docs #829

Open
backlineint opened this issue Jan 21, 2025 · 0 comments
Open

Improve Utility of Typedoc API Docs #829

backlineint opened this issue Jan 21, 2025 · 0 comments
Labels
enhancement New feature or request triage A new issue that needs triage

Comments

@backlineint
Copy link
Collaborator

Package

next-drupal (NPM package)

Describe the feature request

We've updated the documentation site to generate API docs using Typedoc in order to reduce the maintenance effort for that section of the site (not to mention to force us to better document our code.) But we admittedly did lose some of the detail from the existing reference sections along the way.

Describe the solution you'd like

Ideally we'd port examples and other natural language content to the new system. Some of this should be possible with the @examples tag in typedoc. We may also find that some of the detail really isn't appropriate for the API docs, and should be moved to the main documentation.

Other things to consider:

  • Moving a link to the API docs to the top level header menu.
  • Determining if there is anything we should hide from the automatic API docs. Similarly, what should we do with deprecated things?
  • Can any supporting content, landing pages, or menu adjustments make this more useful?

Describe alternatives you've considered

My initial pass at this was integrating the docs into the system using typedoc-markdown. This integrates well with our bespoke docs site, but loses some documentation detail in the meantime. As you'll see from a PR in a little bit, I'm now experimenting with generating the standard HTML API reference - this is better in my opinion content wise, but a jarring transition from the main docs. I currently think this is the better trade-off, but am open to discussion.

Additional context

This change will still be a trade-off. Automatically generated API docs can't (and probably shouldn't be) the same as custom authored docs. But should be able to make this better - even if the effort continues beyond the 2.x stable release.

@backlineint backlineint added enhancement New feature or request triage A new issue that needs triage labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant