-
Notifications
You must be signed in to change notification settings - Fork 6
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
PoC to parse existing standards to json file with requirements. #388
PoC to parse existing standards to json file with requirements. #388
Conversation
…andards # Conflicts: # package-lock.json # package.json
…andards # Conflicts: # package-lock.json # package.json
docs/standards-requirements.md
Outdated
{% for standard in collections.getAllStandardsOrderedByID %} | ||
<h2 class="app-document-header__title govuk-heading-l"> | ||
<span class="govuk-caption-l">{{standard.data.id}}</span> | ||
<a href="{{ standard.url }}" class="govuk-link">{{ standard.data.title }}</a> | ||
</h2> | ||
<p class="govuk-hint">Last updated: {{ standard.data.date | postDate }}</p> | ||
|
||
{% for requirement in standard.templateContent | extractRequirements %} | ||
* [{{requirement.title}}]({{ standard.url }}{{requirement.id}}) | ||
{% endfor %} | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be formatted in a better way, to make it easier to be followed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of that awkwardness is because once the template has been processed it's then parsed as markdown, which cares about the whitespace. It's not getting much benefit from the markdown parsing so refactored to nunjucks/html to make it more readable
…essible when syntax highlighting is used.
… instead of govuk-red that has 1:4.51 ratio
…andards # Conflicts: # package.json
…pshot-of-standards # Conflicts: # package-lock.json # package.json
…pshot-of-standards # Conflicts: # package-lock.json # package.json
Adds a summary page of standards and their requirements that teams can use as a quick reference / to build a doc that assert's their compliance.
This can also be downloaded as a .json file (which has an associated schema.json spec) and a .csv file
that teams can use to assert their compliance in a machine readable way. This is a proof of concept of this page to enable feedback from teams trying to adopt the standard.
Code change
I can confirm:
Accessibility considerations