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

Remove duplicated documentation in component README files #1099

Open
anandamaryon1 opened this issue Jan 13, 2025 · 2 comments
Open

Remove duplicated documentation in component README files #1099

anandamaryon1 opened this issue Jan 13, 2025 · 2 comments
Labels
documentation User requests new documentation or improvements to existing documentation

Comments

@anandamaryon1
Copy link
Collaborator

What is the issue?

Each component includes a README file which includes example markup and the Nunjucks macros.

These are duplicated on the service manual design system pages for each component. This creates a maintenance burden and increases the risk of misalignment of the docs.

Suggestion

Remove the example markup and replace with a link to the component documentation within the service manual.

@anandamaryon1 anandamaryon1 added the documentation User requests new documentation or improvements to existing documentation label Jan 13, 2025
@edwardhorsford
Copy link
Contributor

They also both document in slightly different ways, so you can't just copy and paste I think. Agree this is annoying!

@frankieroberto
Copy link
Contributor

I think this would be relatively quick and easy to do – we’d just replace each README with a generic template like this one, which only differs by where it links to: https://github.com/alphagov/govuk-frontend/blob/main/packages/govuk-frontend/src/govuk/components/breadcrumbs/README.md

However might be worth thinking about best timing for this, as it’ll cause some conflicts with any work in progress? ie do we want to do it for the next breaking change release or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation User requests new documentation or improvements to existing documentation
Projects
Development

No branches or pull requests

3 participants