Skip to content

fix: convert MkDocs admonitions to remark directives on 13 pages - #531

Open
prabhatsharma wants to merge 1 commit into
mainfrom
fix/mkdocs-admonitions
Open

fix: convert MkDocs admonitions to remark directives on 13 pages#531
prabhatsharma wants to merge 1 commit into
mainfrom
fix/mkdocs-admonitions

Conversation

@prabhatsharma

Copy link
Copy Markdown
Contributor

What

30 admonitions across 13 pages still used the MkDocs syntax (!!! note "Title" / ??? info "Title"), which nothing in the Fumadocs pipeline processes — they rendered as literal !!! text with their indented bodies turned into code blocks. Found while building the SLO docs (#530).

Converted to the site's existing directive syntax (:::note[Title], :::warning[...], :::accordion[...]), which lib/remark/mkdocs-directives.ts already maps onto Callout / Details components. No new machinery.

Affected: the 8 Mobile RUM pages, both pipeline guides, streams-in-openobserve (the one ??? collapsible), organizations, and dashboard variables.

Verified

  • pnpm build clean, check-links passes.
  • Built HTML swept: no literal !!! type / ??? type remains anywhere.
  • Visually checked the three risky shapes in the rendered site: a top-level warning callout (Android RUM), back-to-back callouts nested in a numbered list (real-time pipeline), and the collapsible inside a list (streams) — all render correctly and list flow around them is intact.

Conversion was scripted (fence-aware, preserves list indentation, dedents bodies); every diff eyeballed.

Pages written after the MkDocs migration used the old admonition syntax
(!!! note "Title" / ??? info "Title") that nothing in the Fumadocs
pipeline processes, so 30 admonitions across 13 pages rendered as literal
text with their indented bodies turned into code blocks.

Converted to the site's directive syntax (:::note[Title] / :::warning[...]
/ :::accordion[...]), which lib/remark/mkdocs-directives.ts maps onto
Callout and Details components — including the indented cases inside list
items and the one collapsible. Verified in the built output: no literal
markers remain, callouts and the accordion render, list flow around them
is intact.
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