fix(docs): title distro code blocks and fix missed shell highlighting #140

Merged
rootiest merged 2 commits from docs/troubleshooting-codeblock-titles into main 2026-09-09 04:43:51 +00:00
2 Commits
Author SHA1 Message Date
rootiest 664c8bf7ee docs: drop hardcoded sub-category counts from C1-C6 prose
Both counts ("two to six", "25 in total") would silently go stale if a
sub-category is ever added or removed. Reworded to "several" so the
prose no longer needs a manual update alongside the guard registry.
2026-09-09 00:43:27 -04:00
rootiest 47074821c0 fix(docs): title distro code blocks and fix missed shell highlighting
Troubleshooting's "Upgrading Fish by distribution" examples carried a
leading "# Arch / AUR"-style comment instead of a Starlight fence title.
Generalize the existing filename-comment title signal to any short
label comment (excluded when it reads as a sentence, e.g. ends in
punctuation) so it titles the block and is stripped from the body.

Also fixes two cases where shell examples fell back to an unhighlighted
```text block instead of ```fish:
- `_is_shell` only recognized a hardcoded command list, so any repo-only
  command (fish-deps, config-settings, ...) was invisible to it even
  though the same vocabulary already exists for codespans wrapping.
  Now `_is_shell` reuses that one vocabulary instead of a second,
  drifting one.
- A shell paragraph with its own nested indentation (a for/if/while
  body) was routed past shell detection entirely by the `deeper` guard,
  which exists for nested option tables. Shell detection now runs
  regardless of `deeper`.
2026-09-09 00:02:06 -04:00