alphagov / govuk-design-system

One place for service teams to find styles, components and patterns for designing government services.
https://www.gov.uk/design-system
MIT License
512 stars 232 forks source link

Add check-external-links command #4235

Open owenatgov opened 1 month ago

owenatgov commented 1 month ago

Change

Adds a check-external-links npm script as an offshoot of check-links, creates a manual workflow for it and attempts to fix some initially reported broken links.

This is a reimplementation of https://github.com/alphagov/govuk-design-system/pull/3174 as a separate command. It's inadvisable to include this as a default part of our testing suite because:

However a separate comamnd we can run mean we have this tool that we can interpret whenever we want.

An early draft of this PR included the script in our default test suite in order to capture our current broken links. See the original test output of check-external-links here.

The check additionally flagged broken links in our component docs which I've actioned in https://github.com/alphagov/govuk-frontend/pull/5428

Controversial content updates

A few of the content changes I've chosen to make probably need further discussion. I'll note the tricky ones or lingering problems here:

netlify[bot] commented 1 month ago

You can preview this change here:

Name Link
Latest commit a66ac71f6dfde7989b5c6926ab285a6b165852bc
Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/6718b51820300f0008242386
Deploy Preview https://deploy-preview-4235--govuk-design-system-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 1 month ago

You can preview this change here:

Name Link
Latest commit d346675c34c48f08d63d012e28210dd689d778be
Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/673da6f567da480009f77bf9
Deploy Preview https://deploy-preview-4235--govuk-design-system-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.