Skip to content

docs(style[shell]): Standardize shell code blocks#644

Merged
tony merged 3 commits intomasterfrom
docs-cmd-cleanup
Mar 15, 2026
Merged

docs(style[shell]): Standardize shell code blocks#644
tony merged 3 commits intomasterfrom
docs-cmd-cleanup

Conversation

@tony
Copy link
Member

@tony tony commented Mar 14, 2026

Summary

  • Add shell command formatting rules to AGENTS.md (console tag + $ prefix, line continuations)
  • Standardize all shell code blocks in README.md, docs/quickstart.md, docs/developing.md

Changes

AGENTS.md: New "Shell Command Formatting" subsection under Documentation Standards

  • console language tag with $ prefix rule
  • \ line continuation rule for wide multi-flag commands
  • Scoped to documentation shell examples, not doctests

README.md:

  • Convert bash blocks to console with $ prefix
  • Split multi-command blocks into one command per block

docs/quickstart.md:

  • Move stray // Usage: comment outside code block as prose
  • Split wide pipx commands with \ continuations

docs/developing.md:

  • Join cd docs/ && make html into single command
  • Split multi-command blocks into one per block
  • Add $ prefix to release commands

Test plan

  • uv run ruff check . passes (no Python changes)
  • Visual inspection of rendered markdown
  • Optionally just build-docs to confirm no rendering regressions

tony added 2 commits March 14, 2026 20:56
why: Standardize shell code blocks for copy-pastability and readability
what:
- Add console language tag + $ prefix rule
- Add line continuation rule for wide multi-flag commands
- Scope to documentation shell examples, not doctests
why: Improve copy-pastability and readability of shell examples
what:
- Ensure all shell blocks use console tag with $ prefix
- Split multi-command blocks into one command per block
- Split wide multi-flag commands with \ line continuations
- Fix README.md, docs/quickstart.md, docs/developing.md
@tony tony force-pushed the docs-cmd-cleanup branch from 4f4396e to 876c30c Compare March 15, 2026 01:58
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.27%. Comparing base (d841b39) to head (0b185f7).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #644      +/-   ##
==========================================
+ Coverage   51.19%   51.27%   +0.07%     
==========================================
  Files          25       25              
  Lines        2590     2590              
  Branches      402      402              
==========================================
+ Hits         1326     1328       +2     
+ Misses       1094     1093       -1     
+ Partials      170      169       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

why: Apply the line-splitting rule from Shell Command Formatting guidelines
what:
- Split pipx install command in CHANGES header
@tony tony marked this pull request as ready for review March 15, 2026 11:44
@tony tony merged commit 5635b4b into master Mar 15, 2026
13 checks passed
@tony tony deleted the docs-cmd-cleanup branch March 15, 2026 11:44
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