fix(docs): title distro code blocks and fix missed shell highlighting #140
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
rootiest (Rootiest)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#140
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Troubleshooting's "Upgrading Fish by distribution" examples carried a leading
# Arch / AUR-style comment instead of a Starlight fence title, and several shell examples elsewhere on that page silently fell back to an unhighlighted```textblock. Both are fixed at the root indocs/build-manual.py's site-rendering pass, so the fix applies to the whole generated site, not just this one page.What changed
_render_paranow promotes a short leading# Labelcomment (e.g.# Arch / AUR) to the fence title, alongside the existing filename-comment signal._label_titledistinguishes a label from an explanation — short (≤48 chars, ≤8 words) and not ending in sentence punctuation (.!?;:,) — so a comment like# Turn it off:still stays a literal comment, not a title._is_shellused to check a hardcodedSHELL_HEADSlist, so a repo-only command likefish-depsorconfig-settingswas invisible to it even though the exact same vocabulary already exists forcodespans' backtick-wrapping. It now reuses that one vocabulary instead of a second, silently drifting one — this is what was makingfish-deps install/fish-deps syncrender as plain text.for/if/whilebody) was routed past shell detection entirely by thedeeperguard, which exists to protect nested option tables. Shell detection now runs regardless ofdeeper, fixing the "Erase universal variables" for-loop example (and one other nested block found site-wide, in13-viewing-this-manual/repo-open).AGENTS/docs/CLAUDE.md(the docs-pipeline conventions doc, symlinked asdocs/CLAUDE.md) to describe the new label-title signal and the shared vocabulary.docs/verify-manual.py.Verification
uv run --with pytest pytest docs/verify-manual.py -q→ 76 passed (74 existing + 2 new)python3 docs/build-manual.py --sitethen diffed the generateddocs/site/src/content/docs/tree againstmain's output: only 4 files changed (11-personalization,12-troubleshooting,13-viewing-this-manual,reference/miscellaneous/repo-open), every diff atext→fishhighlight fix or a comment→title promotion, no regressions.python3 -m py_compile docs/build-manual.py docs/verify-manual.pyManual verification checklist
cd docs/site && npm run devor equivalent) and open the Troubleshooting pageBoth 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.