diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index ed29103..68e79f1 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -1,5 +1,5 @@ # This workflow builds the Jekyll site and tests the rendered pages against -# WCAG accessibility standards using pa11y-ci whenever a pull request is opened +# WCAG accessibility standards using lowlysre/pa11y-ci-action whenever a pull request is opened # against the default branch. name: Accessibility @@ -7,12 +7,24 @@ on: pull_request: branches: [ main ] +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pa11y: + name: pa11y runs-on: ubuntu-latest + permissions: + contents: read # check out the repository + pull-requests: write # post the sticky accessibility summary comment steps: - name: Checkout code uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Build Jekyll site uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13 @@ -23,22 +35,21 @@ jobs: - name: Setup Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: '20' - - - name: Install pa11y-ci - run: npm install --global pa11y-ci + node-version: '22' - name: Serve site run: python3 -m http.server 8080 --directory ./_site & - name: Wait for server run: | - for i in $(seq 1 30); do - curl -sf http://127.0.0.1:8080/clue.html -o /dev/null && exit 0 + for _ in $(seq 1 30); do + curl -sf http://127.0.0.1:8080/clue-classic.html -o /dev/null && exit 0 sleep 1 done echo "Server did not start in time" >&2 exit 1 - name: Run WCAG accessibility checks - run: pa11y-ci --config .pa11yci.json + uses: lowlysre/pa11y-ci-action@84174759cd514bd3ea3bcaa30dc1798dde81f713 # v1.1.0 + with: + comment-on-pr: true diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index acecc37..1c79795 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -11,19 +11,49 @@ on: branches: [ main ] pull_request: branches: [ main ] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: run-lint: + name: Super-linter runs-on: ubuntu-latest + permissions: + contents: read # check out the repository + statuses: write # super-linter reports a status per linter steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 + persist-credentials: false - name: Lint Code Base - uses: github/super-linter/slim@v4 + uses: github/super-linter/slim@985ef206aaca4d560cb9ee2af2b42ba44adc1d55 # v4 env: VALIDATE_ALL_CODEBASE: false DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + zizmor: + name: zizmor + runs-on: ubuntu-latest + permissions: + contents: read # check out the repository + steps: + - name: Checkout code + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4 + with: + persona: pedantic + advanced-security: false + annotations: true diff --git a/.pa11yci.json b/.pa11yci.json index 7883dde..66f74fe 100644 --- a/.pa11yci.json +++ b/.pa11yci.json @@ -8,7 +8,9 @@ }, "urls": [ "http://127.0.0.1:8080/index.html", - "http://127.0.0.1:8080/clue.html", + "http://127.0.0.1:8080/clue-classic.html", + "http://127.0.0.1:8080/clue-2016.html", + "http://127.0.0.1:8080/clue-2023.html", "http://127.0.0.1:8080/clue-master.html" ] } diff --git a/README.md b/README.md index 0977792..96d82df 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,13 @@ Simple, interactive detective sheets to use for the board game Clue / Cluedo that are mobile friendly. Not intended to offer an advantage over those using the traditional paper sheets. -Short link: [bit.ly/clue-sheet](https://bit.ly/clue-sheet) +Site: [sheet.lowlydba.com](https://sheet.lowlydba.com) ## Editions | Edition | | ------- | -| [Clue](https://lowlydba.github.io/clue-sheet/clue) | -| [Clue Master](https://lowlydba.github.io/clue-sheet/clue-master) | +| [Clue Classic](https://sheet.lowlydba.com/clue-classic) | +| [Clue 2016-2022](https://sheet.lowlydba.com/clue-2016) | +| [Clue 2023](https://sheet.lowlydba.com/clue-2023) | +| [Clue Master](https://sheet.lowlydba.com/clue-master) | diff --git a/_config.yml b/_config.yml index 885b6d2..4a2ad8c 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,3 @@ title: Clue Detective Sheet description: A mobile friendly Clue / Cluedo detective sheet. -url: https://lowlydba.github.io +url: https://sheet.lowlydba.com diff --git a/_data/rooms.yml b/_data/rooms.yml index c177fd0..9eaec9c 100644 --- a/_data/rooms.yml +++ b/_data/rooms.yml @@ -1,77 +1,66 @@ # Base Rooms - name: Dining Room - base: true + editions: [classic, "2016", "2023", master] emoji: 🍽️ - name: Kitchen - base: true + editions: [classic, "2016", "2023", master] emoji: 🍳 - name: Conservatory - base: true + editions: [classic, "2016", "2023", master] emoji: 🔭 - name: Billiard Room - base: true + editions: [classic, "2016", "2023", master] emoji: 🎱 - name: Library - base: true + editions: [classic, "2016", "2023", master] emoji: 📚 -# Standard Edition only +# Classic, 2016-2022 and 2023 editions only - name: Lounge - base: false - edition: standard + editions: [classic, "2016", "2023"] emoji: 🛋️ - name: Hall - base: false - edition: standard + editions: [classic, "2016", "2023"] emoji: 🏛️ - name: Ballroom - base: false - edition: standard + editions: [classic, "2016", "2023"] emoji: 🕺 - name: Study - base: false - edition: standard + editions: [classic, "2016", "2023"] emoji: 📜 # Master Edition only - name: Courtyard - base: false - edition: master + editions: [master] emoji: 🗿 - name: Gazebo - base: false - edition: master + editions: [master] emoji: 🏯 - name: Drawing Room - base: false - edition: master + editions: [master] emoji: ✏️ - name: Carriage House - base: false - edition: master + editions: [master] emoji: 🐎 - name: Trophy Room - base: false - edition: master + editions: [master] emoji: 🏆 - name: Studio - base: false - edition: master + editions: [master] emoji: 🎨 - name: Fountain - base: false - edition: master + editions: [master] emoji: ⛲ diff --git a/_data/suspects.yml b/_data/suspects.yml index 0ab7eee..9cf0d3e 100644 --- a/_data/suspects.yml +++ b/_data/suspects.yml @@ -1,44 +1,59 @@ - name: Col. Mustard - base_character: true + editions: [classic, "2016", "2023", master] emoji: 🟨 +- name: Mrs. White + editions: [classic] + emoji: ⬜ + +- name: Chef White + editions: ["2023"] + emoji: ⬜ + - name: Dr. Orchid - base_character: true + editions: ["2016", master] emoji: 🎴 - name: Prof. Plum - base_character: true + editions: [classic, "2016", "2023", master] emoji: 🟪 - name: Mr. Green - base_character: true + editions: [classic, "2016", master] + emoji: 🟩 + +- name: Mayor Green + editions: ["2023"] emoji: 🟩 - name: Mrs. Peacock - base_character: true + editions: [classic, "2016", master] emoji: 🦚 -- name: Mrs. Scarlet - base_character: true +- name: Solicitor Peacock + editions: ["2023"] + emoji: 🦚 + +- name: Miss Scarlet + editions: [classic, master] + emoji: 🟥 + +- name: Miss Scarlett + editions: ["2016", "2023"] emoji: 🟥 - name: Mme. Rose - base_character: false - edition: master + editions: [master] emoji: 🌹 - name: Sgt. Gray - base_character: false - edition: master + editions: [master] emoji: 👨‍🦳 - name: M. Brunette - base_character: false - edition: master + editions: [master] emoji: 🟫 - name: Ms. Peach - base_character: false - edition: master + editions: [master] emoji: 🍑 - diff --git a/_data/weapons.yml b/_data/weapons.yml index de061c4..c10e9b0 100644 --- a/_data/weapons.yml +++ b/_data/weapons.yml @@ -1,33 +1,35 @@ - name: Knife - base: true + editions: [classic, master] emoji: 🔪 + +- name: Dagger + editions: ["2016", "2023"] + emoji: 🗡️ - name: Candlestick - base: true + editions: [classic, "2016", "2023", master] emoji: 🕎 - name: Revolver - base: true + editions: [classic, "2016", "2023", master] emoji: 🔫 - name: Rope - base: true + editions: [classic, "2016", "2023", master] emoji: ⛓️ - name: Lead Pipe - base: true + editions: [classic, "2016", "2023", master] emoji: 🦿 - name: Wrench - base: true + editions: [classic, "2016", "2023", master] emoji: 🔧 - name: Poison - base: false - edition: master + editions: [master] emoji: 🏺 - name: Horseshoe - base: false - edition: master + editions: [master] emoji: 🐴 diff --git a/_includes/head-custom.html b/_includes/head-custom.html index a5619e9..d4585fb 100644 --- a/_includes/head-custom.html +++ b/_includes/head-custom.html @@ -24,13 +24,13 @@ - + - + - + diff --git a/_includes/rooms.html b/_includes/rooms.html index c18e4b2..bd3f349 100644 --- a/_includes/rooms.html +++ b/_includes/rooms.html @@ -5,7 +5,7 @@

Rooms

Status {% for room in site.data.rooms %} - {% if room.base or room.edition == edition %} + {% if room.editions contains edition %} {{ room.name }} diff --git a/_includes/suspects.html b/_includes/suspects.html index 1fabe4a..5409156 100644 --- a/_includes/suspects.html +++ b/_includes/suspects.html @@ -5,7 +5,7 @@

Suspects

Status {% for suspect in site.data.suspects %} - {% if suspect.base_character or suspect.edition == edition%} + {% if suspect.editions contains edition %} {{ suspect.name }} diff --git a/_includes/weapons.html b/_includes/weapons.html index 768cab1..2ae7d27 100644 --- a/_includes/weapons.html +++ b/_includes/weapons.html @@ -5,7 +5,7 @@

Weapons

Status {% for weapon in site.data.weapons %} - {% if weapon.base or weapon.edition == edition %} + {% if weapon.editions contains edition %} {{ weapon.name }} diff --git a/clue.md b/clue-2016.md similarity index 59% rename from clue.md rename to clue-2016.md index f484c58..fb3b752 100644 --- a/clue.md +++ b/clue-2016.md @@ -1,6 +1,6 @@ -# Clue Standard Edition +# Clue 2016-2022 Edition -{% assign edition = "standard" %} +{% assign edition = "2016" %} {% include suspects.html %} diff --git a/clue-2023.md b/clue-2023.md new file mode 100644 index 0000000..cc8ad23 --- /dev/null +++ b/clue-2023.md @@ -0,0 +1,9 @@ +# Clue 2023 Edition + +{% assign edition = "2023" %} + +{% include suspects.html %} + +{% include weapons.html %} + +{% include rooms.html %} diff --git a/clue-classic.md b/clue-classic.md new file mode 100644 index 0000000..8875262 --- /dev/null +++ b/clue-classic.md @@ -0,0 +1,9 @@ +# Clue Classic Edition + +{% assign edition = "classic" %} + +{% include suspects.html %} + +{% include weapons.html %} + +{% include rooms.html %} diff --git a/clue.html b/clue.html new file mode 100644 index 0000000..fa7cad4 --- /dev/null +++ b/clue.html @@ -0,0 +1,16 @@ +--- +layout: null +permalink: /clue +--- + + + + + Redirecting to Clue 2016-2022 Edition + + + + +

This page moved to Clue 2016-2022 Edition.

+ +