Repository navigation
docs: apply the NVIDIA style guidelines to the observability, references, resources, and security docs - #14669
Merged
Merged
Conversation
…ty pages Apply the nvidia-style-guide skill from #14664 to the hand-written pages in docs/observability, docs/references, docs/resources, and docs/security. - Use contractions for negations. - Replace semicolons with separate sentences, one per source line in prose, or with commas and conjunctions in table cells that list noun phrases. - Replace slash constructions such as gateway/engine with "or" or "and". - Use title case in table headers and terminal periods throughout any table column that holds sentences. - Introduce tables and lists with a lead-in sentence ending in a colon. - Capitalize list items, add serial commas and thousands separators, and split sentences longer than about 40 words. docs/reference/configuration.md is generated from Rust field descriptions, so this change leaves it alone.
The style guide now gives the Technical Documentation Writing Guide's conventions precedence in technical documentation (#14665). Apply them to the same 12 pages: - Use full forms instead of contractions. - Write "refer to" instead of "see" before a link. - Use "can" for capability and "might" for possibility instead of "may". - Replace "above" and "below" with "previous", "preceding", or "following", and "once" with "after" when it means sequence. - Prefix NVIDIA OpenShell, NVIDIA NeMo Fabric, NVIDIA DGX, NVIDIA NIM, and NVIDIA Nemotron at their first mention on each page. - Capitalize "From" in two headings; their anchors do not change. - Keep Windows/WSL, matching #14666.
Contributor
Author
Authoring session — opening
|
Contributor
Resolve conflicts with the gerund heading renames from #14670 and the v1 style pass.
cv
enabled auto-merge (squash)
November 19, 2026 23:45
cv
added a commit
that referenced
this pull request
Nov 19, 2026
Resolve conflicts with the style pass from #14669.
cv
added a commit
that referenced
this pull request
Nov 19, 2026
Resolve conflicts with the style pass from #14669.
cv
added a commit
that referenced
this pull request
Nov 19, 2026
Resolve conflicts with the style pass from #14669.
cv
added a commit
that referenced
this pull request
Nov 20, 2026
## Outcome Before: PRs into `v1` and PRs stacked on them got the `v1` label only when someone added it by hand. After: a new workflow adds `v1` to every PR whose base is `v1`, or whose chain of stacked PR bases reaches `v1`, when the PR is opened, reopened, or retargeted. It also labels the open PRs stacked on such a PR. ## Reason cv asked for every PR into `v1`, including stacked PRs, to carry the `v1` label from now on. This PR targets `main`, not `v1`. Since December 8, 2025, GitHub [runs `pull_request_target` from the default branch's copy of a workflow](https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/), whatever the PR's base. A copy on `v1` would never run. This repository shows that behavior: `require-maintainer-edits.yaml` exists only on `main`, and it runs for `v1` PRs such as #14669. Workflows on `main` that filter `branches: [main]`, such as `label-merged-pr-release-target.yaml`, skip `v1` PRs. This workflow has no branch filter. ## Changes - `.github/workflows/label-v1-prs.yaml`: a `pull_request_target` workflow for `opened`, `reopened`, and `edited`. The job skips edits that don't change the base and PRs into the default branch. It runs an inline `actions/github-script` step, pinned to the same SHA as the repository's other workflows. The step only reads PR metadata and adds labels. It never checks out or runs PR code, and its token has only `pull-requests: write`. - It follows the base branch through the open PR, or else the latest merged PR, whose head is that branch in this repository. It stops at `v1` (label), the default branch, a branch that isn't such a PR's head, a loop, or after 10 ancestor PRs (no label). - When the PR leads to `v1`, it labels the PR and the open PRs stacked on it, up to 10 levels. Retargeting a parent onto `v1` therefore labels its children. It doesn't descend from fork heads, `v1`, or the default branch. - Adding a label the PR already has is skipped, and it never removes labels. - `test/automation/pull-requests/label-v1-prs-workflow.test.ts` runs the workflow's script against a fake GitHub API. It covers stacks of open and merged PRs, every stopping case, the depth limit, labelling stacked children, and existing labels. `test/helpers/vitest-watch-triggers.ts` selects that test when the workflow changes. Limitation: a child opened before its parent exists in the chain is labelled only when the parent PR is later opened or retargeted onto the chain. Retargeting a PR away from `v1` doesn't remove the label. ## Verification - `npx vitest run test/automation/pull-requests/label-v1-prs-workflow.test.ts` — 12 passed. Before the workflow existed, the suite failed. Raising the depth limit to 11 failed the depth test. Removing the default-branch guard failed the merge-into-`v1` test. - `actionlint .github/workflows/label-v1-prs.yaml` — no findings. - pre-commit and pre-push hooks, including publication validation, passed. - The workflow can't run on this PR: it exists only on this branch, and GitHub reads `pull_request_target` workflows from `main`. After merge, open a PR into `v1`, or a PR stacked on one. Then confirm that **Automation / Label v1 Pull Requests** runs and adds `v1`. - The diff contains no secrets, API keys, or credentials. ## Review notes `.github/**` is a contributor sensitive path. This adds a `pull_request_target` workflow with write access to PRs. No review happened before publication, so the change awaits maintainer review. --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Pull requests targeting non-default branches are labeled `v1` when their base branch chain leads to `v1`. The label is also applied to eligible open pull requests stacked on those branches. * **Tests** * Added coverage for labeling behavior, including retargeted pull requests, existing labels, and cases where the branch chain does not qualify. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Carlos Villela <[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.
Applies the NVIDIA style guidelines, including the Technical Documentation Conventions that #14665 gave precedence, to the hand-written pages under
docs/observability,docs/references,docs/resources, anddocs/security, so the troubleshooting, reference, and security pages read consistently for users.Problem
These pages predate the style guide merged in #14664. They join independent clauses with semicolons, including inside table cells, and use slashes for "and" or "or". They write "see", "may", "above", "below", and "once" where the conventions ask for "refer to", "can" or "might", "previous" or "following", and "after". They mix contractions with full forms, name NVIDIA products without "NVIDIA" on first mention, and start several tables and lists without a lead-in sentence.
Change
Wording and formatting only. Commands, values, identifiers, quoted output, links, and heading anchors are unchanged, and no content moved between pages.
gateway/engineandplan/applywith words.Windows/WSLstays, as in docs: apply the NVIDIA style guidelines to six v1 doc folders #14666.limits.mdkeep their short names, because table cells use them.The generated configuration reference,
docs/reference/configuration.md, is out of scope: its text comes from Rust field descriptions and needs a change to those sources. The pages that #14666 updated still use contractions and "once", which the conventions from #14665 ask to replace; this change does not rewrite them.