Official upstream source mirror. Do not make UH changes here.
  • Ruby 70.3%
  • HTML 25.6%
  • SCSS 2%
  • JavaScript 1.9%
  • Gherkin 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-28 09:54:42 +01:00
.github Bump ruby/setup-ruby from 1.325.0 to 1.327.0 2026-09-28 05:22:48 +00:00
.yarn/releases Run yarn set version berry to enable v3 2023-03-06 11:30:36 +00:00
app Remove custom banner for DCMS 2026-09-16 15:37:02 +01:00
bin Run app:update 2026-02-02 15:53:40 +00:00
config Remove example of people page 2026-09-10 15:37:54 +01:00
docs Add Knowledge graph as thing using the API 2025-06-09 11:45:23 +01:00
features remove slimmer includes from tests 2025-11-24 15:30:55 +00:00
lib Resolve deprecations before Rails upgrade 2025-02-05 15:13:42 +00:00
log Remove unwanted log file form the repo 2016-10-13 07:59:57 +01:00
public Run app:update 2026-02-02 15:53:40 +00:00
script Rubocop: fix errors automatically with -a 2020-03-10 12:20:36 +00:00
spec Fix failing test 2026-09-22 11:42:37 +01:00
vendor/assets Initial commit of Rails 4.0.4 app 2014-04-03 14:23:04 +01:00
.dockerignore Remove obsolete Jenkinsfile. 2024-01-31 16:20:46 +00:00
.erb_lint.yml Resolve deprecations before Rails upgrade 2025-02-05 15:13:42 +00:00
.gitignore Configure builds 2024-01-16 16:04:03 +00:00
.govuk_dependabot_merger.yml Enable automerging of external dependencies 2024-06-03 12:04:43 +01:00
.rspec Revert "Revert "Start converting Minitest specs to RSpec "" 2021-02-09 15:28:43 +00:00
.rubocop.yml Add standard header to protect .rubocop.yml 2021-11-09 09:45:03 +00:00
.ruby-version Upgrade ruby to 3.4.5 2025-09-18 10:44:52 +01:00
.tool-versions Update .tool-versions to match .ruby-version 2023-05-11 13:24:17 +01:00
.yarnrc.yml Remove fix to set postcss peerdepencies 2026-05-29 12:41:11 +01:00
app.json Remove static app variables 2026-01-13 17:29:53 +00:00
config.ru Run rails app:update and manually merge config changes 2021-03-16 08:08:12 +00:00
Dockerfile Upgrade ruby to 3.4.5 2025-09-18 10:44:52 +01:00
Gemfile Bump rails from 8.1.3 to 8.1.3.1 2026-08-03 05:23:29 +00:00
Gemfile.lock Merge pull request #4685 from alphagov/dependabot/bundler/govuk_publishing_components-70.2.0 2026-09-28 09:54:42 +01:00
LICENCE Rename Licence reference in README 2022-12-02 15:28:58 +00:00
package.json Update lint:js script to use standard 2026-09-09 16:43:43 +01:00
Procfile.dev Add watch task 2024-01-16 16:04:03 +00:00
Rakefile Add rake task for running JS specs with jasmine-browser-runner 2022-07-12 16:23:44 +01:00
README.md Remove support for Services and Information Pages 2024-02-14 12:37:12 +00:00
startup.sh Remove static app variables 2026-01-13 17:29:53 +00:00
yarn.lock Replace standardx with standard 2026-09-09 15:47:39 +01:00

Collections

Collections serves the GOV.UK navigation pages and organisation pages. Search API is used to make the pages dynamic e.g. the latest changes for Topics, Organisations and Mainstream browse pages.

At time of writing, it also serves the priority campaign pages. See the Campaign pages manual for more details.

Live examples

Nomenclature

Topics

  • Curated list: a group of content tagged to a subtopic that has been curated into a named list.
  • Topic: a named group of sub-topics. (A deprecated name for this is "specialist sector".)
  • Sub-topic: a group of content within a topic. (A deprecated name for this is "specialist sub-sector".)

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

You can use the GOV.UK Docker environment or the local startup.sh script to run the app. Read the guidance on local frontend development to find out more about each approach, before you get started.

If you are using GOV.UK Docker, remember to combine it with the commands that follow. See the GOV.UK Docker usage instructions for examples.

Running the test suite

bundle exec rake

To test a single file:

bundle exec rails test test/unit/application_helper_test.rb

To run JavaScript tests (only):

bundle exec rake jasmine

Pact tests

Collections Organisations API has a pact with GDS API Adapters.

See the guidance on Pact testing for how to run and modify the tests.

Further documentation

Licence

MIT License