alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.16k stars 319 forks source link

Automatically generate API reference in Frontend docs #5227

Open romaricpascal opened 1 month ago

romaricpascal commented 1 month ago

What

[!WARNING] This needs breaking down a little more

Based on the spike in #5157, implement the automatic generation of an API reference in the Frontend docs.

Why

So we don't have to manually maintain the API reference, which can be generated from our JSDoc annotations

Who needs to work on this

Developers, Technical writers/Content designer (for the rendering in JSDoc)

Who needs to review this

Developers

Done when

romaricpascal commented 2 weeks ago

Due to the amount of linking between pieces of documentation in the JavaScript API reference (eg. the type of a function param linking to another class in the docs), we'll likely need a whole cycle of work to figure how to in so we'll leave it out of #5205.