From c237bedd871aa6e7a4833b67d3d8d6d29c9ee606 Mon Sep 17 00:00:00 2001 From: Liam J Berrisford Date: Thu, 31 Jul 2025 10:11:30 +0100 Subject: [PATCH 1/4] Update background color for box for WCAG 2.2 compliance --- short_courses/r_environments.ipynb | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/short_courses/r_environments.ipynb b/short_courses/r_environments.ipynb index 7dda10e8..f38df20a 100644 --- a/short_courses/r_environments.ipynb +++ b/short_courses/r_environments.ipynb @@ -8,7 +8,7 @@ "\n", "```{card}\n", "\n", - "
\n", + "
\n", "\n", "**Author:** Amy Heather (GitHub: [amyheather](https://github.com/amyheather), ORCID: [0000-0002-6596-3479](https://orcid.org/0000-0002-6596-3479)).\n", "\n", @@ -635,10 +635,24 @@ } ], "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, "language_info": { - "name": "python" + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.19" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From fd226b7a87e2a2da69e2633b0c1106f150ff3a91 Mon Sep 17 00:00:00 2001 From: Liam J Berrisford Date: Thu, 31 Jul 2025 10:25:56 +0100 Subject: [PATCH 2/4] Update accessibility.yml --- .github/workflows/accessibility.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index 9ad5f924..cf3e1a8a 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -50,6 +50,11 @@ jobs: apt-get install -y nodejs npm install --save-dev pa11y-ci npx puppeteer browsers install chrome + + - name: Debug Git state + run: | + git log --oneline --graph --decorate --all | head -n 50 + git branch -a - name: Identify changed files and map to HTML id: map_html_targets @@ -61,7 +66,7 @@ jobs: echo "[" > pa11y_targets.json first=true - git fetch origin ${{ github.base_ref }} + git fetch --no-tags --prune --progress --depth=100 origin ${{ github.base_ref }} git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E "\.md$|\.ipynb$" > changed_files.txt || true echo "Changed source files:" cat changed_files.txt || echo "None" From e55bcb1e52401821e73166994ef6e45740b70592 Mon Sep 17 00:00:00 2001 From: Liam J Berrisford Date: Thu, 31 Jul 2025 10:33:30 +0100 Subject: [PATCH 3/4] Remove incorrect debug step --- .github/workflows/accessibility.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index cf3e1a8a..4d7959ea 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -50,11 +50,6 @@ jobs: apt-get install -y nodejs npm install --save-dev pa11y-ci npx puppeteer browsers install chrome - - - name: Debug Git state - run: | - git log --oneline --graph --decorate --all | head -n 50 - git branch -a - name: Identify changed files and map to HTML id: map_html_targets From 0944e2705b38a45b67d2d1658e5c3650aa8f80c7 Mon Sep 17 00:00:00 2001 From: Liam J Berrisford Date: Thu, 31 Jul 2025 10:42:01 +0100 Subject: [PATCH 4/4] Update depth of history --- .github/workflows/accessibility.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index 4d7959ea..6f1732c7 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -10,6 +10,8 @@ jobs: image: mcr.microsoft.com/playwright:v1.42.1-jammy # includes Chromium, Node, and tools steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python 3.11 uses: actions/setup-python@v4