Skip to content

Implement MrDocs + Antora + mkDocs based documentation integration and website reimplementation - #197

Open
sakshamsharma wants to merge 18 commits into
mainfrom
main
Open

sakshamsharma wants to merge 18 commits into
mainfrom
main

Conversation

@sakshamsharma

Copy link
Copy Markdown
Member

This PR bundles together a big rewrite of the website's static generation scripts.
This is hosted here: https://bemanproject.github.io/website-experimental/

The discourse post describing this is here: https://discourse.bemanproject.org/t/new-v2-beman-website-with-docs/596

The intention of this redesign was to natively support API documentation and hosting the markdown documentation files from various beman projects on the main beman website under the “Docs” tab.

The website is built as a mix of:

  • mkDocs as a replacement of docusaurus. mkDocs is faster and has a cleaner sidebar feel which integrated well.
  • Antora + Pandoc to parse markdowns and build the Docs page.
  • MrDocs to automatically build documentation for beman projects (with room for customization per repository).

This also moves to a new form of automation where github actions push
to the gh-pages branch on a schedule and when triggered manually.

This is a more robust solution than the previous cron job that pushed
to the main branch, thus adding noise to it as well.
Use session storage instead of local storage to make
it feel intuitive to the user if they refresh the page
or reopen it.
Many markdown files (like docs/overview.md in Beman.eecution)
contain HTML like <detail> <ul> <li> etc. Github renders this
just fine. Pandoc does not treat markdown => AsciiDoc as an
HTML compatible transformation and thus just drops those tags.

This commit adds a preprocessing pass to our pandoc conversion
which allows this content to remain as it was.

TLDR; we convert GitHub-only HTML details into Antora-native
collapsibles before Pandoc can destroy them.

If the parser can’t find a balanced, valid-ish
<details>...</details> block, it leaves that part of the
Markdown alone and lets Pandoc handle it as before.
Also move out some generated python to a separate
python script.
@netlify

netlify Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploy Preview for bemanproject failed.

Name Link
🔨 Latest commit daa4cb1
🔍 Latest deploy log https://app.netlify.com/projects/bemanproject/deploys/6aac763e0d51750008063557

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.

1 participant