All Projects → alphagov → Calendars

alphagov / Calendars

Licence: mit
Serves /bank-holidays and /when-do-the-clocks-change on GOV.UK

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Calendars

collections
Serves GOV.UK navigation pages, browse, topic, step-by-steps & services and information pages.
Stars: ✭ 32 (-17.95%)
Mutual labels:  govuk
government-frontend
Serves government pages on GOV.UK
Stars: ✭ 42 (+7.69%)
Mutual labels:  govuk
Govuk Aws
The GOV.UK repository for our Migration to AWS
Stars: ✭ 334 (+756.41%)
Mutual labels:  govuk
slimmer
Templating Rack middleware, injects standard header/footer and GOV.UK Components
Stars: ✭ 30 (-23.08%)
Mutual labels:  govuk
finder-frontend
Serves finder and search pages for GOV.UK
Stars: ✭ 15 (-61.54%)
Mutual labels:  govuk
govuk publishing components
A gem to document and distribute frontend components for GOV.UK applications
Stars: ✭ 45 (+15.38%)
Mutual labels:  govuk
search-api
Search API for GOV.UK
Stars: ✭ 21 (-46.15%)
Mutual labels:  govuk
Blinken
RETIRED. Superseded by https://github.com/alphagov/blinkenjs
Stars: ✭ 13 (-66.67%)
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 (-56.41%)
Mutual labels:  govuk
govuk-docker
GOV.UK development environment using Docker 🐳
Stars: ✭ 37 (-5.13%)
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 (-66.67%)
Mutual labels:  govuk
sketch wireframing kit
Quick Sketchapp wireframing tool for UK government digital services
Stars: ✭ 74 (+89.74%)
Mutual labels:  govuk
govuk-taxonomy-supervised-learning
Auto-tag govuk content to the collated legacy taxonomies
Stars: ✭ 22 (-43.59%)
Mutual labels:  govuk
publishing-api
API to publish content on GOV.UK
Stars: ✭ 29 (-25.64%)
Mutual labels:  govuk
Whitehall
Publishes government content on GOV.UK
Stars: ✭ 634 (+1525.64%)
Mutual labels:  govuk
govuk-terraform-provisioning
**DEPRECATED** Terraform configuration and utilities to provision parts of the GOV.UK AWS Infrastructure
Stars: ✭ 17 (-56.41%)
Mutual labels:  govuk
panopticon
Retired. App that holds some of the content on GOV.UK
Stars: ✭ 17 (-56.41%)
Mutual labels:  govuk
Gds Sso
OmniAuth adapter to allow apps to sign in via GOV.UK signon
Stars: ✭ 21 (-46.15%)
Mutual labels:  govuk
Govuk Component Guide
A style guide for GOV.UK Components shared between applications
Stars: ✭ 16 (-58.97%)
Mutual labels:  govuk
need-o-tron
No description or website provided.
Stars: ✭ 35 (-10.26%)
Mutual labels:  govuk

calendars functionality is now provided by frontend.

Calendars

Serves calendars in a clear and accessible format, along with JSON and iCal exports of the data.

Screenshots

Screenshot

Live examples

Nomenclature

  • scope: each type of calendar (eg daylight saving, bank holidays) is known as a scope. A scope has its own view templates, JSON data source and primary route.

Technical documentation

This is a Ruby on Rails application that serves static pages based on JSON files. It does not use a database.

JSON data files are stored in lib/data/<scope>.json, with a divisions hash for separate data per region (united-kingdom, england-and-wales, scotland or northern-ireland).

Each scope's data file contains a list of divisions, containing a list of years, each with a list of events:

{
  "title": "UK bank holidays",
  "description": "UK bank holidays calendar - see UK bank holidays and public holidays for 2012 and 2013",
  "divisions": {
    "england-and-wales": {
      "title": "England and Wales",
      "2011": [{
        "title": "New Year's Day",
        "date": "02/01/2011",
        "notes": "Substitute day"
      }]
    }
  }
}

The division title attribute is optional. If this is not present the slug will be humanized and used instead.

Dependencies

Additional information

Publishing to GOV.UK

  • bundle exec rake publishing_api:publish will send the calendars to the publishing-api.

Search indexing

  • Is performed automatically on data sent to publishing api.

Generate bank holidays JSON

A rake task has been created to generate the bank holidays JSON for a given year. They need to be then inserted, and modified to take into account any additions/modifications made by proclamation. Run the rake task like this:

bundle exec rake bank_holidays:generate_json[2016]

Canonical sources

Licence

MIT License

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].