Skip to content

Conversation

ChrisBAshton
Copy link
Contributor

@ChrisBAshton ChrisBAshton commented Jun 20, 2025

WIP. See audit.

Trello: https://trello.com/c/Ohej7WfX/3837-plan-moving-govspeak-rendering-out-of-whitehall


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

This application is owned by the Whitehall Experience team. Please let us know in #govuk-whitehall-experience-tech when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

This is the only place it's used, so let's move it closer to the
code.

We're looking to simplify - and ultimately delete - the
`GovspeakHelper`, so let's start off by reducing it to just its
core set of methods.
Again, this was only being used (indirectly) by DetailedGuidance,
in one place.

This also meant that the default of only pulling out h2s was
useless code, as we were always specifying the heading levels we
want to retrieve. We can therefore remove that default arg, remove
the associated test, and have confidence it still works because of
the govspeak_header_hierarchy test from the previous commit.
This thing doesn't seem to exist?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant