Skip to content

docs: rewrite site pages in ASD-STE100 Simplified Technical English - #581

Merged
elharo merged 7 commits into
masterfrom
ste-site
Aug 9, 2026
Merged

docs: rewrite site pages in ASD-STE100 Simplified Technical English#581
elharo merged 7 commits into
masterfrom
ste-site

Conversation

@elharo

@elharo elharo commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@elharo elharo added the documentation Improvements or additions to documentation label Aug 9, 2026
@elharo
elharo marked this pull request as ready for review August 9, 2026 12:15
@elharo
elharo requested a review from slachiewicz August 9, 2026 12:15
Comment thread src/site/fml/faq.fml Outdated
The archive parameter is a class that resides outside of this plugin,
in the Maven Archiver component. You can find the documentation for
Maven Archiver
The `archive` parameter is a class outside of this plugin. It is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add "for" so "for a class and maybe "not provided, but only used by this plugin".?

Current it reads very weird that a parameter should be a class

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rewritten

Comment thread src/site/fml/faq.fml Outdated
elharo and others added 2 commits August 9, 2026 09:06
Co-authored-by: Matthias Bünger <Bukama@users.noreply.github.com>
@slachiewicz

slachiewicz commented Aug 9, 2026

Copy link
Copy Markdown
Member

Maybe convert to markdown before?
And while reviewing please consider if we can avoid Velocity stuff so files may be simple markdown?

@elharo

elharo commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Those are separate tasks, so please file issues. Meanwhile one thing at a time and this si ready to go now. It doesn't get in the way of doing markdown later.

@elharo
elharo merged commit 70bc118 into master Aug 9, 2026
12 checks passed
@elharo
elharo deleted the ste-site branch August 9, 2026 13:36
@github-actions github-actions Bot added this to the 4.0.0-beta-2 milestone Aug 9, 2026
slachiewicz added a commit that referenced this pull request Aug 9, 2026
The FAQ answer was rewritten in #581 using Markdown backticks around
`archive`. FML is not Markdown: an <answer> body is parsed by Doxia's
XdocParser, which has no backtick handling, so the characters reach the
generated page verbatim. maven.apache.org currently shows

  The `archive` parameter is defined by the Maven Archiver library.

Use <code>, which is what the other 22 faq.fml files in the Maven estate
use for the same purpose.

The same sentence also gained a full stop in place of a comma, splitting
"defined by the Maven Archiver library, not by the Maven JAR Plugin" into
a sentence and a fragment. Fixed here since it is the same sentence and
the same origin.

Verified by building the site before and after: the only differences in
the rendered page are `archive` -> archive and library. -> library,. The
#question1 anchor is unchanged.

Generated-by: Claude Opus 5 (1M context)
slachiewicz added a commit that referenced this pull request Aug 10, 2026
doxia-converter cannot target FML usefully - the questions come out as
link-reference syntax rather than headings, the [top] back-links become
links to a nonexistent 'top' page, and the contents links lose their #
anchors. The page is written out by hand instead.

The single anchor, #question1, is a valid XML name, so Doxia serves it
unchanged and the <a id> written here matches the live URL exactly.

Verified by building the site before and after and comparing the set of
anchors the generated faq.html actually serves. Every anchor present
before is still present after, and the <head> is byte-identical, so the
title and metadata are unchanged.

This also fixes the backticks around 'archive'. FML hands an <answer>
body to Doxia's XdocParser, which has no backtick handling, so the page
has been serving the characters verbatim since the Simplified Technical
English rewrite in #581. Now that the page is Markdown the backticks are
correct and render as <code>, which is what PR #582 set out to achieve
with <code> markup - that PR becomes unnecessary if this is merged. The
full stop that split "defined by the Maven Archiver library, not by the
Maven JAR Plugin" into a sentence and a fragment is corrected here too,
since it came from the same rewrite.

site.xml needs no edit: src/site/fml/faq.fml and
src/site/markdown/faq.md both render to faq.html, so the menu entry and
the link from index.md keep working.

FML generates a [top] back-link after each answer; those are dropped
rather than hand-written. The question becomes an h3 heading instead of
a definition term. Nothing else on the page changes.

The anchors are written as <a id="...">, not <a name="...">.
maven-site-plugin 3.21.0 strips the name attribute from inline HTML, which
would silently delete every anchor on the page while the build stays green;
3.22.0 keeps it. Xhtml5BaseParser reads Attribute.ID first and only falls
back to NAME, so id= is the primary path rather than a workaround, and name
on <a> is obsolete in HTML5. Each anchor is kept on its own line: folding one
into the heading text suppresses the section's own generated id.

Generated-by: Claude Opus 5 (1M context)
slachiewicz added a commit that referenced this pull request Aug 10, 2026
doxia-converter cannot target FML usefully - the questions come out as
link-reference syntax rather than headings, the [top] back-links become
links to a nonexistent 'top' page, and the contents links lose their #
anchors. The page is written out by hand instead.

The single anchor, #question1, is a valid XML name, so Doxia serves it
unchanged and the <a id> written here matches the live URL exactly.

Verified by building the site before and after and comparing the set of
anchors the generated faq.html actually serves. Every anchor present
before is still present after, and the <head> is byte-identical, so the
title and metadata are unchanged.

This also fixes the backticks around 'archive'. FML hands an <answer>
body to Doxia's XdocParser, which has no backtick handling, so the page
has been serving the characters verbatim since the Simplified Technical
English rewrite in #581. Now that the page is Markdown the backticks are
correct and render as <code>, which is what PR #582 set out to achieve
with <code> markup - that PR becomes unnecessary if this is merged. The
full stop that split "defined by the Maven Archiver library, not by the
Maven JAR Plugin" into a sentence and a fragment is corrected here too,
since it came from the same rewrite.

site.xml needs no edit: src/site/fml/faq.fml and
src/site/markdown/faq.md both render to faq.html, so the menu entry and
the link from index.md keep working.

FML generates a [top] back-link after each answer; those are dropped
rather than hand-written. The question becomes an h3 heading instead of
a definition term. Nothing else on the page changes.

The anchors are written as <a id="...">, not <a name="...">.
maven-site-plugin 3.21.0 strips the name attribute from inline HTML, which
would silently delete every anchor on the page while the build stays green;
3.22.0 keeps it. Xhtml5BaseParser reads Attribute.ID first and only falls
back to NAME, so id= is the primary path rather than a workaround, and name
on <a> is obsolete in HTML5. Each anchor is kept on its own line: folding one
into the heading text suppresses the section's own generated id.

Generated-by: Claude Opus 5 (1M context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants