Skip to content

Migrate logging-flume-site content into this repository#462

Merged
ppkarwasz merged 35 commits into
trunkfrom
docs/move-flume-site
Jul 10, 2026
Merged

Migrate logging-flume-site content into this repository#462
ppkarwasz merged 35 commits into
trunkfrom
docs/move-flume-site

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

This PR moves the website content currently hosted in logging-flume-site into this repo.

Building the site

For now, the site can be generated manually with:

npm install
npx antora generate antora-playbook.yaml

Next steps

Once the project is restructured on top of logging-parent, these steps (including the NPM installation itself) will be handled automatically by:

./mvnw site

rgoers and others added 5 commits July 8, 2026 19:39
* Convert website from reStructuredText to Antora/AsciiDoc

Migrate the Flume website source from Sphinx/reStructuredText to an
Antora/AsciiDoc layout under src/site/antora, and add antora-playbook.yaml
and package.json at the repository root so the site can be generated with
npm/Antora directly.

The page conversion is deterministic and reproducible:

- tools/rst2adoc.sh runs pandoc over every source/sphinx/**/*.rst, mirrors
  the directory layout into the Antora page tree, prepends the ASF license
  header (pandoc drops the RST comment header) and copies the images.
- tools/fix_xrefs.py rewrites relative .html links to xref:*.adoc, but only
  when the target page exists, and strips the redundant images/ prefix from
  image macros.

The original *.rst sources and the now-orphaned Sphinx scaffolding (conf.py,
contents.rsx, _templates, _themes) are removed.

Known manual follow-ups, not covered by the deterministic conversion:

- pandoc drops `raw:: html` blocks (notably the News date headers on index)
- nav.adoc is hand-authored
- per-version doc archives (content/<ver>/...) and Javadoc remain plain links
- pom.xml still references the sphinx-maven-plugin

Assisted-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Output the generated site to target/site

Match the output directory used by the Log4j website build, which generates
into target/site. Drop the now-unused /build/ ignore entry, since /target/
already covers the Antora output.

Assisted-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Restore the News date headers on the index page

pandoc dropped the `.. raw:: html` <h3> blocks during conversion, so the dated
News entries on the home page lost their headers. Restore them as a `== News`
section with one `=== <date>` subsection per entry, matching the original page.

Also remove the leftover `.. toctree::` entries that pandoc rendered as bare
text at the bottom of the page; that navigation is provided by nav.adoc.

Assisted-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Fix `.asf.yaml`
@ppkarwasz
ppkarwasz merged commit b7a0fb5 into trunk Jul 10, 2026
4 checks passed
@ppkarwasz
ppkarwasz deleted the docs/move-flume-site branch July 10, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants