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

Automatically generate JavaScript API Reference from JSDoc #216

Open
1 task
36degrees opened this issue Oct 26, 2022 · 4 comments
Open
1 task

Automatically generate JavaScript API Reference from JSDoc #216

36degrees opened this issue Oct 26, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation Effort: days Used by the team when triaging

Comments

@36degrees
Copy link
Contributor

What

Once we're happy with the format and location, we should work out how to automatically generate the JavaScript API Reference from JSDoc at build time, rather than hand-writing it and manually keeping it in sync with the JSDoc in the code.

Why

Automatically generating the JavaScript API Reference from the JSDoc avoids duplication of effort and ensures that the API reference will always be in sync with the code in the most recently published release.

Who needs to know about this

Developers, tech writer

Done when

  • The JavasScript API Reference is automatically generated from the inline JSDoc in our components
@36degrees 36degrees added documentation Improvements or additions to documentation Effort: days Used by the team when triaging labels Oct 26, 2022
@36degrees
Copy link
Contributor Author

https://github.com/jsdoc2md/jsdoc-to-markdown looks like it might be useful for this

@stevenjmesser
Copy link
Contributor

@colinrotherham Did we add JSDoc to Frontend meaning this can now be closed?

@colinrotherham
Copy link
Contributor

@stevenjmesser It's half done! This issue represents step 2

We're currently using TypeDoc to render our JSDoc documentation
https://govuk-frontend-review.herokuapp.com/docs/javascript/

But similar to the Sass API reference we may want to generate a branded public facing JavaScript API reference too

@36degrees
Copy link
Contributor Author

API Extractor looks like it might be useful for this.

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 Effort: days Used by the team when triaging
Projects
None yet
Development

No branches or pull requests

3 participants