Skip to content

ashhitch/gatsby-source-uk-bank-holidays

Repository files navigation

🇬🇧 Source UK Bank Holidays into Gatsby

Sources UK bank holidays from GOV.UK

How to install

npm install gatsby-source-uk-bank-holidays

or

yarn add gatsby-source-uk-bank-holidays

How to use

module.exports = {
  plugins: [`gatsby-source-uk-bank-holidays`],
};

Query for data

{
  allBankHoliday {
    nodes {
      date
      title
      bunting
      division
      id
      notes
    }
  }
}

How to contribute with code

Getting started

  • Fork the repo
  • Clone your fork
  • Install the packages: yarn install
  • Run the demo: yarn develop

To be able to have both the demo and plugin in the same repo we use yarn workspaces.

  • Plugin code is in the /plugin folder,
  • and the demo code is in the /demo folder.

Do your thing

Solve an issue or do something else!

Create a Pull Request

To get your changes merged into the project create a Pull Request from your fork.

How to contribute in other ways

Questions, Feedback and Suggestions

If you have any questions, feedback or suggestions head on over to discussions.

Bugs

If you find a bug please open an issue and/or create a pull request to fix it.

About

Source UK bank holidays into Gatsby Data layer

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published