Repository navigation
[docs] Capitalize the term after a colon label prefix in headings - #65526
Merged
dstrodtman merged 2 commits intoSep 2, 2026
Merged
dstrodtman merged 2 commits into
dstrodtman merged 2 commits into
Conversation
Add the rule to the writing style guide and fix the six headings in doc/source that don't follow it. A heading like 'Example: creating a custom mean aggregator' reads as a sentence fragment because sentence case gets applied through the colon. The label before the colon is a prefix rather than the start of the sentence, so the title after it should begin like a title. This codifies what the docs already do. Of 708 colon-prefixed headings under doc/source, 664 already capitalize the term after the colon and only these six don't. Carve out code identifiers, which keep their real casing, so nobody 'fixes' headGroupSpec into HeadGroupSpec. Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the documentation style guide to require capitalizing the first term after a colon when a heading starts with a short label. It also updates several documentation files to adhere to this new rule and ensure consistent sentence casing. As there are no review comments, I have no feedback to provide.
The example used a gerund three lines above the rule that says to write task headings as imperatives, which endorsed the pattern the guide asks you to avoid. The example doesn't have to match any published page. Signed-off-by: Douglas Strodtman <[email protected]>
pseudo-rnd-thoughts
approved these changes
Aug 17, 2026
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…y-project#65526) ## Summary Adds one rule to the writing style guide: when a heading opens with a short label and a colon, capitalize the first term after the colon. Fixes the six headings under `doc/source` that don't follow it. ``` Use: Example: Creating a custom mean aggregator Not: Example: creating a custom mean aggregator Not: Example: Creating a Custom Mean Aggregator ``` The label before the colon is a prefix, not the start of the sentence, so the title that follows begins like a title. Sentence case still governs the rest of the heading, so this isn't a return to title case. ## This codifies existing practice I audited every heading under `doc/source` before writing the rule, rather than asserting a preference: | Colon-prefixed headings | Capitalized after the colon | Not capitalized | |---|---|---| | 708 | 664 | 6 | (The raw scan reported 44 non-conforming, but 38 were `kubectl describe` output inside literal blocks that my heuristic mistook for RST headings. The six below are the real ones.) So the convention is already what Ray docs overwhelmingly do. This writes it down and cleans up the stragglers. ## Headings fixed - `train/user-guides/asynchronous-validation.rst` — "Example: validation with Ray Train TorchTrainer" and "Example: validation with Ray Data map_batches" - `ray-core/internals/rpc-fault-tolerance.rst` — "Hidden problem: long-polling RPCs" - `ray-core/runtime_env_auth.md` — "Running on VMs: the netrc File" (also lowercases the stray "File") - `serve/production-guide/fault-tolerance.md` — "Guide: end-to-end fault tolerance for your Serve app" - `cluster/configure-manage-dashboard.md` — "Dashboard message: either Prometheus or Grafana server is not detected" ## The identifier carve-out The rule explicitly exempts code identifiers. `## Pod configuration: headGroupSpec and workerGroupSpecs` in `cluster/kubernetes/user-guides/config.md` is correct as written and is deliberately not touched here, because `headGroupSpec` is a real API field name. Without the carve-out this rule invites someone to "fix" it into `HeadGroupSpec`, which would be wrong. ## No anchor churn Every change here is capitalization only, and both MyST and Sphinx lowercase heading text when generating anchor slugs. `#guide-end-to-end-fault-tolerance-for-your-serve-app` is the slug before and after. No inbound deep link breaks, and the one heading carrying an explicit label (`(serve-e2e-ft-guide)=`) keeps it. ## Why it's worth a rule A naive sentence-case pass actively breaks these headings — it lowercases through the colon and makes the page read worse. That happened in ray-project#65374 and had to be reverted. Since `Google.Headings` is disabled repo-wide, heading case is a human check with no tool behind it, so the guide is the only place this can live. --------- Signed-off-by: Douglas Strodtman <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds one rule to the writing style guide: when a heading opens with a short label and a colon, capitalize the first term after the colon. Fixes the six headings under
doc/sourcethat don't follow it.The label before the colon is a prefix, not the start of the sentence, so the title that follows begins like a title. Sentence case still governs the rest of the heading, so this isn't a return to title case.
This codifies existing practice
I audited every heading under
doc/sourcebefore writing the rule, rather than asserting a preference:(The raw scan reported 44 non-conforming, but 38 were
kubectl describeoutput inside literal blocks that my heuristic mistook for RST headings. The six below are the real ones.)So the convention is already what Ray docs overwhelmingly do. This writes it down and cleans up the stragglers.
Headings fixed
train/user-guides/asynchronous-validation.rst— "Example: validation with Ray Train TorchTrainer" and "Example: validation with Ray Data map_batches"ray-core/internals/rpc-fault-tolerance.rst— "Hidden problem: long-polling RPCs"ray-core/runtime_env_auth.md— "Running on VMs: the netrc File" (also lowercases the stray "File")serve/production-guide/fault-tolerance.md— "Guide: end-to-end fault tolerance for your Serve app"cluster/configure-manage-dashboard.md— "Dashboard message: either Prometheus or Grafana server is not detected"The identifier carve-out
The rule explicitly exempts code identifiers.
## Pod configuration: headGroupSpec and workerGroupSpecsincluster/kubernetes/user-guides/config.mdis correct as written and is deliberately not touched here, becauseheadGroupSpecis a real API field name. Without the carve-out this rule invites someone to "fix" it intoHeadGroupSpec, which would be wrong.No anchor churn
Every change here is capitalization only, and both MyST and Sphinx lowercase heading text when generating anchor slugs.
#guide-end-to-end-fault-tolerance-for-your-serve-appis the slug before and after. No inbound deep link breaks, and the one heading carrying an explicit label ((serve-e2e-ft-guide)=) keeps it.Why it's worth a rule
A naive sentence-case pass actively breaks these headings — it lowercases through the colon and makes the page read worse. That happened in #65374 and had to be reverted. Since
Google.Headingsis disabled repo-wide, heading case is a human check with no tool behind it, so the guide is the only place this can live.