diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml
new file mode 100644
index 0000000000..58fe12d5cf
--- /dev/null
+++ b/.github/workflows/examples.yml
@@ -0,0 +1,33 @@
+name: Check examples/index.html
+
+on:
+ push:
+ branches-ignore:
+ - "dependabot/**"
+ paths:
+ - "package*.json"
+ - ".github/workflows/examples.yml"
+ - "examples/**"
+ - "scripts/reference-tables.*"
+ pull_request:
+ paths:
+ - "package*.json"
+ - ".github/workflows/examples.yml"
+ - "examples/**"
+ - "scripts/reference-tables.*"
+
+jobs:
+ examples:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Generate examples/index.html
+ run: npm run reference-tables
+
+ - name: Ensure no git changes
+ run: git diff --exit-code
diff --git a/examples/index.html b/examples/index.html
index 4e78f6c016..139b6430f7 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -131,7 +131,7 @@
Examples by Role
group |
- - Auto-Rotating Image Carousel
+ - Auto-Rotating Image Carousel with Buttons for Slide Control
- Checkbox (Two State)
- Editor Menubar
- Date Picker Spin Button
@@ -237,8 +237,8 @@ Examples by Role
radio |
|
@@ -247,8 +247,8 @@ Examples by Role
radiogroup |
|
@@ -303,7 +303,7 @@ Examples by Role
tab |
@@ -317,7 +317,7 @@ Examples by Role
| tablist |
@@ -327,7 +327,7 @@ Examples by Role
| tabpanel |
@@ -389,7 +389,7 @@ Examples By Properties and States
- Listboxes with Rearrangeable Options
- Scrollable Listbox
- Actions Menu Button Using aria-activedescendant
- - Radio Group Using aria-activedescendant
+ - Radio Group Using aria-activedescendant
|
@@ -416,8 +416,8 @@ Examples By Properties and States
- Checkbox (Two State)
- Checkbox (Mixed-State)
- Editor Menubar
- - Radio Group Using Roving tabindex
- - Radio Group Using aria-activedescendant
+ - Radio Group Using aria-activedescendant
+ - Radio Group Using Roving tabindex
- Toolbar
|
@@ -431,7 +431,7 @@ Examples By Properties and States
- Accordion
- - Auto-Rotating Image Carousel with a Tablist
+ - Auto-Rotating Image Carousel with Tabs for Slide Control
- Checkbox (Mixed-State)
- Editable Combobox With Both List and Inline Autocomplete
- Editable Combobox With List Autocomplete
@@ -537,8 +537,8 @@ Examples By Properties and States
aria-label |
- - Auto-Rotating Image Carousel
- - Auto-Rotating Image Carousel with a Tablist
+ - Auto-Rotating Image Carousel with Buttons for Slide Control
+ - Auto-Rotating Image Carousel with Tabs for Slide Control
- Checkbox (Two State)
- Editable Combobox With Both List and Inline Autocomplete
- Editable Combobox With List Autocomplete
@@ -561,8 +561,8 @@ Examples By Properties and States
- Navigation Menu Button
- Editor Menubar
- Navigation Menubar
- - Radio Group Using Roving tabindex
- - Radio Group Using aria-activedescendant
+ - Radio Group Using aria-activedescendant
+ - Radio Group Using Roving tabindex
- Date Picker Spin Button
- Table
- Tabs with Automatic Activation
@@ -597,8 +597,8 @@ Examples By Properties and States
- Actions Menu Button Using aria-activedescendant
- Actions Menu Button Using element.focus()
- Navigation Menu Button
- - Radio Group Using Roving tabindex
- - Radio Group Using aria-activedescendant
+ - Radio Group Using aria-activedescendant
+ - Radio Group Using Roving tabindex
- Date Picker Spin Button
- Tabs with Automatic Activation
- Tabs with Manual Activation
@@ -631,8 +631,8 @@ Examples By Properties and States
@@ -682,8 +682,8 @@ Examples By Properties and States
| aria-roledescription |
|
@@ -709,7 +709,7 @@ Examples By Properties and States
aria-selected |
- - Auto-Rotating Image Carousel with a Tablist
+ - Auto-Rotating Image Carousel with Tabs for Slide Control
- Editable Combobox With Both List and Inline Autocomplete
- Editable Combobox With List Autocomplete
- Editable Combobox without Autocomplete
diff --git a/package.json b/package.json
index 867b3d405f..4d28dc5ec8 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"lint:js": "npm run lint:es",
"lint:html": "npm run vnu-jar",
"lint:spelling": "cspell \"**/*.*\"",
+ "reference-tables": "node scripts/reference-tables.js",
"regression": "ava --timeout=1m",
"regression-report": "node test/util/report",
"test": "npm run lint && npm run regression",
@@ -65,6 +66,10 @@
"*.js": [
"eslint --fix",
"git add"
+ ],
+ "examples/**/*.html": [
+ "npm run reference-tables",
+ "git add examples/index.html"
]
},
"ava": {
| | |