Skip to content

Commit

Permalink
Merge pull request #1109 from rodekruis/develop
Browse files Browse the repository at this point in the history
feat: Add `REGION_CONFIG`-feature
  • Loading branch information
elwinschmitz authored Sep 16, 2024
2 parents 7524f95 + cf37651 commit 15dd8c6
Show file tree
Hide file tree
Showing 18 changed files with 4,672 additions and 5,914 deletions.
5 changes: 1 addition & 4 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5% and not dead
last 2 versions
>=0.25% and fully supports es6 and not dead
Firefox ESR
not supports es5
not dead
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ REGIONS_LABELS=
# Regions Google Sheet IDs: A comnma-separated list of Google Sheets document IDs (the unique part of their URLs)
REGIONS_SHEET_IDS=

# RegionConfig: A JSON-string with configuration for all region(-set)(s)
# For example: REGION_CONFIG=[{"name":"Languages","regions":[{"slug":"nl","label":"Nederlands","sheetId":"...googleSheetId..."}, ...]}]
# This replaces the above three variables: REGIONS, REGIONS_LABELS, REGIONS_SHEET_IDS
REGION_CONFIG=

# Third-party tokens:
# Google Sheets API
GOOGLE_SHEETS_API_KEY=
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This project uses the [`CalVer`](https://calver.org/#scheme)-format: `YY.0M.MICR

## [Unreleased](https://github.com/rodekruis/helpful-information/compare/v24.07.2...main)

### Added

- Regions can be grouped on the main-page (with optional sub-headings) via the `REGION_CONFIG`-ENV-variable(experimental!). See: [`ENV`](.env.example)

---

## 2024-07-25: [v24.07.2](https://github.com/rodekruis/helpful-information/releases/tag/v24.07.2)
Expand Down
Loading

0 comments on commit 15dd8c6

Please sign in to comment.