You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/10 00:41:02 UTC
(maven-shade-plugin) branch faq-anchor-id created (now 764a7a7)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch faq-anchor-id
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
at 764a7a7 Use <a id> rather than <a name> for the FAQ anchors
This branch includes the following new commits:
new 764a7a7 Use <a id> rather than <a name> for the FAQ anchors
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch faq-anchor-id
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
commit 764a7a7d053a2b77e7584c2d572007d3a0f4be20
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Aug 10 02:40:57 2026 +0200
Use <a id> rather than <a name> for the FAQ anchors
Follow-up to the FML to Markdown conversion.
maven-site-plugin 3.21.0 strips the name= attribute from an inline HTML
anchor; 3.22.0 keeps it. On 3.21.0 every anchor on the page is therefore
lost silently, on a green build. This repo builds with a parent that
pulls 3.22.0, so the pages are correct today, but <a id> is the form
that survives either way - and Xhtml5BaseParser reads Attribute.ID
first, falling back to NAME only if it is absent, so id= is the primary
path. name= on <a> is obsolete in HTML5 besides.
Each anchor stays on its own line; folding one into the heading text
suppresses the section's own generated id.
Verified by rendering faq.html before and after: the anchor set is
unchanged and still a superset of what the original FML page served,
the <head> is byte-identical, the visible text matches the FML original
word for word, and the site log reports no "used more than once"
warning.
Generated-by: Claude Opus 5 (1M context)
---
src/site/markdown/faq.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
index b061b2d..a96086a 100644
--- a/src/site/markdown/faq.md
+++ b/src/site/markdown/faq.md
@@ -21,13 +21,13 @@ specific language governing permissions and limitations
under the License.
-->
-<a name="top"></a>
+<a id="top"></a>
# Frequently Asked Questions
1. [Why Does My Second Shade Include The Results Of The First Execution?](#two-executions)
-<a name="two-executions"></a>
+<a id="two-executions"></a>
### Why Does My Second Shade Include The Results Of The First Execution?