Skip to content

docs: render Hyak shared-resource callout as an admonition - #2485

Merged
sr320 merged 1 commit into
masterfrom
claude/elated-feynman-c551c3
Aug 8, 2026
Merged

docs: render Hyak shared-resource callout as an admonition#2485
sr320 merged 1 commit into
masterfrom
claude/elated-feynman-c551c3

Conversation

@sr320

@sr320 sr320 commented Aug 8, 2026

Copy link
Copy Markdown
Member

What changed

Converted the > [!IMPORTANT] block in docs/Computing-Hardware.md (the Hyak/Klone cpu-g2 shared-resource note) from GitHub-flavored alert syntax to the !!! important admonition syntax.

Why

mkdocs.yml doesn't enable an extension that understands GFM alerts, so the marker was passed through as plain text. On the published site the block rendered as a blockquote whose first line was the literal string [!IMPORTANT] — see Computing-Hardware.

The admonition extension is already enabled, so !!! blocks render correctly today.

Why this approach over adding github-callouts

A grep of docs/ turned up exactly one GFM alert, this one. The other [! matches (in docs/Lab-Notebooks.md) are false positives — they're [![shields.io badge]](url) image links, not alerts. protocols/ and README.md are clean too.

With a single occurrence, adding the github-callouts extension would have meant a new third-party dependency in both mkdocs.yml and the pip install line of .github/workflows/mkdocs-material-theme.yml — i.e. on the deploy path — to fix one blockquote. Converting in place uses what's already configured and touches one file.

Verification

Built locally with the same stack the workflow installs (mkdocs-material mkdocs-video mkdocs-git-latest-changes-plugin):

  • Build succeeds. The warnings emitted are all pre-existing broken cross-links in bio_Basics.md, klone_Conda.md, and klone_RStudio-Server.md, unrelated to this change and present beforehand.
  • grep -rn '\[!' site/ --include='*.html' returns zero matches.
  • The block renders as <div class="admonition important"> with an "Important" title; the nested #### heading and the shared-resource contributions table both render properly inside the admonition rather than as literal text.

Note for the reviewer

Material styles important as a tip variant (green), not GitHub's purple. Content and structure are correct; only the accent color differs from how this looks on github.com. If an amber caution treatment reads better here, !!! warning is a one-word change.

🤖 Generated with Claude Code

The `> [!IMPORTANT]` block in Computing-Hardware.md used GitHub-flavored
alert syntax, which mkdocs.yml has no extension to render. On the published
site it showed up as a blockquote containing the literal text "[!IMPORTANT]".

Converted it to the `!!! important` admonition syntax, which the already-
enabled `admonition` extension renders natively. This was the only GFM alert
in docs/, so converting it avoids adding a new build dependency
(github-callouts) to both mkdocs.yml and the deploy workflow.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sr320
sr320 merged commit 466685c into master Aug 8, 2026
2 checks passed
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