GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Convert the remaining site documentation from APT to Markdown by slachiewicz · Pull Request #3422 · apache/maven-surefire

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Aug 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

APT is a dead format; Doxia 2 keeps it only for backwards compatibility. These 35 pages were the last APT sources in this repository.

Two commits, deliberately kept apart:

  1. Rename the site documents ahead of converting them — pure git mv, no content change.
  2. Convert the site documents from APT to Markdown — the conversion.

Please merge or rebase, rather than squash. Git's rename detection is similarity-based, so squashing collapses the rename back into a delete plus an add and git log --follow stops at this PR. Review is easiest on the second commit alone.

What was converted

Module Pages
maven-surefire-plugin 27 (index, usage, api, developing, history + 22 under examples/)
maven-surefire-report-plugin 7 (index, usage + 5 under examples/)
surefire-api 1 (index)

How it was verified

The site was generated before and after the change and the rendered HTML compared page by page — 150 pages — on three axes: document title, author and date metadata plus visible text and every link target; the block structure (<pre> classes, headings, tables, lists, figures); and the heading anchors, so that every #Fragment cross-reference still resolves.

maven-failsafe-plugin is in that set on purpose: it renders maven-surefire-plugin's site sources from the site-source artifact, so every #if on ${project.artifactId} has to keep working for both plugins. Each conditional page was converted once per branch and the two results merged back together, so both renderings are reproduced exactly.

All 150 pages come out identical except for the two intended changes below, plus the project-info reports (dependencies, dependency-convergence) and the Surefire test report, which differ only because of how the two comparison builds were invoked.

Things the converter cannot get right on its own

  • Pages that still need Velocity keep the .vm suffix. In such a file ## opens a Velocity line comment and would silently swallow the heading, so level two headings use a setext underline and deeper levels are wrapped in #[[### ...]]#. The %{toc} on examples/system-properties still lists all 5 entries.
  • api.md, developing.md, examples/cwd.md and the report plugin's examples/linking-to-tests.md contain no Velocity at all, so they drop the .vm suffix.
  • References the page means to show rather than resolve are written ${esc.d}{...}. A backslash only unescapes when the name happens not to resolve in the document's context — ${project.build.outputDirectory} does resolve, and was being substituted with a real path.
  • Fenced blocks carry a language. The Markdown parser boxes a block only when the info string is non-empty, so a bare fence would quietly downgrade the boxed samples to plain <pre> — 163 boxed blocks before, 163 after. The one APT block that was deliberately unboxed, in examples/toolchains, keeps a bare fence.
  • APT figures became <figure>/<figcaption> so captions stay visible on the page instead of disappearing into an alt attribute.
  • A few bold runs and literal asterisks needed escaping to survive as text.

Intended changes

Both follow from a Markdown table needing a header row where the APT table had none:

  • surefire-api/index.md — the definitions table gains Term and Definition headings.
  • table-bordered is dropped from tables (history, examples/toolchains, surefire-api/index) — the Markdown sink does not emit that class. Not controllable from the source document.

Only master is touched; surefire-3.5.x is deliberately left alone.

Generated-by: Claude Opus 5

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slachiewicz
Rename the site documents ahead of converting them
6e8294f
Doing the rename on its own keeps git log --follow working across the
conversion.  Please merge or rebase this branch rather than squashing it.

Generated-by: Claude Opus 5
@slachiewicz slachiewicz added documentation Improvements or additions to documentation master labels Aug 9, 2026
@slachiewicz
slachiewicz force-pushed the apt-to-markdown branch from e9f88ae to 5b057d3 Compare August 9, 2026 23:20
@slachiewicz
Convert the site documents from APT to Markdown
ee56e71
APT is a dead format; Doxia 2 keeps it only for backwards compatibility.
These 35 pages were the last APT sources in the repository.

Converted with doxia-converter, then verified by building the site before
and after and diffing the generated HTML, page by page, for the four
modules affected: maven-surefire-plugin, maven-surefire-report-plugin,
surefire-api and maven-failsafe-plugin.  Failsafe matters here because it
renders maven-surefire-plugin's site sources from the site-source
artifact, so every #if on ${project.artifactId} had to keep working for
both plugins; each conditional page was converted once per branch and the
two results merged back together.

Notes on the parts the converter cannot get right on its own:

* Pages that still need Velocity keep the .vm suffix.  In such a file
  '##' opens a Velocity line comment, so level two headings use a setext
  underline instead.
* api.md, developing.md, examples/cwd.md and the report plugin's
  examples/linking-to-tests.md contain no Velocity at all and drop the
  suffix.
* References the page means to show rather than resolve are written
  ${esc.d}{...}; a backslash only unescapes when the name happens not to
  resolve in the document's context.
* APT figures become <figure>/<figcaption> so the caption stays visible
  on the page rather than disappearing into an alt attribute.
* Fenced blocks carry a language.  The Markdown parser boxes a block only
  when the info string is non-empty, so a bare fence would quietly turn
  the 163 boxed samples into plain <pre>.  The one APT block that was
  deliberately unboxed, in examples/toolchains, keeps a bare fence.

Two intended changes, both because a Markdown table must have a header
row and the APT table in surefire-api/index.md had none: that table gains
Term and Definition headings, and tables lose the table-bordered class on
history, examples/toolchains and surefire-api/index.

Generated-by: Claude Opus 5
@slachiewicz
slachiewicz force-pushed the apt-to-markdown branch from 5b057d3 to ee56e71 Compare August 9, 2026 23:40
@slachiewicz slachiewicz mentioned this pull request Aug 10, 2026
Convert the FAQ from FML to Markdown #3423
Merged
@slachiewicz
slachiewicz marked this pull request as ready for review August 10, 2026 00:06
@slachiewicz
slachiewicz merged commit 1362aea into master Aug 10, 2026
17 of 18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz deleted the apt-to-markdown branch August 10, 2026 00:06
@github-actions github-actions Bot added this to the 3.6.0-M2 milestone Aug 10, 2026
@github-actions github-actions Bot assigned slachiewicz Aug 10, 2026
@slachiewicz slachiewicz mentioned this pull request Aug 10, 2026
Restore the table borders lost in the APT conversion #3424
Merged
slachiewicz added a commit that referenced this pull request Aug 10, 2026
@slachiewicz
Restore the table borders lost in the APT conversion
77765c2
A Markdown pipe table renders as class="table table-striped"; the APT
tables these two pages came from rendered as
class="table table-bordered table-striped", so the conversion in #3422
quietly dropped the cell borders.

Doxia parses a raw HTML table back into the same table it built from
APT -- the class and the per-cell style survive verbatim and it still
applies the alternating row classes itself -- so writing these two out
as HTML restores the original rendering exactly.

Verified against the pre-conversion site: examples/toolchains now
matches the APT baseline on every axis compared, and the only remaining
difference on surefire-api/index is the Term and Definition header
cells, which were added deliberately in #3422 because a Markdown table
cannot express a headerless one.

history.md.vm keeps its Markdown table on purpose.  It carries 24 links
and 38 line breaks across nine rows and gains a row every release, so
readable source is worth more there than the border.

Generated-by: Claude Opus 5 (1M context)
@slachiewicz slachiewicz mentioned this pull request Aug 17, 2026
Convert the 3.5.x site documentation from APT to Markdown #3435
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slachiewicz slachiewicz

Labels

documentation Improvements or additions to documentation master

Projects

None yet

Milestone

3.6.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@slachiewicz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.