git: 7d2b482d62 - main - Fix HTML validation errors in docs site header - menu ids

From: Vladlen Popolitov <vladlen_at_FreeBSD.org>
Date: Sun, 27 Sep 2026 15:46:10 UTC
The branch main has been updated by vladlen:

URL: https://cgit.FreeBSD.org/doc/commit/?id=7d2b482d62d145b346015ae7289fd5644ccf86fd

commit 7d2b482d62d145b346015ae7289fd5644ccf86fd
Author:     Vladlen Popolitov <vladlen@FreeBSD.org>
AuthorDate: 2026-09-27 15:46:03 +0000
Commit:     Vladlen Popolitov <vladlen@FreeBSD.org>
CommitDate: 2026-09-27 15:46:03 +0000

    Fix HTML validation errors in docs site header - menu ids
    
    Same fix as 10633eb for the website header, applied to the
    documentation header.
    
    Ids like about, download, documentation and community in the
    documentation top menu collide with the same ids inside documents,
    breaking validation and <label for=...>. Prefix them with the
    section name (e.g. header-community-title).
    
    Differential Revision: https://reviews.freebsd.org/D60059
    PR: 297509
---
 .../themes/beastie/layouts/_partials/site-header.html    | 16 ++++++++--------
 .../themes/beastie/layouts/_partials/trademarks.html     |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/documentation/themes/beastie/layouts/_partials/site-header.html b/documentation/themes/beastie/layouts/_partials/site-header.html
index aa8c24f5cf..9705711c7a 100755
--- a/documentation/themes/beastie/layouts/_partials/site-header.html
+++ b/documentation/themes/beastie/layouts/_partials/site-header.html
@@ -16,8 +16,8 @@
     <nav>
       <ul class="menu">
         <li class="menu-item">
-          <input id="about" type="checkbox" />
-          <label class="menu-item-description" for="about">
+          <input id="header-about-title" type="checkbox" />
+          <label class="menu-item-description" for="header-about-title">
             {{ i18n "h-about" }}
             <i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
           </label>
@@ -29,8 +29,8 @@
           </ul>
         </li>
         <li class="menu-item">
-          <input id="download" type="checkbox" />
-          <label class="menu-item-description" for="download">
+          <input id="header-download-title" type="checkbox" />
+          <label class="menu-item-description" for="header-download-title">
             {{ i18n "h-get-freebsd" }}
             <i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
           </label>
@@ -42,8 +42,8 @@
           </ul>
         </li>
         <li class="menu-item">
-          <input id="documentation" type="checkbox" />
-          <label class="menu-item-description" for="documentation">
+          <input id="header-documentation-title" type="checkbox" />
+          <label class="menu-item-description" for="header-documentation-title">
             {{ i18n "h-documentation" }}
             <i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
           </label>
@@ -60,8 +60,8 @@
           </ul>
         </li>
         <li class="menu-item">
-          <input id="community" type="checkbox" />
-          <label class="menu-item-description" for="community">
+          <input id="header-community-title" type="checkbox" />
+          <label class="menu-item-description" for="header-community-title">
             {{ i18n "h-community" }}
             <i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
           </label>
diff --git a/documentation/themes/beastie/layouts/_partials/trademarks.html b/documentation/themes/beastie/layouts/_partials/trademarks.html
index 2266c2a2db..d39f0813a4 100644
--- a/documentation/themes/beastie/layouts/_partials/trademarks.html
+++ b/documentation/themes/beastie/layouts/_partials/trademarks.html
@@ -1,5 +1,5 @@
 <div class="legalnotice">
-  <a id="trademarks"></a>
+  <a id="legalnotice-trademarks-list"></a>
   <details>
     <summary>{{ i18n "trademarks" }}</summary>
     {{ $trademarks := . }}