This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new af2c5093 Refs #1880: focus rings, skip link, nav heading order and 
WCAG checks (#1888)
af2c5093 is described below

commit af2c5093eb0db0a0f2b91ef3053a72a847af0579
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 30 17:39:40 2026 +0100

    Refs #1880: focus rings, skip link, nav heading order and WCAG checks 
(#1888)
    
    - Focus: one :focus-visible ring (2px, new --color-focus-ring #c9620f,
      3:1 or more on every light and dark surface of the site) and drop the
      outline: none rules on the navbar burger, nav toggle, nav item toggle,
      copy button, page versions select and TOC links. The nav and TOC rings
      are drawn inside, as both are scroll containers.
    - The code block toolbox is hidden with opacity instead of visibility,
      so the copy button can take keyboard focus and shows when it does.
    - Skip link: "Skip to content" is the first focusable element on Hugo
      and Antora pages and targets <main id="main-content">, which every
      layout now has exactly once (section.html gains a <main>).
    - Docs nav title is a <p> instead of an <h3>, so the first heading on a
      docs page is the <h1>.
    - Link text: label the icon-only GitHub and footer social links, hide
      the decorative heading anchors in release notes from assistive tech,
      and give the release and download table headers scope="col".
    - html-validate: wcag/h30 and wcag/h63 are back on as warnings. The
      runner now prints errors in full but only a per-rule count of
      warnings, since the docs content still triggers them on most pages.
    
    
    Claude-Session: https://claude.ai/code/session_016Y4dDj46SB6GniXf8mX2U6
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .htmlvalidate.json                                 |  4 +-
 antora-ui-camel/public/_/css/site-037c96abfd.css   | 23 -----------
 antora-ui-camel/public/_/css/site-f49227923c.css   | 23 +++++++++++
 antora-ui-camel/public/_/data/rev-manifest.json    |  2 +-
 antora-ui-camel/public/_/helpers/asset.js          |  2 +-
 .../public/_/partials/footer-content.hbs           |  2 +-
 antora-ui-camel/public/_/partials/head-styles.hbs  |  2 +-
 .../public/_/partials/header-content.hbs           |  2 +-
 antora-ui-camel/public/_/partials/header.hbs       |  1 +
 antora-ui-camel/public/_/partials/main.hbs         |  2 +-
 antora-ui-camel/public/_/partials/nav-menu.hbs     |  2 +-
 antora-ui-camel/public/_/rev-manifest              |  2 +-
 antora-ui-camel/src/css/base.css                   |  8 ++++
 antora-ui-camel/src/css/doc.css                    | 12 ++++--
 antora-ui-camel/src/css/header.css                 | 30 ++++++++++++---
 antora-ui-camel/src/css/nav.css                    |  9 ++++-
 antora-ui-camel/src/css/page-versions.css          |  1 -
 antora-ui-camel/src/css/toc.css                    |  7 +++-
 antora-ui-camel/src/css/toolbar.css                |  1 -
 antora-ui-camel/src/css/vars.css                   |  5 +++
 antora-ui-camel/src/partials/footer-content.hbs    |  2 +-
 antora-ui-camel/src/partials/header-content.hbs    |  2 +-
 antora-ui-camel/src/partials/header.hbs            |  1 +
 antora-ui-camel/src/partials/main.hbs              |  2 +-
 antora-ui-camel/src/partials/nav-menu.hbs          |  2 +-
 layouts/_default/section.html                      |  2 +
 layouts/_default/single.html                       |  2 +-
 layouts/_default/taxonomy.html                     |  2 +-
 layouts/blog/list.html                             |  2 +-
 layouts/blog/single.html                           |  2 +-
 layouts/community/list.html                        |  2 +-
 layouts/community/single.html                      |  2 +-
 layouts/docs/list.html                             |  2 +-
 layouts/download/list.html                         |  2 +-
 layouts/index.html                                 |  2 +-
 layouts/partials/footer.html                       |  2 +-
 layouts/partials/header.html                       |  3 +-
 layouts/partials/releases/camel-k-runtime.html     |  4 +-
 layouts/partials/releases/camel-k.html             |  4 +-
 .../partials/releases/camel-kafka-connector.html   |  8 ++--
 layouts/partials/releases/camel-kamelets.html      |  2 +-
 layouts/partials/releases/camel-karaf.html         |  4 +-
 layouts/partials/releases/camel-quarkus.html       |  4 +-
 .../partials/releases/camel-upgrade-recipes.html   |  2 +-
 layouts/partials/releases/camel.html               |  6 +--
 layouts/partials/releases/downloads.html           |  6 +--
 layouts/partials/releases/release-table.html       |  6 +--
 layouts/projects/list.html                         |  2 +-
 layouts/release-note/single.html                   | 10 ++---
 layouts/releases/list.html                         |  2 +-
 layouts/security-advisory/single.html              |  2 +-
 layouts/security/list.html                         |  2 +-
 layouts/sitemap/sitemap.html                       |  2 +-
 layouts/tooling/list.html                          |  2 +-
 scripts/html-validate-formatter.js                 | 44 ++++++++++++++++++++++
 scripts/html-validate.js                           | 31 ++++++++++++++-
 56 files changed, 219 insertions(+), 98 deletions(-)

diff --git a/.htmlvalidate.json b/.htmlvalidate.json
index 65197070..72d73152 100644
--- a/.htmlvalidate.json
+++ b/.htmlvalidate.json
@@ -22,8 +22,8 @@
     "long-title": "off",
     "no-inline-style": "off",
     "prefer-tbody": "off",
-    "wcag/h30": "off",
     "valid-id": "off",
-    "wcag/h63": "off"
+    "wcag/h30": "warn",
+    "wcag/h63": "warn"
   }
 }
diff --git a/antora-ui-camel/public/_/css/site-037c96abfd.css 
b/antora-ui-camel/public/_/css/site-037c96abfd.css
deleted file mode 100644
index aa97e356..00000000
--- a/antora-ui-camel/public/_/css/site-037c96abfd.css
+++ /dev/null
@@ -1,23 +0,0 @@
-@layer fonts, base, chrome, content, primitives, pages, print;@layer 
fonts{@font-face{font-family:Open 
Sans;font-style:normal;font-display:swap;font-weight:300;src:local("Open Sans 
Light"),local("OpenSans-Light"),url(../font/open-sans-latin-ext-300.woff2) 
format("woff2"),url(../font/open-sans-latin-ext-300.woff) 
format("woff")}@font-face{font-family:Open 
Sans;font-style:italic;font-display:swap;font-weight:300;src:local("Open Sans 
Light Italic"),local("OpenSans-LightItalic"),url(../font/ [...]
-/*! highlight.js theme for the 2026 redesign, per SCOPE.md section 2a.
-    Replaces the GitHub light theme; --pre-background is now --color-ink.
-    Colors live in vars.css as --syntax-*, shared with chroma.css. 
*/.hljs-comment,.hljs-quote{color:#8f867a;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#e97826;font-weight:600}.hljs-attr,.hljs-literal,.hljs-number,.hljs-tag
 
.hljs-attr,.hljs-template-variable,.hljs-variable{color:#e8c87a}.hljs-doctag,.hljs-string{color:#f2a05a}.hljs-section,.hljs-selector-id,.hljs-title{color:#faf7f1;font-weight:600}.hljs-subst{font-weight:400}.hljs-class
 .hljs-title,.hljs-type{c [...]
-
-/*! Chroma theme for the 2026 redesign, per SCOPE.md section 2a.
-    Hugo highlights markdown code fences with chroma (noClasses = false in
-    config.toml), emitting <div class="highlight"><pre class="chroma">. Antora
-    uses highlight.js instead, themed in highlight.css. Both bind the same
-    --syntax-* tokens from vars.css so the two systems stay in step.
-
-    pre.chroma already picks up --pre-background and --pre-font-color from
-    doc.css, because blog content carries class="blog doc". Only token colors
-    are set here.
-
-    Chroma classes are mapped to the highlight.js class with the same meaning.
-    Classes left deliberately unstyled, inheriting the base code color, mirror
-    constructs highlight.js also leaves unstyled: .n and .nx (plain
-    identifiers), .o and .ow (operators), .p (punctuation), .w (whitespace),
-    .line and .cl (line wrappers), and .err (a lexer hiccup is not worth a
-    color). .go, generic command output, is content the reader needs rather
-    than chrome, so it stays at the base color too. */}@layer content{@media 
screen and (width >= 1025px){.doc{font-size:.88889rem;margin:0 
2rem;max-width:none;min-width:0}}.doc h1,.doc h2,.doc h3,.doc h4,.doc h5,.doc 
h6{color:#211c17;font-weight:700;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;line-height:1.3;margin:1rem
 0 
0}.doc>h1.page,.static>h1:first-child{font-size:2.33333rem;font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:.55556rem
 0 0}.doc>h1.page img{width:2r [...]
-/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License 
*/.tablist>ul li:focus-visible{outline:none}.tablist.ulist,.tablist.ulist>ul 
li{margin:0}.tablist.ulist>ul li+li{margin-left:.25em}.tabs.is-loading .tablist 
li:not(:first-child),.tabs:not(.is-loading) .tablist 
li:not(.is-selected){background-color:#f5f5f5}.tabs.is-loading .tablist 
li:first-child::after,.tabs:not(.is-loading) .tablist 
li.is-selected::after{background-color:inherit;content:"";display:block;height:3px
 [...]
\ No newline at end of file
diff --git a/antora-ui-camel/public/_/css/site-f49227923c.css 
b/antora-ui-camel/public/_/css/site-f49227923c.css
new file mode 100644
index 00000000..14e5a095
--- /dev/null
+++ b/antora-ui-camel/public/_/css/site-f49227923c.css
@@ -0,0 +1,23 @@
+@layer fonts, base, chrome, content, primitives, pages, print;@layer 
fonts{@font-face{font-family:Open 
Sans;font-style:normal;font-display:swap;font-weight:300;src:local("Open Sans 
Light"),local("OpenSans-Light"),url(../font/open-sans-latin-ext-300.woff2) 
format("woff2"),url(../font/open-sans-latin-ext-300.woff) 
format("woff")}@font-face{font-family:Open 
Sans;font-style:italic;font-display:swap;font-weight:300;src:local("Open Sans 
Light Italic"),local("OpenSans-LightItalic"),url(../font/ [...]
+/*! highlight.js theme for the 2026 redesign, per SCOPE.md section 2a.
+    Replaces the GitHub light theme; --pre-background is now --color-ink.
+    Colors live in vars.css as --syntax-*, shared with chroma.css. 
*/.hljs-comment,.hljs-quote{color:#8f867a;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#e97826;font-weight:600}.hljs-attr,.hljs-literal,.hljs-number,.hljs-tag
 
.hljs-attr,.hljs-template-variable,.hljs-variable{color:#e8c87a}.hljs-doctag,.hljs-string{color:#f2a05a}.hljs-section,.hljs-selector-id,.hljs-title{color:#faf7f1;font-weight:600}.hljs-subst{font-weight:400}.hljs-class
 .hljs-title,.hljs-type{c [...]
+
+/*! Chroma theme for the 2026 redesign, per SCOPE.md section 2a.
+    Hugo highlights markdown code fences with chroma (noClasses = false in
+    config.toml), emitting <div class="highlight"><pre class="chroma">. Antora
+    uses highlight.js instead, themed in highlight.css. Both bind the same
+    --syntax-* tokens from vars.css so the two systems stay in step.
+
+    pre.chroma already picks up --pre-background and --pre-font-color from
+    doc.css, because blog content carries class="blog doc". Only token colors
+    are set here.
+
+    Chroma classes are mapped to the highlight.js class with the same meaning.
+    Classes left deliberately unstyled, inheriting the base code color, mirror
+    constructs highlight.js also leaves unstyled: .n and .nx (plain
+    identifiers), .o and .ow (operators), .p (punctuation), .w (whitespace),
+    .line and .cl (line wrappers), and .err (a lexer hiccup is not worth a
+    color). .go, generic command output, is content the reader needs rather
+    than chrome, so it stays at the base color too. */}@layer content{@media 
screen and (width >= 1025px){.doc{font-size:.88889rem;margin:0 
2rem;max-width:none;min-width:0}}.doc h1,.doc h2,.doc h3,.doc h4,.doc h5,.doc 
h6{color:#211c17;font-weight:700;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;line-height:1.3;margin:1rem
 0 
0}.doc>h1.page,.static>h1:first-child{font-size:2.33333rem;font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:.55556rem
 0 0}.doc>h1.page img{width:2r [...]
+/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License 
*/.tablist>ul li:focus-visible{outline:none}.tablist.ulist,.tablist.ulist>ul 
li{margin:0}.tablist.ulist>ul li+li{margin-left:.25em}.tabs.is-loading .tablist 
li:not(:first-child),.tabs:not(.is-loading) .tablist 
li:not(.is-selected){background-color:#f5f5f5}.tabs.is-loading .tablist 
li:first-child::after,.tabs:not(.is-loading) .tablist 
li.is-selected::after{background-color:inherit;content:"";display:block;height:3px
 [...]
\ No newline at end of file
diff --git a/antora-ui-camel/public/_/data/rev-manifest.json 
b/antora-ui-camel/public/_/data/rev-manifest.json
index 99976b79..c6a01a19 100644
--- a/antora-ui-camel/public/_/data/rev-manifest.json
+++ b/antora-ui-camel/public/_/data/rev-manifest.json
@@ -1,5 +1,5 @@
 {
-  "css/site.css": "css/site-037c96abfd.css",
+  "css/site.css": "css/site-f49227923c.css",
   "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css",
   "img/algolia.svg": "img/algolia-f4ab98e0de.svg",
   "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg",
diff --git a/antora-ui-camel/public/_/helpers/asset.js 
b/antora-ui-camel/public/_/helpers/asset.js
index 93ec1271..8a494bdc 100644
--- a/antora-ui-camel/public/_/helpers/asset.js
+++ b/antora-ui-camel/public/_/helpers/asset.js
@@ -1,7 +1,7 @@
 'use strict'
 
 const manifest = {
-  "css/site.css": "css/site-037c96abfd.css",
+  "css/site.css": "css/site-f49227923c.css",
   "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css",
   "img/algolia.svg": "img/algolia-f4ab98e0de.svg",
   "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg",
diff --git a/antora-ui-camel/public/_/partials/footer-content.hbs 
b/antora-ui-camel/public/_/partials/footer-content.hbs
index ec2c82d4..0fa57f01 100644
--- a/antora-ui-camel/public/_/partials/footer-content.hbs
+++ b/antora-ui-camel/public/_/partials/footer-content.hbs
@@ -40,7 +40,7 @@
             </div>
             <div class="footer-icons">
                 {{#each @social}}
-                <a href="{{url}}"{{#if external}} rel="noopener noreferrer 
nofollow"{{/if}} title="{{title}}"><svg class="brand-icon" 
focusable="false"><use 
xlink:href="{{@root.uiRootPath}}/img/brand-logos-a2b35bbdec.svg#{{icon}}" 
/></svg></a>
+                <a href="{{url}}"{{#if external}} rel="noopener noreferrer 
nofollow"{{/if}} title="{{title}}" aria-label="{{title}}"><svg 
class="brand-icon" focusable="false" aria-hidden="true"><use 
xlink:href="{{@root.uiRootPath}}/img/brand-logos-a2b35bbdec.svg#{{icon}}" 
/></svg></a>
                 {{/each}}
             </div>
         </div>
diff --git a/antora-ui-camel/public/_/partials/head-styles.hbs 
b/antora-ui-camel/public/_/partials/head-styles.hbs
index e0066d45..8259c6ac 100644
--- a/antora-ui-camel/public/_/partials/head-styles.hbs
+++ b/antora-ui-camel/public/_/partials/head-styles.hbs
@@ -1,5 +1,5 @@
     <link rel="stylesheet" 
href="{{uiRootPath}}/css/vendor/docsearch-5db8a73adb.css">
-    <link rel="stylesheet" href="{{uiRootPath}}/css/site-037c96abfd.css">
+    <link rel="stylesheet" href="{{uiRootPath}}/css/site-f49227923c.css">
 {{!-- NOTE the asciinema partials are injected into the UI catalog by
       @springio/antora-extensions at Antora build time, so they only exist 
during a site build.
       Guarding on the page attribute the extension sets keeps the assets off 
pages with no cast,
diff --git a/antora-ui-camel/public/_/partials/header-content.hbs 
b/antora-ui-camel/public/_/partials/header-content.hbs
index 120ba270..0237eac9 100644
--- a/antora-ui-camel/public/_/partials/header-content.hbs
+++ b/antora-ui-camel/public/_/partials/header-content.hbs
@@ -16,7 +16,7 @@
         <div class="navbar-search">
           <div id="docsearch"></div>
         </div>
-        <a class="navbar-github" rel="noopener noreferrer nofollow" 
href="https://github.com/apache/camel/"; title="Collaborate on GitHub"><svg 
focusable="false" class="brand-icon"><use 
xlink:href="{{uiRootPath}}/img/brand-logos-a2b35bbdec.svg#github" /></svg></a>
+        <a class="navbar-github" rel="noopener noreferrer nofollow" 
href="https://github.com/apache/camel/"; title="Collaborate on GitHub" 
aria-label="Collaborate on GitHub"><svg focusable="false" class="brand-icon" 
aria-hidden="true"><use 
xlink:href="{{uiRootPath}}/img/brand-logos-a2b35bbdec.svg#github" /></svg></a>
         <a class="button dark navbar-cta" 
href="{{siteRootPath}}/download/">Download</a>
       </div>
       <button class="navbar-burger" data-target="topbar-nav" type="button" 
aria-label="Menu">
diff --git a/antora-ui-camel/public/_/partials/header.hbs 
b/antora-ui-camel/public/_/partials/header.hbs
index 8a394222..23f102a5 100644
--- a/antora-ui-camel/public/_/partials/header.hbs
+++ b/antora-ui-camel/public/_/partials/header.hbs
@@ -1,2 +1,3 @@
+<a class="skip-link" href="#main-content">Skip to content</a>
 {{> header-scripts}}
 {{> header-content}}
diff --git a/antora-ui-camel/public/_/partials/main.hbs 
b/antora-ui-camel/public/_/partials/main.hbs
index 04752de8..00f4d7ba 100644
--- a/antora-ui-camel/public/_/partials/main.hbs
+++ b/antora-ui-camel/public/_/partials/main.hbs
@@ -1,4 +1,4 @@
-<main class="article">
+<main id="main-content" class="article">
 {{> toolbar}}
   <div class="content">
 {{> article}}
diff --git a/antora-ui-camel/public/_/partials/nav-menu.hbs 
b/antora-ui-camel/public/_/partials/nav-menu.hbs
index b4e511f8..38efc0a6 100644
--- a/antora-ui-camel/public/_/partials/nav-menu.hbs
+++ b/antora-ui-camel/public/_/partials/nav-menu.hbs
@@ -2,7 +2,7 @@
 <div class="nav-panel-menu is-active">
   <nav class="nav-menu" data-panel="menu" aria-label="Topics">
     {{#with @root.page.componentVersion}}
-    <h3 class="title"><a href="{{{relativize ./url}}}">{{./title}}</a></h3>
+    <p class="title"><a href="{{{relativize ./url}}}">{{./title}}</a></p>
     {{/with}}
 {{> nav-tree navigation=this}}
   </nav>
diff --git a/antora-ui-camel/public/_/rev-manifest 
b/antora-ui-camel/public/_/rev-manifest
index 99976b79..c6a01a19 100644
--- a/antora-ui-camel/public/_/rev-manifest
+++ b/antora-ui-camel/public/_/rev-manifest
@@ -1,5 +1,5 @@
 {
-  "css/site.css": "css/site-037c96abfd.css",
+  "css/site.css": "css/site-f49227923c.css",
   "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css",
   "img/algolia.svg": "img/algolia-f4ab98e0de.svg",
   "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg",
diff --git a/antora-ui-camel/src/css/base.css b/antora-ui-camel/src/css/base.css
index 00d33d0b..f8c84844 100644
--- a/antora-ui-camel/src/css/base.css
+++ b/antora-ui-camel/src/css/base.css
@@ -47,6 +47,14 @@ a {
   text-decoration: none;
 }
 
+/* A visible ring for keyboard focus on every element. :focus-visible leaves
+   mouse clicks alone, so no component needs outline: none to hide a ring on
+   click. Rules in later layers can still restyle the ring for their surface. 
*/
+:focus-visible {
+  outline: 2px solid var(--color-focus-ring);
+  outline-offset: 2px;
+}
+
 a:hover {
   text-decoration: underline;
 }
diff --git a/antora-ui-camel/src/css/doc.css b/antora-ui-camel/src/css/doc.css
index 0f150e12..354769fd 100644
--- a/antora-ui-camel/src/css/doc.css
+++ b/antora-ui-camel/src/css/doc.css
@@ -729,9 +729,12 @@
   display: none;
 }
 
+/* Hidden with opacity, not visibility: a visibility: hidden button cannot take
+   focus, so keyboard users could never reach the copy button. */
 .doc .source-toolbox {
   display: flex;
-  visibility: hidden;
+  opacity: 0;
+  pointer-events: none;
   position: absolute;
   top: 0.25rem;
   right: 0.5rem;
@@ -745,8 +748,10 @@
   z-index: 1;
 }
 
-.doc .listingblock:hover .source-toolbox {
-  visibility: visible;
+.doc .listingblock:hover .source-toolbox,
+.doc .source-toolbox:focus-within {
+  opacity: 1;
+  pointer-events: auto;
 }
 
 .doc .source-toolbox .source-lang {
@@ -766,7 +771,6 @@
   background: none;
   border: none;
   color: inherit;
-  outline: none;
   padding: 0;
   font-size: inherit;
   line-height: inherit;
diff --git a/antora-ui-camel/src/css/header.css 
b/antora-ui-camel/src/css/header.css
index ea39ee8d..189c1e6d 100644
--- a/antora-ui-camel/src/css/header.css
+++ b/antora-ui-camel/src/css/header.css
@@ -6,6 +6,31 @@ body {
   padding-top: var(--navbar-height);
 }
 
+/* Skip link: the first focusable element on every page. Hidden until it takes
+   keyboard focus, then shown over the fixed navbar, so keyboard and screen
+   reader users can jump past the navigation to <main id="main-content">. */
+.skip-link {
+  background: var(--color-ink);
+  border: 1px solid var(--color-dark-line);
+  border-radius: calc(6 / var(--rem-base) * 1rem);
+  color: var(--color-on-dark);
+  font-weight: 600;
+  left: var(--page-padding-x, 1rem);
+  padding: calc(10 / var(--rem-base) * 1rem) calc(16 / var(--rem-base) * 1rem);
+  position: fixed;
+  top: calc(12 / var(--rem-base) * 1rem);
+  transform: translateY(calc(-100% - 2rem));
+  z-index: calc(var(--z-index-navbar) + 1);
+}
+
+.skip-link:focus {
+  transform: none;
+}
+
+.skip-link:hover {
+  text-decoration: none;
+}
+
 .navbar {
   background: var(--navbar-background);
   backdrop-filter: blur(10px);
@@ -77,7 +102,6 @@ body {
   color: var(--navbar-font-color);
   background: none;
   border: none;
-  outline: none;
   line-height: 1;
   height: var(--navbar-burger-height);
   position: relative;
@@ -94,10 +118,6 @@ body {
   padding: 0;
 }
 
-.navbar-burger:focus {
-  outline: none;
-}
-
 .navbar-burger span {
   background: var(--navbar-font-color);
   display: block;
diff --git a/antora-ui-camel/src/css/nav.css b/antora-ui-camel/src/css/nav.css
index 1939678f..8f6b0eec 100644
--- a/antora-ui-camel/src/css/nav.css
+++ b/antora-ui-camel/src/css/nav.css
@@ -128,7 +128,13 @@ html.is-clipped--nav {
   }
 }
 
-.nav-menu h3.title {
+/* The menu is a scroll container, so a ring drawn outside an item would be
+   clipped at its edges; draw it inside instead. */
+.nav-menu :focus-visible {
+  outline-offset: -2px;
+}
+
+.nav-menu > .title {
   color: var(--nav-heading-font-color);
   font-family: var(--display-font-family);
   font-size: calc(14 / var(--rem-base) * 1rem);
@@ -173,7 +179,6 @@ html.is-clipped--nav {
 .nav-item-toggle {
   background: transparent url("../img/caret.svg") no-repeat center / calc(9 / 
var(--rem-base) * 1rem);
   border: none;
-  outline: none;
   line-height: inherit;
   position: absolute;
   height: calc(24 / var(--rem-base) * 1rem);
diff --git a/antora-ui-camel/src/css/page-versions.css 
b/antora-ui-camel/src/css/page-versions.css
index 610326ac..bb5a7892 100644
--- a/antora-ui-camel/src/css/page-versions.css
+++ b/antora-ui-camel/src/css/page-versions.css
@@ -20,7 +20,6 @@
   cursor: pointer;
   font-family: var(--monospace-font-family);
   font-size: calc(12 / var(--rem-base) * 1rem);
-  outline: none;
   padding: calc(3 / var(--rem-base) * 1rem) calc(22 / var(--rem-base) * 1rem)
            calc(3 / var(--rem-base) * 1rem) calc(9 / var(--rem-base) * 1rem);
   position: relative;
diff --git a/antora-ui-camel/src/css/toc.css b/antora-ui-camel/src/css/toc.css
index e512dc5b..e5a56bec 100644
--- a/antora-ui-camel/src/css/toc.css
+++ b/antora-ui-camel/src/css/toc.css
@@ -71,7 +71,12 @@
 
 .sidebar.toc .toc-menu a {
   display: block;
-  outline: none;
+}
+
+/* The sidebar TOC scrolls, so draw the ring inside the link, where the
+   container cannot clip it. */
+.toc .toc-menu a:focus-visible {
+  outline-offset: -2px;
 }
 
 .toc .toc-menu a:not(.is-active):hover {
diff --git a/antora-ui-camel/src/css/toolbar.css 
b/antora-ui-camel/src/css/toolbar.css
index 62aea06b..c027835a 100644
--- a/antora-ui-camel/src/css/toolbar.css
+++ b/antora-ui-camel/src/css/toolbar.css
@@ -38,7 +38,6 @@
   background: url("../img/menu.svg") no-repeat 50% 47.5%;
   background-size: 49%;
   border: none;
-  outline: none;
   line-height: inherit;
   height: 2.5rem;
   padding: 0;
diff --git a/antora-ui-camel/src/css/vars.css b/antora-ui-camel/src/css/vars.css
index 791be54f..14db42f1 100644
--- a/antora-ui-camel/src/css/vars.css
+++ b/antora-ui-camel/src/css/vars.css
@@ -41,6 +41,11 @@
   --color-orange-deeper: #853c09;
   --color-orange-tint: #fbead8;
   --color-orange-glow: #f2a05a;
+  /* Keyboard focus ring. One colour for every surface, so no rule has to know
+     whether it sits on a light or a dark band: 3.41:1 or more on paper,
+     paper-2, white and orange-tint, and 3.27:1 or more on ink, ink-2, dark-2,
+     dark-3 and dark-line (WCAG 2.2 non-text contrast is 3:1). */
+  --color-focus-ring: #c9620f;
   /* Cool accent: split-complementary (167deg) to the brand orange. Breaks the
      single-hue warmth without clashing. 6.18:1 on paper, 5.72:1 on paper-2. */
   --color-teal-deep: #1f6858;
diff --git a/antora-ui-camel/src/partials/footer-content.hbs 
b/antora-ui-camel/src/partials/footer-content.hbs
index 482e9ca4..a901952a 100644
--- a/antora-ui-camel/src/partials/footer-content.hbs
+++ b/antora-ui-camel/src/partials/footer-content.hbs
@@ -40,7 +40,7 @@
             </div>
             <div class="footer-icons">
                 {{#each @social}}
-                <a href="{{url}}"{{#if external}} rel="noopener noreferrer 
nofollow"{{/if}} title="{{title}}"><svg class="brand-icon" 
focusable="false"><use 
xlink:href="{{@root.uiRootPath}}/img/brand-logos.svg#{{icon}}" /></svg></a>
+                <a href="{{url}}"{{#if external}} rel="noopener noreferrer 
nofollow"{{/if}} title="{{title}}" aria-label="{{title}}"><svg 
class="brand-icon" focusable="false" aria-hidden="true"><use 
xlink:href="{{@root.uiRootPath}}/img/brand-logos.svg#{{icon}}" /></svg></a>
                 {{/each}}
             </div>
         </div>
diff --git a/antora-ui-camel/src/partials/header-content.hbs 
b/antora-ui-camel/src/partials/header-content.hbs
index 08988dd5..62b263d3 100644
--- a/antora-ui-camel/src/partials/header-content.hbs
+++ b/antora-ui-camel/src/partials/header-content.hbs
@@ -16,7 +16,7 @@
         <div class="navbar-search">
           <div id="docsearch"></div>
         </div>
-        <a class="navbar-github" rel="noopener noreferrer nofollow" 
href="https://github.com/apache/camel/"; title="Collaborate on GitHub"><svg 
focusable="false" class="brand-icon"><use 
xlink:href="{{uiRootPath}}/img/brand-logos.svg#github" /></svg></a>
+        <a class="navbar-github" rel="noopener noreferrer nofollow" 
href="https://github.com/apache/camel/"; title="Collaborate on GitHub" 
aria-label="Collaborate on GitHub"><svg focusable="false" class="brand-icon" 
aria-hidden="true"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#github" 
/></svg></a>
         <a class="button dark navbar-cta" 
href="{{siteRootPath}}/download/">Download</a>
       </div>
       <button class="navbar-burger" data-target="topbar-nav" type="button" 
aria-label="Menu">
diff --git a/antora-ui-camel/src/partials/header.hbs 
b/antora-ui-camel/src/partials/header.hbs
index 8a394222..23f102a5 100644
--- a/antora-ui-camel/src/partials/header.hbs
+++ b/antora-ui-camel/src/partials/header.hbs
@@ -1,2 +1,3 @@
+<a class="skip-link" href="#main-content">Skip to content</a>
 {{> header-scripts}}
 {{> header-content}}
diff --git a/antora-ui-camel/src/partials/main.hbs 
b/antora-ui-camel/src/partials/main.hbs
index 04752de8..00f4d7ba 100644
--- a/antora-ui-camel/src/partials/main.hbs
+++ b/antora-ui-camel/src/partials/main.hbs
@@ -1,4 +1,4 @@
-<main class="article">
+<main id="main-content" class="article">
 {{> toolbar}}
   <div class="content">
 {{> article}}
diff --git a/antora-ui-camel/src/partials/nav-menu.hbs 
b/antora-ui-camel/src/partials/nav-menu.hbs
index b4e511f8..38efc0a6 100644
--- a/antora-ui-camel/src/partials/nav-menu.hbs
+++ b/antora-ui-camel/src/partials/nav-menu.hbs
@@ -2,7 +2,7 @@
 <div class="nav-panel-menu is-active">
   <nav class="nav-menu" data-panel="menu" aria-label="Topics">
     {{#with @root.page.componentVersion}}
-    <h3 class="title"><a href="{{{relativize ./url}}}">{{./title}}</a></h3>
+    <p class="title"><a href="{{{relativize ./url}}}">{{./title}}</a></p>
     {{/with}}
 {{> nav-tree navigation=this}}
   </nav>
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 4cab5f29..dc4ac7c4 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -1,5 +1,6 @@
 {{ partial "header.html" . }}
 
+    <main id="main-content">
     <article class="static doc {{ .Page.Section }}">
 
         {{ with .Title }}
@@ -9,5 +10,6 @@
         {{ .Content }}
 
     </article>
+    </main>
 
 {{ partial "footer.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c70463c5..6b610d98 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-    <main>
+    <main id="main-content">
         <div class="static toolbar"></div>
         <div class="content">
             <article class="static doc {{ .Page.Section }}">
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 50a1e35d..deea7575 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="blog-list" aria-labelledby="blog-title">
         <div class="blog-layout">
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index a39ddd88..fd4b2dff 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="blog-list" aria-labelledby="blog-title">
         <div class="blog-layout">
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index e5b7fbc5..ab06565c 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-    <main role="main blog">
+    <main id="main-content" role="main blog">
         {{ .Render "post" }}
     </main>
 </div>
diff --git a/layouts/community/list.html b/layouts/community/list.html
index c92b318a..7712e847 100644
--- a/layouts/community/list.html
+++ b/layouts/community/list.html
@@ -2,7 +2,7 @@
 {{- $data := .Site.Data.community }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="community" aria-labelledby="community-title">
 
diff --git a/layouts/community/single.html b/layouts/community/single.html
index c0dcb3a5..f5f04418 100644
--- a/layouts/community/single.html
+++ b/layouts/community/single.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-    <main>
+    <main id="main-content">
         <div class="static toolbar"></div>
         <div class="content community-single">
             <nav class="community-nav" aria-label="Community pages">
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index aa74eb7f..a270a41a 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -2,7 +2,7 @@
 {{- $data := index site.Data "docs-projects" }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="docs" aria-labelledby="docs-title">
 
diff --git a/layouts/download/list.html b/layouts/download/list.html
index 9a6c62b8..3791dfba 100644
--- a/layouts/download/list.html
+++ b/layouts/download/list.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <article class="download">
 
       <div class="download-hero">
diff --git a/layouts/index.html b/layouts/index.html
index 2574b775..3776dbf7 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 {{- $home := .Site.Data.home }}
 
-<main class="home">
+<main id="main-content" class="home">
 
   {{/* home-lead is the full-bleed dark band behind the header and hero. It
        reaches up under the fixed navbar, which header.css darkens on the home
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c46c0886..48df0f79 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -51,7 +51,7 @@
             </div>
             <div class="footer-icons">
                 {{ range $chrome.social }}
-                <a href="{{ .url | relURL }}"{{ if .external }} rel="noopener 
noreferrer nofollow"{{ end }} title="{{ .title }}"><svg class="brand-icon" 
focusable="false"><use href="{{ path.Join "_" (index $.Site.Data "rev-manifest" 
"img/brand-logos.svg") | relURL }}#{{ .icon }}" /></svg></a>
+                <a href="{{ .url | relURL }}"{{ if .external }} rel="noopener 
noreferrer nofollow"{{ end }} title="{{ .title }}" aria-label="{{ .title 
}}"><svg class="brand-icon" focusable="false" aria-hidden="true"><use href="{{ 
path.Join "_" (index $.Site.Data "rev-manifest" "img/brand-logos.svg") | relURL 
}}#{{ .icon }}" /></svg></a>
                 {{ end }}
             </div>
         </div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ec3c3d38..a266fe32 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -60,6 +60,7 @@
 </head>
 
 <body class="{{ if .Page.IsHome }}homepage {{ end }}article">
+    <a class="skip-link" href="#main-content">Skip to content</a>
     {{ $ctaLabel := "Download" }}
     {{ $ctaURL := "/download/" }}
     <header class="header" aria-label="Header">
@@ -78,7 +79,7 @@
                     <div class="navbar-search">
                         <div id="docsearch"></div>
                     </div>
-                    <a class="navbar-github" rel="noopener noreferrer 
nofollow" href="https://github.com/apache/camel/"; title="Collaborate on 
GitHub"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" 
(index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#github" 
/></svg></a>
+                    <a class="navbar-github" rel="noopener noreferrer 
nofollow" href="https://github.com/apache/camel/"; title="Collaborate on GitHub" 
aria-label="Collaborate on GitHub"><svg focusable="false" class="brand-icon" 
aria-hidden="true"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" 
"img/brand-logos.svg") | relURL }}#github" /></svg></a>
                     <a class="button dark navbar-cta" href="{{ $ctaURL | 
relURL }}">{{ $ctaLabel }}</a>
                 </div>
                 <button class="navbar-burger" data-target="topbar-nav" 
type="button" aria-label="Menu">
diff --git a/layouts/partials/releases/camel-k-runtime.html 
b/layouts/partials/releases/camel-k-runtime.html
index 24866a4e..b75cf51b 100644
--- a/layouts/partials/releases/camel-k-runtime.html
+++ b/layouts/partials/releases/camel-k-runtime.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-k-runtime") "Pages" $.Site.Pages 
"Version" .Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>camel-k-runtime-parent-{{ .Params.version 
}}</code> in the Git, to fetch it use:
 </p>
@@ -9,7 +9,7 @@ git clone https://github.com/apache/camel-k-runtime.git
 cd camel-k-runtime
 git checkout camel-k-runtime-parent-{{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $headers := dict }}
 {{ with os.Getenv "GITHUB_TOKEN" }}
diff --git a/layouts/partials/releases/camel-k.html 
b/layouts/partials/releases/camel-k.html
index b980a52c..f52c0b35 100644
--- a/layouts/partials/releases/camel-k.html
+++ b/layouts/partials/releases/camel-k.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-k") "Pages" $.Site.Pages "Version" 
.Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>v{{ .Params.version }}</code> in the Git, to 
fetch it use:
 </p>
@@ -9,7 +9,7 @@ git clone https://github.com/apache/camel-k.git
 cd camel-k
 git checkout v{{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $headers := dict }}
 {{ with os.Getenv "GITHUB_TOKEN" }}
diff --git a/layouts/partials/releases/camel-kafka-connector.html 
b/layouts/partials/releases/camel-kafka-connector.html
index 01b916e6..44e22a29 100644
--- a/layouts/partials/releases/camel-kafka-connector.html
+++ b/layouts/partials/releases/camel-kafka-connector.html
@@ -1,10 +1,10 @@
-<h2 id="maven"><a class="anchor" href="#maven"></a>Getting the binaries from 
Maven Central</h2>
+<h2 id="maven"><a class="anchor" href="#maven" aria-hidden="true" 
tabindex="-1"></a>Getting the binaries from Maven Central</h2>
 
 <p>We maintain a handy table linking to binary packages for the latest release 
on the <a href="/camel-kafka-connector/next/reference/index.html">connector 
list</a>.</p>
 
 <p>For this release you can use Maven Central Repository Search to find and 
download the binary packages. This search will show the packages from this 
release: <code>g:org.apache.camel.kafkaconnector AND l:package AND v:{{ 
.Params.version }}</code>, or you can follow this link to the <a 
href="https://search.maven.org/search?q=g:org.apache.camel.kafkaconnector%20AND%20l:package%20AND%20v:{{
 .Params.version }}">search results</a>.</p>
 
-<h2 id="source"><a class="anchor" href="#source"></a>Source Distribution</h2>
+<h2 id="source"><a class="anchor" href="#source" aria-hidden="true" 
tabindex="-1"></a>Source Distribution</h2>
 
 <p>
   Source distribution contains all the artifacts Apache Camel project
@@ -13,7 +13,7 @@
 
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-kafka-connector") "Pages" $.Site.Pages 
"Version" .Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with
   <code>camel-kafka-connector{{ .Params.version }}</code> in the Git, to fetch
@@ -24,7 +24,7 @@ git clone https://github.com/apache/camel-kafka-connector.git
 cd camel-kafka-connector
 git checkout camel-kafka-connector-{{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $headers := dict }}
 {{ with os.Getenv "GITHUB_TOKEN" }}
diff --git a/layouts/partials/releases/camel-kamelets.html 
b/layouts/partials/releases/camel-kamelets.html
index 4766bce5..4a6c1b50 100644
--- a/layouts/partials/releases/camel-kamelets.html
+++ b/layouts/partials/releases/camel-kamelets.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-kamelets") "Pages" $.Site.Pages 
"Version" .Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>v{{ .Params.version }}</code> in the Git, to 
fetch it use:
 </p>
diff --git a/layouts/partials/releases/camel-karaf.html 
b/layouts/partials/releases/camel-karaf.html
index aa583dff..036cc7b3 100644
--- a/layouts/partials/releases/camel-karaf.html
+++ b/layouts/partials/releases/camel-karaf.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-karaf") "Pages" $.Site.Pages "Version" 
.Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>camel-karaf-{{ .Params.version }}</code> in the 
Git, to fetch it use:
 </p>
@@ -9,7 +9,7 @@ git clone https://github.com/apache/camel-karaf.git
 cd camel-karaf
 git checkout camel-karaf-{{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $headers := dict }}
 {{ with os.Getenv "GITHUB_TOKEN" }}
diff --git a/layouts/partials/releases/camel-quarkus.html 
b/layouts/partials/releases/camel-quarkus.html
index 1547c06d..64c455ac 100644
--- a/layouts/partials/releases/camel-quarkus.html
+++ b/layouts/partials/releases/camel-quarkus.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-quarkus") "Pages" $.Site.Pages 
"Version" .Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>{{ .Params.version }}</code> in the Git, to 
fetch it use:
 </p>
@@ -9,7 +9,7 @@ git clone https://github.com/apache/camel-quarkus.git
 cd camel-quarkus
 git checkout {{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $headers := dict }}
 {{ with os.Getenv "GITHUB_TOKEN" }}
diff --git a/layouts/partials/releases/camel-upgrade-recipes.html 
b/layouts/partials/releases/camel-upgrade-recipes.html
index 2eb27621..f141fc4d 100644
--- a/layouts/partials/releases/camel-upgrade-recipes.html
+++ b/layouts/partials/releases/camel-upgrade-recipes.html
@@ -1,6 +1,6 @@
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel-upgrade-recipes") "Pages" $.Site.Pages 
"Version" .Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>
   Release is tagged with <code>{{ .Params.version }}</code> in the Git, to 
fetch it use:
 </p>
diff --git a/layouts/partials/releases/camel.html 
b/layouts/partials/releases/camel.html
index 28f0d4b2..e26c91ad 100644
--- a/layouts/partials/releases/camel.html
+++ b/layouts/partials/releases/camel.html
@@ -1,4 +1,4 @@
-<h2 id="maven"><a class="anchor" href="#maven"></a>Getting the Binaries using 
Maven</h2>
+<h2 id="maven"><a class="anchor" href="#maven" aria-hidden="true" 
tabindex="-1"></a>Getting the Binaries using Maven</h2>
 <p>To use this release in your <a href="https://maven.apache.org";>Apache 
Maven</a> <code>pom.xml</code>, import the Camel Bill of Materials (BOM) and 
then include the <code>camel-core</code> and any other components needed 
without specifying the version.</p>
 <aside aria-label="Note 1">
   <p>Replace the <code>COMPONENT</code> with the artifact outlined in the <a 
href="/components/next/">component documentation</a></p>
@@ -59,13 +59,13 @@
 
 {{ partial "releases/downloads.html" (dict "Category" (index (index 
$.Site.Data "release-categories") "camel") "Pages" $.Site.Pages "Version" 
.Params.version) }}
 
-<h2 id="git"><a class="anchor" href="#git"></a>Git tag checkout</h2>
+<h2 id="git"><a class="anchor" href="#git" aria-hidden="true" 
tabindex="-1"></a>Git tag checkout</h2>
 <p>Release is tagged with <code>camel-{{ .Params.version }}</code> in the Git, 
to fetch it use:</p>
 <pre>git clone https://github.com/apache/camel.git
 cd camel
 git checkout camel-{{ .Params.version }}</pre>
 
-<h2 id="resolved"><a class="anchor" href="#resolved"></a>Resolved issues</h2>
+<h2 id="resolved"><a class="anchor" href="#resolved" aria-hidden="true" 
tabindex="-1"></a>Resolved issues</h2>
 <p>Here is a list of all the issues that have been resolved for this 
release</p>
 {{ $issues_json := getJSON 
"https://issues.apache.org/jira/rest/api/latest/search?jql=fixVersion="; (string 
.Params.jiraVersionId) "&fields=issuetype,summary&maxResults=1000" }}
 {{ $issues := dict }}
diff --git a/layouts/partials/releases/downloads.html 
b/layouts/partials/releases/downloads.html
index ab31fc3a..2bb5558a 100644
--- a/layouts/partials/releases/downloads.html
+++ b/layouts/partials/releases/downloads.html
@@ -105,14 +105,14 @@
 {{/* subsitute as we did the grouping above */}}
 {{ $versions = $versions_grouped }}
 
-<h2 id="{{ $.Category.id }}"><a class="anchor" href="#{{ $.Category.id 
}}"></a>{{ $.Category.name }}</h2>
+<h2 id="{{ $.Category.id }}"><a class="anchor" href="#{{ $.Category.id }}" 
aria-hidden="true" tabindex="-1"></a>{{ $.Category.name }}</h2>
 
 <div class="table-wrapper">
 <table class="tableblock frame-all grid-all stretch">
     <thead>
         <tr>
-            <th>Download</th>
-            <th>Signature and checksum</th>
+            <th scope="col">Download</th>
+            <th scope="col">Signature and checksum</th>
         </tr>
     </thead>
 
diff --git a/layouts/partials/releases/release-table.html 
b/layouts/partials/releases/release-table.html
index f839734c..18ac1417 100644
--- a/layouts/partials/releases/release-table.html
+++ b/layouts/partials/releases/release-table.html
@@ -1,9 +1,9 @@
 <table class="releases-table" aria-label="Releases by release date">
   <thead>
     <tr>
-      <th class="releases-col-version">Version</th>
-      <th class="releases-col-date">Release date</th>
-      <th>Description</th>
+      <th scope="col" class="releases-col-version">Version</th>
+      <th scope="col" class="releases-col-date">Release date</th>
+      <th scope="col">Description</th>
     </tr>
   </thead>
   <tbody>
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index afa918b8..52b87b05 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -2,7 +2,7 @@
 {{- $data := .Site.Data.projects }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="projects" aria-labelledby="projects-title">
 
diff --git a/layouts/release-note/single.html b/layouts/release-note/single.html
index 753d5f5b..13a7e13f 100644
--- a/layouts/release-note/single.html
+++ b/layouts/release-note/single.html
@@ -1,20 +1,20 @@
 {{ partial "header.html" . }}
-<main>
+<main id="main-content">
   <article class="static doc release">
-    <h1 id="release"><a class="anchor" href="#release"></a>Apache 
{{.Params.category}} {{ .Params.version }} Release</h1>
-    <h2 id="whats_new"><a class="anchor" href="#whats_new"></a>New and 
Noteworthy</h2>
+    <h1 id="release"><a class="anchor" href="#release" aria-hidden="true" 
tabindex="-1"></a>Apache {{.Params.category}} {{ .Params.version }} Release</h1>
+    <h2 id="whats_new"><a class="anchor" href="#whats_new" aria-hidden="true" 
tabindex="-1"></a>New and Noteworthy</h2>
     {{ .Content }}
 
     {{- partial "security/fixed-in-release.html" . }}
 
     {{ with .Params.jdk }}
-      <h2 id="jdk"><a class="anchor" href="#jdk"></a>Supported Java 
version</h2>
+      <h2 id="jdk"><a class="anchor" href="#jdk" aria-hidden="true" 
tabindex="-1"></a>Supported Java version</h2>
       This version supports Java {{ delimit . ", " " and " }}.
     {{ end }}
 
     {{ partial (printf "releases/%s.html" (lower (replace .Params.category " " 
"-"))) . }}
 
-    <h2 id="keys"><a class="anchor" href="#keys"></a>Keys</h2>
+    <h2 id="keys"><a class="anchor" href="#keys" aria-hidden="true" 
tabindex="-1"></a>Keys</h2>
     <p>You can verify your download by following these <a 
href="http://www.apache.org/info/verification.html";>procedures</a> and using 
these <a href="https://www.apache.org/dist/camel/KEYS";>KEYS</a>.</p>
 
   </article>
diff --git a/layouts/releases/list.html b/layouts/releases/list.html
index 0f41401c..6f52995a 100644
--- a/layouts/releases/list.html
+++ b/layouts/releases/list.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <article class="static releases" aria-labelledby="releases-title">
       <aside class="releases-rail">
         <div class="releases-rail-heading">Projects</div>
diff --git a/layouts/security-advisory/single.html 
b/layouts/security-advisory/single.html
index d06d86fb..f32a67f3 100644
--- a/layouts/security-advisory/single.html
+++ b/layouts/security-advisory/single.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <article class="advisory" aria-labelledby="advisory-title">
       <a class="advisory-back" href="{{ "security/" | relURL }}">&larr; 
Security advisories</a>
 
diff --git a/layouts/security/list.html b/layouts/security/list.html
index d3cb0d41..dae07bf3 100644
--- a/layouts/security/list.html
+++ b/layouts/security/list.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-    <main>
+    <main id="main-content">
         <article class="security">
 
             <div class="security-hero">
diff --git a/layouts/sitemap/sitemap.html b/layouts/sitemap/sitemap.html
index 31dbae52..50e54b4e 100644
--- a/layouts/sitemap/sitemap.html
+++ b/layouts/sitemap/sitemap.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 <div class="body">
-    <main>
+    <main id="main-content">
         <div class="content">
             <article class="static doc sitemap"> 
                 <h1 class="page">{{ .Title }} </h1>
diff --git a/layouts/tooling/list.html b/layouts/tooling/list.html
index 7ad40cbc..98ff8098 100644
--- a/layouts/tooling/list.html
+++ b/layouts/tooling/list.html
@@ -3,7 +3,7 @@
 {{- $tui := .Resources.GetMatch "camel-tui-overview.png" }}
 
 <div class="body">
-  <main>
+  <main id="main-content">
     <div class="content">
       <article class="doc static tooling" aria-label="Tooling">
         <div class="tooling-main">
diff --git a/scripts/html-validate-formatter.js 
b/scripts/html-validate-formatter.js
new file mode 100644
index 00000000..ed3e5e7b
--- /dev/null
+++ b/scripts/html-validate-formatter.js
@@ -0,0 +1,44 @@
+// html-validate formatter used by scripts/html-validate.js (check:html).
+//
+// Errors are printed in full, in the usual stylish format. Warnings are only
+// counted: rules set to "warn" in .htmlvalidate.json (wcag/h30, wcag/h63) 
still
+// fire on every page of the docs content, and printing each one would add
+// hundreds of thousands of lines to the CI log. Instead the counts go on one
+// marker line, which the runner sums across shards and prints as a summary.
+
+const { formatterFactory } = require('html-validate');
+
+const MARKER = '@@check-html-warnings ';
+const stylish = formatterFactory('stylish');
+
+module.exports = (results) => {
+  const warnings = {};
+  const errors = [];
+
+  for (const result of results) {
+    const seen = new Set();
+    const errorMessages = [];
+    for (const message of result.messages) {
+      if (message.severity >= 2) {
+        errorMessages.push(message);
+        continue;
+      }
+      const count = (warnings[message.ruleId] ??= { messages: 0, files: 0 });
+      count.messages++;
+      if (!seen.has(message.ruleId)) {
+        seen.add(message.ruleId);
+        count.files++;
+      }
+    }
+    if (errorMessages.length) {
+      errors.push({ ...result, messages: errorMessages, errorCount: 
errorMessages.length, warningCount: 0 });
+    }
+  }
+
+  const out = [];
+  if (errors.length) out.push(stylish(errors));
+  out.push(MARKER + JSON.stringify(warnings));
+  return out.join('\n');
+};
+
+module.exports.MARKER = MARKER;
diff --git a/scripts/html-validate.js b/scripts/html-validate.js
index 9bc162ee..fc266c31 100644
--- a/scripts/html-validate.js
+++ b/scripts/html-validate.js
@@ -33,6 +33,10 @@ const localBin = path.join(
 );
 const binary = fs.existsSync(localBin) ? localBin : 'html-validate';
 
+// Prints errors in full and only counts warnings; see the formatter for why.
+const formatter = path.join(__dirname, 'html-validate-formatter.js');
+const { MARKER } = require(formatter);
+
 const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'check-html-'));
 process.on('exit', () => fs.rmSync(scratch, { recursive: true, force: true }));
 
@@ -79,7 +83,7 @@ const runShard = (files, index) =>
       resolve({ code, out });
     };
 
-    const child = spawn(binary, files, {
+    const child = spawn(binary, ['--formatter', formatter, ...files], {
       shell: process.platform === 'win32',
       stdio: ['ignore', fd, fd]
     });
@@ -115,6 +119,23 @@ const runShard = (files, index) =>
   let next = 0;
   let failed = 0;
   let done = 0;
+  const warnings = {};
+
+  // Takes the formatter's warning counts off a shard's report and adds them to
+  // the totals, returning the rest of the report for printing.
+  const takeWarnings = (out) =>
+    out
+      .split('\n')
+      .filter((line) => {
+        if (!line.startsWith(MARKER)) return true;
+        for (const [rule, count] of 
Object.entries(JSON.parse(line.slice(MARKER.length)))) {
+          const total = (warnings[rule] ??= { messages: 0, files: 0 });
+          total.messages += count.messages;
+          total.files += count.files;
+        }
+        return false;
+      })
+      .join('\n');
 
   // A clean run prints nothing between the header and the summary, which on CI
   // is around six minutes of dead air and looks identical to a hung job. 
Report
@@ -135,7 +156,8 @@ const runShard = (files, index) =>
       const index = next++;
       const { code, out } = await runShard(shards[index], index);
       done++;
-      if (out) process.stdout.write(out);
+      const report = takeWarnings(out).trim();
+      if (report) process.stdout.write(report + '\n');
       if (code !== 0) failed++;
     }
   };
@@ -144,6 +166,11 @@ const runShard = (files, index) =>
   clearInterval(ticker);
 
   const elapsed = ((Date.now() - started) / 1000).toFixed(1);
+  for (const [rule, total] of Object.entries(warnings).sort()) {
+    process.stdout.write(
+      `check:html: warning ${rule}: ${total.messages} in ${total.files} files 
(not printed; run html-validate on a file to see them)\n`
+    );
+  }
   process.stdout.write(`check:html: ${files.length} files in ${elapsed}s\n`);
 
   // Set exitCode rather than calling process.exit(): a failing run writes 
tens of

Reply via email to