Skip to content

Commit a7747e1

Browse files
authored
Revert "Fixes A11y test errors (#673)" (#674)
This reverts commit 7a0dcfd.
1 parent 7a0dcfd commit a7747e1

File tree

4 files changed

+45
-11
lines changed

4 files changed

+45
-11
lines changed

.frontmatter_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Pattern-specific rules
22
patterns:
33
- name: "Global Defaults"
4-
pattern: "_posts./*.md" # match ALL `.md` files
4+
pattern: "blog./*.md" # match ALL `.md` files
55
rules:
66
- field_name: date
77
- field_name: description
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Accessibility Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- gh-pages
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.head_ref }}
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.10"
22+
23+
- name: Install dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install axe-core-python pytest playwright axe-playwright-python
28+
29+
- name: Install Playwright browsers
30+
run: |
31+
playwright install
32+
33+
- name: Run accessibility tests
34+
run: |
35+
python3 -m pytest tests/

_includes/join_us.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ <h2>Support Black Python Devs</h2>
2727
script.id = "commitchange-script";
2828
script.src = "https://us.commitchange.com/js/donate-button.v2.js";
2929

30+
script.onload = function () {
31+
const observer = new MutationObserver(function (mutations) {
32+
const iframe = document.querySelector(".commitchange-iframe-embedded");
33+
if (iframe && !iframe.hasAttribute("title")) {
34+
iframe.setAttribute("title", "Donation form for Black Python Devs");
35+
observer.disconnect(); // Stop observing once we've set the title
36+
}
37+
});
38+
3039
observer.observe(document.body, { childList: true, subtree: true });
3140
};
3241

@@ -76,11 +85,3 @@ <h3>Corporate Sponsors</h3>
7685
</div>
7786
</section>
7887
</div>
79-
<script>
80-
const observer = new MutationObserver(function (mutations) {
81-
const iframe = document.querySelector(".commitchange-iframe-embedded");
82-
if (iframe && !iframe.hasAttribute("title")) {
83-
iframe.setAttribute("title", "Donation form for Black Python Devs");
84-
observer.disconnect(); // Stop observing once we've set the title
85-
}
86-
</script>

_posts/2025-04-28-baovola-marie-anna-added-to-bpd-council.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: BAOVOLA Marie Anna Added to BPD Council
33
date: 2025-04-28
44
author: Jay Miller
5-
layout: post
6-
lang: en
75
description: The BPD Council has recognized the work of BAOVOLA Marie Anna and invited her to join the Council.
86
featured_image: /assets/images/baovola-jay-pg-day-chi-2025.webp
97
---

0 commit comments

Comments
 (0)