diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ecc460f38..a8462deb57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,41 @@ jobs: - name: Check clippy run: cargo clippy --workspace -- -Dwarnings + + accessibility-linting: + needs: [generate-errors, generate-wasm-examples, generate-community, generate-assets] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install NPM + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install Google Chrome + run: | + sudo apt-get install -y chromium-browser + which chromium-browser + chromium-browser --version + + - name: Install Zola + uses: taiki-e/install-action@v2 + with: + tool: zola@0.18.0 + + - name: Install Pa11y-CI and Wait-on + run: | + npm install pa11y-ci wait-on + node node_modules/puppeteer/install.js + + - name: Run Pa11y-CI + run: | + echo -e "{\n \"defaults\": {\n \"chromeLaunchConfig\": {\n \"executablePath\": \"/usr/bin/chromium-browser\"\n }\n }\n}" > .pa11yci + zola serve & + npx wait-on http://127.0.0.1:1111 + npx pa11y-ci --sitemap http://127.0.0.1:1111/sitemap.xml --sitemap-exclude 'faq' typos: runs-on: ubuntu-latest diff --git a/content/learn/migration-guides/0.12-to-0.13.md b/content/learn/migration-guides/0.12-to-0.13.md index 498592e584..c0cb476f48 100644 --- a/content/learn/migration-guides/0.12-to-0.13.md +++ b/content/learn/migration-guides/0.12-to-0.13.md @@ -102,7 +102,7 @@ This means users who want to migrate their .meta files will have to add the `inc - For `add_texture` you need to wrap your `AssetId` in `Some` -- `finish` now returns the atlas texture image directly instead of a handle. Provide the atlas texture to `add` on Assets to get a Handle +- `finish` now returns the atlas texture image directly instead of a handle. Provide the atlas texture to `add` on `Assets` to get a `Handle` ### [Remove the ability to ignore global volume](https://github.com/bevyengine/bevy/pull/11092) diff --git a/content/news/2020-08-10-introducing-bevy/index.md b/content/news/2020-08-10-introducing-bevy/index.md index f31774948d..53bcb6ca3c 100644 --- a/content/news/2020-08-10-introducing-bevy/index.md +++ b/content/news/2020-08-10-introducing-bevy/index.md @@ -1197,4 +1197,4 @@ If any of this sounds interesting to you, I encourage you to check out [Bevy on I want Bevy to become a vibrant developer community ... thats actually why I chose the name! A Bevy is a group of birds, just like we are a group of game developers. Join the Bevy! - +The Bevy logo diff --git a/content/news/2020-08-19-scaling-bevy/index.md b/content/news/2020-08-19-scaling-bevy/index.md index c4fd6b5241..e51d0a79bc 100644 --- a/content/news/2020-08-19-scaling-bevy/index.md +++ b/content/news/2020-08-19-scaling-bevy/index.md @@ -16,31 +16,31 @@ First, I want to take a moment to highlight just how wild the last week has been

3rd most popular /r/rust post of all time

- + The Introducing Bevy article at third place in Reddit's top rankings

#2 on Hacker News

- + The Introducing Bevy article at second place on Hacker News' top stories
-

2,200 GitHub Stars

- +

2,200 Github Stars

+ A star with the word 'unstar' next to it and a counter saying 2.2k to the right

26 contributors

- + A list of Bevy engine contributors profile pictures and the number 26

644 Discord Users

- + Text saying

37% of the way to making my full time Bevy development sustainable

- + The GitHub sponsors page for cart where you can donate to him

A truly awesome number of community-developed plugins, games, and apps

- + A page of awesome creations made with Bevy
diff --git a/content/news/2020-11-03-bevy-0.3/index.md b/content/news/2020-11-03-bevy-0.3/index.md index c4c0840066..4cec990b18 100644 --- a/content/news/2020-11-03-bevy-0.3/index.md +++ b/content/news/2020-11-03-bevy-0.3/index.md @@ -43,7 +43,7 @@ This was a massive group effort that spanned multiple projects: Bevy can now run on iOS! - +A beige cube on a green plane running on an iOS emulator You can try out the [Bevy iOS example](https://github.com/bevyengine/bevy/tree/v0.3.0/examples/ios) by following the [instructions here](https://github.com/bevyengine/bevy/tree/v0.3.0/examples#ios). This one is also hot off the presses: some features will work and others probably won't. diff --git a/content/news/2021-08-10-bevys-first-birthday/index.md b/content/news/2021-08-10-bevys-first-birthday/index.md index 5d50066040..785bbc5442 100644 --- a/content/news/2021-08-10-bevys-first-birthday/index.md +++ b/content/news/2021-08-10-bevys-first-birthday/index.md @@ -260,4 +260,4 @@ I'm looking forward to spending the next year with you all! \- [@cart](https://github.com/cart/) - +The Bevy logo diff --git a/content/news/2022-08-10-bevys-second-birthday/index.md b/content/news/2022-08-10-bevys-second-birthday/index.md index daf1e201bd..3ea448ef4d 100644 --- a/content/news/2022-08-10-bevys-second-birthday/index.md +++ b/content/news/2022-08-10-bevys-second-birthday/index.md @@ -211,4 +211,4 @@ This year is going to be a big one for Bevy. I'm looking forward to spending it \- [@cart](https://github.com/cart/) - +The Bevy logo diff --git a/content/news/2023-03-06-bevy-0.10/index.md b/content/news/2023-03-06-bevy-0.10/index.md index 674dd677ee..5ce66d1370 100644 --- a/content/news/2023-03-06-bevy-0.10/index.md +++ b/content/news/2023-03-06-bevy-0.10/index.md @@ -606,27 +606,27 @@ let's double the `emissive` value of each cube.
1
- + First image of bloom; from Bevy 0.9
2
- + Second image of bloom; from Bevy 0.9 with a tonemapper
3
- + Third image of bloom; from Bevy 0.10
4
- + Fourth image of bloom; from Bevy 0.10 with doubled emissive values
5
- + Fifth image of bloom; from Bevy 0.10 with additive compositing
6
- + The Bevy bloom 3D example
diff --git a/content/news/2023-08-10-bevys-third-birthday/index.md b/content/news/2023-08-10-bevys-third-birthday/index.md index d7acd68cf9..e19085b7eb 100644 --- a/content/news/2023-08-10-bevys-third-birthday/index.md +++ b/content/news/2023-08-10-bevys-third-birthday/index.md @@ -231,4 +231,4 @@ I'm looking forward to spending another year building Bevy with you all! \- [@cart](https://github.com/cart/) - +The Bevy logo diff --git a/content/news/2023-09-21-community-reflection-on-bevys-third-year/index.md b/content/news/2023-09-21-community-reflection-on-bevys-third-year/index.md index a81186d525..1f5d6768b4 100644 --- a/content/news/2023-09-21-community-reflection-on-bevys-third-year/index.md +++ b/content/news/2023-09-21-community-reflection-on-bevys-third-year/index.md @@ -56,4 +56,4 @@ Here is to another year of Bevy! \- [@cart](https://github.com/cart/) - +The Bevy logo diff --git a/sass/_utils.scss b/sass/_utils.scss index bc423240f4..883c5b5654 100644 --- a/sass/_utils.scss +++ b/sass/_utils.scss @@ -30,7 +30,7 @@ body:not(.show_drafts) .public_draft:not(.active_draft) { display: none !important; } -.public_draft > div > a { +.public_draft>div>a { color: var(--warning-color) !important; } @@ -63,7 +63,7 @@ h6 { } } -.public_draft > div > a { +.public_draft>div>a { color: var(--warning-color) !important; } diff --git a/sass/components/_syntax-theme.scss b/sass/components/_syntax-theme.scss index 37f7773c4d..bbea504695 100644 --- a/sass/components/_syntax-theme.scss +++ b/sass/components/_syntax-theme.scss @@ -283,6 +283,7 @@ div.incorrect-image { .z-meta.z-annotation.z-parameters.z-rust, .z-variable.z-function.z-rust { + .z-begin, .z-end, .z-punctuation { diff --git a/sass/pages/_migration_guide.scss b/sass/pages/_migration_guide.scss index f07961b2cf..cf13a17de6 100644 --- a/sass/pages/_migration_guide.scss +++ b/sass/pages/_migration_guide.scss @@ -1,4 +1,5 @@ .migration-guide { + h1, h2, h3 { @@ -13,7 +14,7 @@ } } - h2 + h3 { + h2+h3 { margin-top: 0; padding-top: 0; border-top: 0; diff --git a/templates/assets.html b/templates/assets.html index 0e667aa8c3..6c8c78f789 100644 --- a/templates/assets.html +++ b/templates/assets.html @@ -11,10 +11,11 @@ + placeholder="Search (ie: 0.16 MIT)" + aria-label="Search (ie: 0.16 MIT)" />
- + diff --git a/templates/layouts/examples.html b/templates/layouts/examples.html index b6d43c63b7..3864316fe6 100644 --- a/templates/layouts/examples.html +++ b/templates/layouts/examples.html @@ -12,7 +12,8 @@ + placeholder="Search Example" + aria-label="Search Example" />
{% for subsection in section.subsections %} {% set section = get_section(path=subsection) %}