Refactor content style guide updates page#1722
Conversation
c221ba5 to
ff2a731
Compare
|
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-pr-1722.apps.live.cloud-platform.service.justice.gov.uk Username: |
ff2a731 to
048b36c
Compare
|
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-pr-1722.apps.live.cloud-platform.service.justice.gov.uk Username: |
048b36c to
2ed548a
Compare
|
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-pr-1722.apps.live.cloud-platform.service.justice.gov.uk Username: |
|
🎉 This PR is included in version 5.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The style guide updates page required authoring in html - ading all content manually into a
<table>and ensuring all govuk and sortable table classes were correct.This was hard to do and error-prone, and turned what should be simple content additions into a complex dev-focused task.
This PR extracts all the markup into a layout file, and then makes each style guide update entry into its own
.mdfile which are then collated into an eleventy collection to be output on the style guide updates page within the sortable table layout.Adding an entry to the style guide is now a matter of creating a new file
YYYY-MM-DD-Filename.mdwithin the 'docs/style-guide-updates` directory with the format: