All Projects → alphagov → Govuk Component Guide

alphagov / Govuk Component Guide

A style guide for GOV.UK Components shared between applications

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Govuk Component Guide

smokey
Smoke tests for GOV.UK
Stars: ✭ 42 (+162.5%)
Mutual labels:  govuk
sketch wireframing kit
Quick Sketchapp wireframing tool for UK government digital services
Stars: ✭ 74 (+362.5%)
Mutual labels:  govuk
govuk-taxonomy-supervised-learning
Auto-tag govuk content to the collated legacy taxonomies
Stars: ✭ 22 (+37.5%)
Mutual labels:  govuk
govuk-terraform-provisioning
**DEPRECATED** Terraform configuration and utilities to provision parts of the GOV.UK AWS Infrastructure
Stars: ✭ 17 (+6.25%)
Mutual labels:  govuk
content-data-api
Data warehouse that stores content and content metrics to help content owners measure and improve content on GOV.UK
Stars: ✭ 13 (-18.75%)
Mutual labels:  govuk
govuk crawler worker
A worker that will consume GOV.UK URLs from a message queue and crawl them, saving the output to disk
Stars: ✭ 17 (+6.25%)
Mutual labels:  govuk
govuk-components
Lightweight components for developing with the GOV.UK Design System
Stars: ✭ 84 (+425%)
Mutual labels:  govuk
Govuk Aws
The GOV.UK repository for our Migration to AWS
Stars: ✭ 334 (+1987.5%)
Mutual labels:  govuk
publisher
Publishes mainstream content on GOV.UK
Stars: ✭ 42 (+162.5%)
Mutual labels:  govuk
govuk publishing components
A gem to document and distribute frontend components for GOV.UK applications
Stars: ✭ 45 (+181.25%)
Mutual labels:  govuk
collections
Serves GOV.UK navigation pages, browse, topic, step-by-steps & services and information pages.
Stars: ✭ 32 (+100%)
Mutual labels:  govuk
slimmer
Templating Rack middleware, injects standard header/footer and GOV.UK Components
Stars: ✭ 30 (+87.5%)
Mutual labels:  govuk
government-frontend
Serves government pages on GOV.UK
Stars: ✭ 42 (+162.5%)
Mutual labels:  govuk
search-api
Search API for GOV.UK
Stars: ✭ 21 (+31.25%)
Mutual labels:  govuk
need-o-tron
No description or website provided.
Stars: ✭ 35 (+118.75%)
Mutual labels:  govuk
gds-nodejs-boilerplate
A Node.js project boilerplate for production apps
Stars: ✭ 18 (+12.5%)
Mutual labels:  govuk
finder-frontend
Serves finder and search pages for GOV.UK
Stars: ✭ 15 (-6.25%)
Mutual labels:  govuk
Whitehall
Publishes government content on GOV.UK
Stars: ✭ 634 (+3862.5%)
Mutual labels:  govuk
govuk-docker
GOV.UK development environment using Docker 🐳
Stars: ✭ 37 (+131.25%)
Mutual labels:  govuk
panopticon
Retired. App that holds some of the content on GOV.UK
Stars: ✭ 17 (+6.25%)
Mutual labels:  govuk

GOV.UK Component Guide

Component guides now live within applications and are generated using the govuk_publishing_components gem. This application is being retired.

A list of all component guides is available here: https://docs.publishing.service.gov.uk/manual/components.html. Static components are listed here: https://govuk-static.herokuapp.com/component-guide/

Build Status

A living style guide and documentation for GOV.UK Components — A new approach to sharing UI patterns between applications without having to duplicate code.

Caveats

It's still in it's early stages, many features are missing or incomplete, and documentation may not be 100% accurate.

It depends on Slimmer and makes API calls to Static.

Installation

It's a pretty standard Rails app, clone it, bundle it.

Running

$ PLEK_SERVICE_STATIC_URI=assets.digital.cabinet-office.gov.uk ./startup.sh

If running on a VM, then Rails needs to be bound to 0.0.0.0 rather than localhost so that it can be accessed outside of the VM. This is if using startup.sh but if running bundle exec rails s yourself you'll need to bind the port manually.

The application will start on port 3113, so to access it visit 0.0.0.0:3113 or dev.gov.uk:3113 on a VM.

The PLEK_SERVICE_STATIC_URI environment variable points to a public instance of alphagov/static - This is where the component documentation used to generate the dynamic parts of this guide is fetched from. Pointing at different static hosts may show different components.

Running against local static

If you'd like to run the component guide against a different version of static, for example, where you've added, or made changes to, components, you'll need to run a copy of static locally.

To get a local copy of alphagov/static, follow the installation and local running instructions there, then run the component guide with this command:

$ PLEK_SERVICE_STATIC_URI=http://0.0.0.0:3013 ./startup.sh

Deployment

The app is deployed to a Heroku instance and is continuously deployed, updating whenever master changes and CI passes.

To access the Heroku admin, add yourself through the shared [email protected] account, or ask a contributor to add you.

Environment vars

These are required when running a production environment

  • PLEK_SERVICE_STATIC_URI - as above.
  • GOVUK_APP_DOMAIN- set to www.gov.uk
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].