Skip to content

Add syntax highlighting to site code examples - #7

Merged
nnthnn merged 2 commits into
mainfrom
feat/pruning
Nov 11, 2026
Merged

nnthnn merged 2 commits into
mainfrom
feat/pruning

Conversation

@nnthnn

@nnthnn nnthnn commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds syntax coloring to the Install and Configure code snippets on the project site, making shell commands and config examples easier to scan while keeping the existing dark visual style. Also works around the ongoing Canonical DNS outage that was blocking CI dependency installation.

Changes

  • Wrap the shell, Lua, and TOML examples in semantic token spans.
  • Add a token color palette for commands, flags, sections, keys, strings, booleans, numbers, and punctuation.
  • Use static HTML spans instead of adding a JavaScript highlighter or external dependency.
  • Point CI's apt mirror at mirrors.edge.kernel.org because the runner image's Canonical/Azure mirror hosts have been unresolvable for days.

Testing

  • xmllint --html --noout site/index.html
  • Rendered the page in headless Firefox and visually verified both the Install and Configure sections.
  • cargo test --locked — 81 passed.
  • Pre-push checks passed: cargo fmt --all --check and cargo clippy --all-targets --locked -- -D warnings.
  • CI run 43066880319 — Lint, Build, and Audit all passed.
  • git diff --check origin/main...HEAD

Give the Install and Configure snippets token colors so commands, flags, config keys, values, and strings are easier to scan. Keep the existing dark palette and use static spans instead of adding a JavaScript highlighter dependency.
Canonical DNS has been failing for GitHub-hosted runners for days, so the image's Canonical/Azure mirror list cannot fetch build dependencies. Point apt at the kernel.org Ubuntu mirror before installing system packages.
@nnthnn
nnthnn merged commit f4a81e0 into main Nov 11, 2026
3 checks passed
@nnthnn
nnthnn deleted the feat/pruning branch November 11, 2026 17:23
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