Hello! If you are interested in contributing to the Rules Library for Buried Giant, you can do so in two ways:
If you have a card issue, or an issue with the website itself, please open up an Issue. Proposed errata, as well as proposed FAQs that rest on contested logic, should be always Issues.
If you have a fix to propose, please open up a Pull Request. All of the relevant data for cards contained in content/card-data for card text, content/errata for errata, content/faq for frequently asked questions. Here are some examples of good Pull Requests:
- An FAQ that has already been discussed and answered in an unambiguous way, either in the Github or by the community at large, but for some reason isn't in the Library.
- A clear issue in how the Library represents the reality of the product. (For example, a typo or other issue in the plaintext on the site that doesn't match the actual text on the card image.)
- Already-printed errata / card changes that are not reflected in the Library.
If you're interested in forking this code and using it yourself, you'll find what you need below.
- Node 18.15.0+
- Clone this repository
npm install
npm run build- build everythingnpm run build:card-data- build the card data onlynpm run build:card-symbols- move the card symbol iconsnpm run build:card-images- move the card imagesnpm run build:i18n- build the i18n files and ensure that they're formatted correctlynpm run validate- validate everythingnpm run validate:card-data- validate the card data is formatted correctly
- Create a new file matching the game name in
content/meta-data(subproduct ids must be different from the game id and unique) - Create a new folder in
content/card-data(the name should match thegameNamein themeta-datafile) - Create a new folder in
content/card-images(the name should match thegameNamein themeta-datafile) - Create a new folder in
content/card-symbols(the name should match thegameNamein themeta-datafile) - Add the product name the product list in
content/i18n(the name should match thegameNamein themeta-datafile) - Add a new 512x512 PNG in
content/card-symbols/products(the name should match thegameNamein themeta-datafile) - Follow the steps below for adding new locales and filters.
- Create a new folder in
content/card-data/{game}for the locale (probablyen-US)- Add a
{game}.ymlfile here (or, as many separate files as desired - they all get concatenated together) and fill it with card data.
- Add a
- Create a new folder in
content/card-images/{game}for the locale (probablyen-US)- Fill this folder with the images for the cards for the game.
When adding new filters in a meta data file that previously did not exist, you must also:
- Navigate to each locale file (in the
i18nfolder) - Go to
Pages.AdvancedSearch - Add a similar entry as seen there for your new filter.
This is done automatically when a PR is merged to master, and isn't intended to be done manually.