Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/accessibility.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
# 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

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
Expand All @@ -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
34 changes: 32 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion .pa11yci.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -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
45 changes: 17 additions & 28 deletions _data/rooms.yml
Original file line number Diff line number Diff line change
@@ -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: ⛲
47 changes: 31 additions & 16 deletions _data/suspects.yml
Original file line number Diff line number Diff line change
@@ -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: 🍑

22 changes: 12 additions & 10 deletions _data/weapons.yml
Original file line number Diff line number Diff line change
@@ -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: 🐴
6 changes: 3 additions & 3 deletions _includes/head-custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<meta property="og:site_name" content="{{ site.title }}"/>
<meta property="og:title" content="{{ page.title }} - {{ site.title }}">
<meta property="og:description" content="{{ site.description }}">
<meta property="og:image" content="https://lowlydba.github.io/clue-sheet/assets/img/clue-sheet-og.png">
<meta property="og:image" content="https://sheet.lowlydba.com/assets/img/clue-sheet-og.png">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary">
<meta property="twitter:domain" content="lowlydba.github.io">
<meta property="twitter:domain" content="sheet.lowlydba.com">
<meta property="twitter:url" content="{{ site.url }}">
<meta name="twitter:title" content="{{ page.title }} - {{ site.title }}">
<meta name="twitter:description" content="{{ site.description }}">
<meta name="twitter:image" content="https://lowlydba.github.io/clue-sheet/assets/img/clue-sheet-og.png">
<meta name="twitter:image" content="https://sheet.lowlydba.com/assets/img/clue-sheet-og.png">

2 changes: 1 addition & 1 deletion _includes/rooms.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>Rooms</h2>
<th>Status</th>
</tr>
{% for room in site.data.rooms %}
{% if room.base or room.edition == edition %}
{% if room.editions contains edition %}
<tr>
<td class="guess-component">{{ room.name }}</td>
<td><input type="button" class="multi-checkbox" value="&#x2B1C;" /></td>
Expand Down
2 changes: 1 addition & 1 deletion _includes/suspects.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>Suspects</h2>
<th>Status</th>
</tr>
{% for suspect in site.data.suspects %}
{% if suspect.base_character or suspect.edition == edition%}
{% if suspect.editions contains edition %}
<tr>
<td class="guess-component">{{ suspect.name }}</td>
<td><input type="button" class="multi-checkbox" value="&#x2B1C;" /></td>
Expand Down
Loading
Loading