Skip to content

Commit 801bdb8

Browse files
Editorial: Adds script to get ARIA participants and Respec gh-contributors functionality to the specs that did not have it (#2288)
Closes w3c/aria-common#109 Co-authored-by: daniel-montalvo <[email protected]>
1 parent 88aad67 commit 801bdb8

File tree

11 files changed

+103
-140
lines changed

11 files changed

+103
-140
lines changed

accname/index.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<script src="../common/script/resolveReferences.js" class="remove"></script>
99
<script src="../common/script/utility.js" class="remove"></script>
1010
<script src="../common/biblio.js" class="remove" defer="defer"></script>
11+
<script src="../common/script/participants.js" class="remove"></script>
1112
<script class="remove">
1213
var respecConfig = {
1314
github: "w3c/accname",
@@ -131,7 +132,7 @@
131132
REC: "https://www.w3.org/WAI/ARIA/apg/",
132133
},
133134

134-
preProcess: [linkCrossReferences],
135+
preProcess: [linkCrossReferences, getParticipants],
135136
postProcess: [addPlatformMaintainers],
136137
//Pointing to the 1.2 versions but should remove the version in the publishing branch
137138
xref: ["dom", "core-aam-1.2", "wai-aria-1.2", "infra"],
@@ -784,7 +785,15 @@ <h2>Substantive changes since the <a href="https://www.w3.org/TR/accname-1.1/">A
784785
<section class="appendix informative section" id="acknowledgements">
785786
<h3>Acknowledgments</h3>
786787
<p>The following people contributed to the development of this document.</p>
787-
<div data-include="../common/acknowledgements/aria-wg-active.html" data-include-replace="true"></div>
788+
<ul id="gh-contributors">
789+
<!-- GitHub contributors go here -->
790+
</ul>
791+
<section class="section" id="ack_group">
792+
<h4>ARIA WG participants at the time of publication</h4>
793+
<ul>
794+
<!-- List of participants is injected here -->
795+
</ul>
796+
</section>
788797
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
789798
</section>
790799
</section>

common/script/participants.js

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,19 @@ function getParticipants() {
88
// Define the ID of the list element where the user information will be inserted
99
const LIST_ID = "ack_group";
1010

11-
/**
12-
* Fetches users and their affiliations from the API and returns an array of user information.
13-
* Each element in the array is an object containing the user's title and affiliation.
14-
*
15-
* @async
16-
* @function getUsersInfo
17-
* @returns {Promise<Array<{title: string, affiliation: string}>>} - A promise that resolves to an array of user information.
18-
*/
1911
async function getUsersInfo() {
20-
// Send a GET request to the users endpoint
2112
const response = await fetch(`${BASE_URL}/users`);
22-
// Fetch the JSON data from the response
2313
const data = await response.json();
24-
// Extract the list of users
2514
const users = data._links.users;
26-
27-
// Initialize an empty array to store user information
28-
let usersInfo = [];
29-
// Iterate over each user
30-
for (const user of users) {
31-
// Fetch the affiliation of the current user
15+
16+
const usersInfo = await Promise.all(users.map(async (user) => {
3217
const affiliation = await getAffiliation(user);
33-
// Push an object containing the user's title and affiliation to the usersInfo array
34-
usersInfo.push({ title: user.title, affiliation: affiliation });
35-
}
36-
// Return the array containing information of all users
18+
return { title: user.title, affiliation: affiliation };
19+
}));
20+
3721
return usersInfo;
3822
}
39-
40-
/**
41-
* Fetches the affiliation of a given user from the API.
42-
*
43-
* @async
44-
* @function getAffiliation
45-
* @param {Object} user - The user object.
46-
* @returns {Promise<string>} - A promise that resolves to the title of the user's affiliation.
47-
*/
23+
4824
async function getAffiliation(user) {
4925
// Send a GET request to the affiliations endpoint of the user
5026
const response = await fetch(user.href + "/affiliations/");
@@ -58,23 +34,18 @@ function getParticipants() {
5834
// Return the title of the affiliation
5935
return affiliation;
6036
}
61-
62-
/**
63-
* Fetches users and their affiliations, creates a list item for each user with their title and affiliation,
64-
* and appends these list items to a specified list in the document.
65-
*
66-
* @async
67-
* @function insertUsersInfoIntoDocument
68-
*/
6937
async function insertUsersInfoIntoDocument() {
7038
const usersInfo = await getUsersInfo();
7139
const usersList = document.querySelector(`#${LIST_ID} ul`);
72-
73-
for (const user of usersInfo) {
40+
const fragment = document.createDocumentFragment();
41+
42+
usersInfo.forEach(user => {
7443
const li = document.createElement("li");
7544
li.textContent = `${user.title} (${user.affiliation})`;
76-
usersList.appendChild(li);
77-
}
45+
fragment.appendChild(li);
46+
});
47+
48+
usersList.appendChild(fragment);
7849
}
7950

8051
insertUsersInfoIntoDocument();

core-aam/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
88
<script src="../common/script/utility.js" class="remove"></script>
99
<script src="../common/biblio.js" class="remove" defer></script>
10+
<script src="../common/script/participants.js" class="remove"></script>
1011

1112
<link href="../common/css/mapping-tables.css" rel="stylesheet" type="text/css" />
1213
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
@@ -130,7 +131,7 @@
130131
REC: "https://www.w3.org/TR/accname-1.2/",
131132
},
132133

133-
preProcess: [linkCrossReferences],
134+
preProcess: [linkCrossReferences, getParticipants],
134135
postProcess: [addPlatformMaintainers],
135136
xref: ["dom", "accname", "wai-aria", "infra"],
136137
};
@@ -11248,7 +11249,12 @@ <h3>Acknowledgments</h3>
1124811249
<ul id="gh-contributors">
1124911250
<!-- list of contributors will appear here, along with link to their GitHub profiles -->
1125011251
</ul>
11251-
<div data-include="../common/acknowledgements/aria-wg-active.html" data-include-replace="true"></div>
11252+
<section class="section" id="ack_group">
11253+
<h4>ARIA WG participants at the time of publication</h4>
11254+
<ul>
11255+
<!-- List of participants is injected here -->
11256+
</ul>
11257+
</section>
1125211258
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
1125311259
</section>
1125411260
</body>

dpub-aam/index.html

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
66
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
8+
<script src="../common/script/participants.js" class="remove"></script>
89
<link href="../common/css/mapping-tables.css" rel="stylesheet" type="text/css" />
910
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
1011
<script class="remove">
@@ -147,7 +148,7 @@
147148
CR: "https://www.w3.org/TR/accname-1.2/",
148149
REC: "https://www.w3.org/TR/accname-1.2/",
149150
},
150-
preProcess: [linkCrossReferences],
151+
preProcess: [linkCrossReferences, getParticipants],
151152
postProcess: [],
152153
xref: ["core-aam", "wai-aria", "dom", "infra", "accname"],
153154
lint: {
@@ -2679,25 +2680,15 @@ <h4>Other substantive changes since <a href="https://www.w3.org/TR/2017/REC-dpub
26792680
<h3>Acknowledgments</h3>
26802681

26812682
<p>The following people contributed to the development of this document:</p>
2682-
2683-
<ul>
2684-
<li>James Craig (Apple Inc.)</li>
2685-
<li>Romain Deltour (DAISY Consortium)</li>
2686-
<li>Joanmarie Diggs (Igalia)</li>
2687-
<li>Matt Garrish (DAISY Consortium)</li>
2688-
<li>George Kerscher (DAISY Consortium)</li>
2689-
<li>Peter Krautzberger (W3C Invited Experts)</li>
2690-
<li>Charles Lapierre (Benetech)</li>
2691-
<li>Aaron Leventhal (Google)</li>
2692-
<li>Daniel Montalvo (W3C Staff)</li>
2693-
<li>James Nurthen (Adobe)</li>
2694-
<li>Scott O'Hara (Microsoft Corporation)</li>
2695-
<li>Gregorio Pellegrino (Fondazione LIA)</li>
2696-
<li>Tzviya Siegman (Wiley)</li>
2697-
<li>Avneesh Singh (DAISY Consortium)</li>
2698-
<li>Valerie Young (Igalia)</li>
2683+
<ul id="gh-contributors">
2684+
<!-- List of GitHub contributors goes here -->
26992685
</ul>
2700-
2686+
<section class="section" id="ack_group">
2687+
<h4>ARIA WG participants at the time of publication</h4>
2688+
<ul>
2689+
<!-- List of participants is injected here -->
2690+
</ul>
2691+
</section>
27012692
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
27022693
</section>
27032694
</section>

dpub-aria/index.html

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
88
<script src="../common/biblio.js" class="remove" defer="defer"></script>
9+
<script src="../common/script/participants.js" class="remove"></script>
910
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
1011
<script class="remove" src="../common/script/ariaChild.js"></script>
1112
<script class="remove" src="../common/script/roleInfo.js"></script>
@@ -109,7 +110,7 @@
109110
CRD: "https://www.w3.org/TR/wai-aria-practices-1.2/",
110111
REC: "https://www.w3.org/TR/wai-aria-practices-1.2/",
111112
},
112-
preProcess: [linkCrossReferences],
113+
preProcess: [linkCrossReferences, getParticipants],
113114
postProcess: [ariaAttributeReferences],
114115
definitionMap: [],
115116
xref: ["core-aam", "accname", "wai-aria", "dom", "infra"],
@@ -4466,25 +4467,15 @@ <h3>Substantive changes since the <a href="https://www.w3.org/TR/dpub-aria-1.0/"
44664467
<h2>Acknowledgments</h2>
44674468

44684469
<p>The following people contributed to the development of this document:</p>
4469-
4470-
<ul>
4471-
<li>James Craig (Apple Inc.)</li>
4472-
<li>Romain Deltour (DAISY Consortium)</li>
4473-
<li>Joanmarie Diggs (Igalia)</li>
4474-
<li>Matt Garrish (DAISY Consortium)</li>
4475-
<li>George Kerscher (DAISY Consortium)</li>
4476-
<li>Peter Krautzberger (W3C Invited Experts)</li>
4477-
<li>Charles Lapierre (Benetech)</li>
4478-
<li>Aaron Leventhal (Google)</li>
4479-
<li>Daniel Montalvo (W3C Staff)</li>
4480-
<li>James Nurthen (Adobe)</li>
4481-
<li>Scott O'Hara (Microsoft Corporation)</li>
4482-
<li>Gregorio Pellegrino (Fondazione LIA)</li>
4483-
<li>Tzviya Siegman (Wiley)</li>
4484-
<li>Avneesh Singh (DAISY Consortium)</li>
4485-
<li>Valerie Young (Igalia)</li>
4470+
<ul id="gh-contributors">
4471+
<!-- list goes here -->
44864472
</ul>
4487-
4473+
<section class="section" id="ack_group">
4474+
<h4>ARIA WG participants at the time of publication</h4>
4475+
<ul>
4476+
<!-- List of participants is injected here -->
4477+
</ul>
4478+
</section>
44884479
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
44894480
</section>
44904481
</body>

graphics-aam/index.html

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer="defer"></script>
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
88
<script src="../common/biblio.js" class="remove" defer="defer"></script>
9+
<script src="../common/script/participants.js" class="remove"></script>
910
<link href="../common/css/mapping-tables.css" rel="stylesheet" type="text/css" />
1011
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
1112
<!--<link href="css/dpub-aam.css" rel="stylesheet" type="text/css"/>-->
@@ -172,7 +173,7 @@
172173
PR: "https://www.w3.org/TR/graphics-aam-1.0/",
173174
REC: "https://www.w3.org/TR/graphics-aam-1.0/",
174175
},
175-
preProcess: [linkCrossReferences],
176+
preProcess: [linkCrossReferences, getParticipants],
176177
postProcess: [],
177178
definitionMap: [],
178179
xref: ["core-aam", "accname", "wai-aria", "dom", "infra"],
@@ -502,23 +503,7 @@ <h4>Participants active in the SVG accessibility task force at the time of publi
502503
<section class="section" id="ack_group">
503504
<h4>Participants active in the ARIA WG at the time of publication</h4>
504505
<ul>
505-
<li>David Bolter (Mozilla Foundation)</li>
506-
<li>Michael Cooper (W3C/MIT)</li>
507-
<li>James Craig (Apple Inc.)</li>
508-
<li>Joanmarie Diggs (Igalia)</li>
509-
<li>John Foliot (Invited Expert)</li>
510-
<li>Christopher Gallelo (Microsoft Corporation)</li>
511-
<li>Bryan Garaventa (SSB BART Group)</li>
512-
<li>Jon Gunderson (University of Illinois at Urbana-Champaign)</li>
513-
<li>Matthew King (IBM Corporation)</li>
514-
<li>Dominic Mazzoni (Google, Inc.)</li>
515-
<li>Shane McCarron (Invited Expert, Aptest)</li>
516-
<li>James Nurthen (Oracle Corporation)</li>
517-
<li>Janina Sajka (Invited Expert, The Linux Foundation)</li>
518-
<li>Stefan Schnabel (SAP AG)</li>
519-
<li>Lisa Seeman (Invited Expert)</li>
520-
<li>Alexander Surkov (Mozilla Foundation)</li>
521-
<li>Jason White (Educational Testing Service)</li>
506+
<!-- List goes here -->
522507
</ul>
523508
</section>
524509
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>

graphics-aria/index.html

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer="defer"></script>
88
<script src="../common/script/resolveReferences.js" class="remove"></script>
99
<script src="../common/biblio.js" class="remove" defer="defer"></script>
10+
<script src="../common/script/participants.js" class="remove"></script>
1011
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
1112
<script class="remove" src="../common/script/ariaChild.js"></script>
1213
<script class="remove" src="../common/script/roleInfo.js"></script>
@@ -148,7 +149,7 @@
148149
REC: "https://www.w3.org/TR/wai-aria-1.1/",
149150
},
150151

151-
preProcess: [linkCrossReferences],
152+
preProcess: [linkCrossReferences, getParticipants],
152153
postProcess: [ariaAttributeReferences],
153154
definitionMap: [],
154155
xref: ["core-aam", "accname", "wai-aria"],
@@ -1169,6 +1170,7 @@ <h2>Other substantive changes since the <a href="http://www.w3.org/TR/2015/WD-gr
11691170
<section class="appendix informative section" id="acknowledgements">
11701171
<h3>Acknowledgments</h3>
11711172
<p>The following people contributed to the development of this document.</p>
1173+
<ul id="gh-contributors"></ul>
11721174
<section class="section" id="ack_svga11y">
11731175
<h4>Participants active in the SVG accessibility task force at the time of publication</h4>
11741176
<ul>
@@ -1185,23 +1187,7 @@ <h4>Participants active in the SVG accessibility task force at the time of publi
11851187
<section class="section" id="ack_group">
11861188
<h4>Participants active in the ARIA WG at the time of publication</h4>
11871189
<ul>
1188-
<li>David Bolter (Mozilla Foundation)</li>
1189-
<li>Michael Cooper (W3C/MIT)</li>
1190-
<li>James Craig (Apple Inc.)</li>
1191-
<li>Joanmarie Diggs (Igalia)</li>
1192-
<li>John Foliot (Invited Expert)</li>
1193-
<li>Christopher Gallelo (Microsoft Corporation)</li>
1194-
<li>Bryan Garaventa (SSB BART Group)</li>
1195-
<li>Jon Gunderson (University of Illinois at Urbana-Champaign)</li>
1196-
<li>Matthew King (IBM Corporation)</li>
1197-
<li>Dominic Mazzoni (Google, Inc.)</li>
1198-
<li>Shane McCarron (Invited Expert, Aptest)</li>
1199-
<li>James Nurthen (Oracle Corporation)</li>
1200-
<li>Janina Sajka (Invited Expert, The Linux Foundation)</li>
1201-
<li>Stefan Schnabel (SAP AG)</li>
1202-
<li>Lisa Seeman (Invited Expert)</li>
1203-
<li>Alexander Surkov (Mozilla Foundation)</li>
1204-
<li>Jason White (Educational Testing Service)</li>
1190+
<!-- List goes here -->
12051191
</ul>
12061192
</section>
12071193
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>

html-aam/index.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
88
<script src="../common/script/utility.js" class="remove"></script>
99
<script src="../common/biblio.js" class="remove" defer="defer"></script>
10-
10+
<script src="../common/script/participants.js" class="remove"></script>
1111
<link href="../common/css/mapping-tables.css" rel="stylesheet" type="text/css" />
1212
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
1313
<link href="css/html-aam.css" rel="stylesheet" />
@@ -72,7 +72,7 @@
7272
},
7373

7474
xref: ["HTML", "core-aam", "accname", "wai-aria", "dom", "infra"],
75-
preProcess: [linkCrossReferences],
75+
preProcess: [linkCrossReferences, getParticipants],
7676
postProcess: [fixContributors],
7777
a11y: false,
7878
};
@@ -16656,17 +16656,15 @@ <h4>Substantive changes since moving to the Web Application Working Group (forme
1665616656
<section class="appendix informative" id="acknowledgements">
1665716657
<h3>Acknowledgments</h3>
1665816658
<p>The following people contributed to the development of this document.</p>
16659-
<div class="section" id="ack_group">
16660-
<!-- left in place to ensure deep links to ID remain functional -->
16661-
<ul id="gh-contributors"></ul>
16662-
<!-- list of contributors will appear here,
16663-
along with link to their GitHub profiles -->
16664-
<!--
16665-
TODO:
16666-
Add listing of individuals who have providing meaningful
16667-
contributions through commenting that have impacted the specification.
16668-
--></div>
16669-
<div data-include="https://rawgit.com/w3c/aria/master/../common/acknowledgements/funders.html" data-include-replace="true"></div>
16659+
<ul id="gh-contributors"></ul>
16660+
<section class="section" id="ack_group">
16661+
<h4>ARIA WG participants at the time of publication</h4>
16662+
<ul>
16663+
<!-- List of participants is injected here -->
16664+
</ul>
16665+
</section>
16666+
<!-- TODO:e Include people whose comments have added value to the specification -->
16667+
<div data-include="../common//acknowledgements/funders.html" data-include-replace="true"></div>
1667016668
</section>
1667116669
</section>
1667216670
</body>

0 commit comments

Comments
 (0)