Skip to content

Commit a4561a4

Browse files
authored
Merge pull request #436 from w3c/main
For publication / deploy on Tuesday September 30, 2025
2 parents 3d40856 + 5e305f4 commit a4561a4

File tree

113 files changed

+1602
-319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1602
-319
lines changed

.github/workflows/pr-create.yml

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ jobs:
4646

4747
- name: Update git submodules
4848
run: |
49+
# Deinit and reinit submodules
50+
echo "Deinitializing existing submodules..."
51+
git submodule deinit -f "_external/aria-practices" || true
52+
git submodule deinit -f "_external/data" || true
53+
54+
# Remove stale directories
55+
if [ -d "_external/aria-practices" ]; then
56+
echo "Removing stale aria-practices directory..."
57+
rm -rf "_external/aria-practices"
58+
fi
59+
if [ -d "_external/data" ]; then
60+
echo "Removing stale data directory..."
61+
rm -rf "_external/data"
62+
fi
63+
64+
# Reinitialize submodules
65+
echo "Initializing submodules..."
66+
git submodule update --init --recursive
67+
68+
# Update from remote and handle fork if exists
4969
git submodule update --recursive --remote
5070
cd _external/aria-practices
5171
if [ -n "${{ github.event.inputs.fork_path }}" ] && [ "${{ github.event.inputs.fork_path }}" != 'false' ]; then
@@ -69,32 +89,52 @@ jobs:
6989
7090
# Handle cases where the aria-practices submodule has conflicts to be handled;
7191
# _external/data shouldn't have conflicting changes
72-
if [ -d "_external/aria-practices" ] && { [ -f ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; }; then
92+
while { [ -f ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; }; do
7393
echo "Handling submodule conflicts..."
74-
cd _external/aria-practices
7594
76-
# Resolve the conflict
77-
git fetch origin
78-
git merge origin/main
95+
# Handle submodule conflicts first if they exist
96+
if [ -d "_external/aria-practices" ]; then
97+
echo "Checking for submodule conflicts..."
98+
cd _external/aria-practices
7999
80-
# Add resolved submodule from project root
81-
cd -
82-
git add _external/aria-practices
100+
# If submodule has conflicts, resolve them
101+
if [ -f ".git/MERGE_HEAD" ] || [ -d ".git/rebase-merge" ] || [ -f ".git/rebase-apply" ]; then
102+
echo "Resolving submodule conflicts..."
103+
git fetch origin
104+
git merge origin/main
105+
fi
83106
84-
# Continue the rebase
85-
GIT_EDITOR=true git rebase --continue || true
107+
# Add resolved submodule from project root
108+
cd -
109+
git add _external/aria-practices
110+
fi
86111
87112
# Resolve conflicts for all other conflicting files automatically using 'theirs' from project root
113+
echo "Resolving file conflicts..."
88114
git diff --name-only --diff-filter=U | while read -r file; do
115+
echo "Resolving conflict in: $file"
89116
git checkout --theirs "$file"
90117
git add "$file"
91118
done
92119
93120
# Continue the rebase
94-
GIT_EDITOR=true git rebase --continue || true
95-
else
96-
echo "No submodule conflicts detected or no rebase in progress."
97-
fi
121+
echo "Continuing rebase..."
122+
GIT_EDITOR=true git rebase --continue || {
123+
echo "Rebase continue failed, checking if more conflicts exist..."
124+
# If rebase failed, check if due to more conflicts
125+
if { [ -f ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; }; then
126+
echo "More conflicts detected, continuing to resolve..."
127+
continue
128+
else
129+
echo "Rebase completed or failed for other reasons"
130+
break
131+
fi
132+
}
133+
134+
echo "Submodule conflicts fix step completed successfully"
135+
done
136+
137+
echo "No submodule conflicts detected or no rebase in progress"
98138
env:
99139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100140

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[submodule "_external/aria-practices"]
22
path = _external/aria-practices
33
url = https://github.com/w3c/aria-practices.git
4-
branch = main
4+
branch = main
55
[submodule "_external/data"]
66
path = _external/data
77
url = https://github.com/w3c/wai-website-data.git

ARIA/apg/about/change-history/change-history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lang: en
7979
<li>Improved support for high contrast settings and added detailed documentation of high contrast support in many examples.</li>
8080
<li>Improved support for touch-based screen readers in several examples, most notably in sliders.</li>
8181
<li>Due to change in ARIA 1.2, removed Math role from list of roles that have presentational children.</li>
82-
<li>Developed a <a href="https://github.com/w3c/aria-practices/wiki/Code-Guide#apg-coding-standards">comprehensive set of coding standards for HTML, CSS, and Javascript</a> for the APG and updated a significant portion of content to conform with the standards.</li>
82+
<li>Developed a <a href="https://github.com/w3c/aria-practices/wiki/Code-Guide#apg-coding-standards">comprehensive set of coding standards for HTML, CSS, and JavaScript</a> for the APG and updated a significant portion of content to conform with the standards.</li>
8383
<li>In response to feedback, fixed many documentation errors and functional bugs in examples.</li>
8484
</ul>
8585
<p>Comprehensive lists of closed issues included in APG 1.2 release 1 are tracked in the following GitHub milestones.</p>

0 commit comments

Comments
 (0)