Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 19 additions & 24 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,7 @@ reviews:
mode: warning
issue_assessment:
mode: warning
custom_checks:
- name: Separate documentation from code
mode: warning
instructions: |
Stacked PRs are allowed. Evaluate only this PR's diff against its
declared base branch; do not combine changes from separate PRs in a
stack or warn merely because a documentation PR depends on a code PR.
Inspect the changed-file list, including old and new paths for
renames. Exempt docs/reference/api/: generated API reference changes
may stay in the same PR as code and must not trigger a split comment.
Determine whether the PR changes docs/ files outside that exempt
subtree or the repository-root README.md and also changes code.
Code includes application or library source, tests, executable
examples, and build or runtime configuration. Documentation snippets,
prose, and documentation-only metadata or configuration do not count
as code for this check.
If both documentation and code are changed, post one concise review
comment recommending separate PRs: keep non-exempt docs/ and root
README.md changes in a non-code documentation PR, put code changes in a separate
PR, and link the two PRs and coordinate their merge timing so the
documentation stays aligned with the implementation.
Pass without a split recommendation when only documentation or only
code is changed, or when documentation is combined only with other
non-code changes. This is advisory guidance, not a merge blocker.
# The docs-split check reports separately via .coderabbit/pre-merge-checks/.
auto_title_placeholder: "@coderabbitai"
auto_title_instructions: |
Generate the PR title using Conventional Commits format:
Expand Down Expand Up @@ -99,6 +76,24 @@ reviews:
instructions: |
Review documentation for technical accuracy against the current API, command correctness, and consistency with generated schemas.
For links between files under docs/, require paths relative to the source file with the target file's .mdx extension so they work in both Fern builds and repository browsers. Flag Fern site-root links such as [NeMo Fabric overview](/nemo/fabric/about-nemo-fabric/overview); use the repository-relative equivalent, such as [NeMo Fabric overview](../about-nemo-fabric/overview.mdx).
- path: "{README.md,docs/**}"
instructions: |
Check for mixed documentation and code changes using only this PR's
diff against its declared base, including old and new paths for renames.
If the PR changes both code and either root README.md or docs/ files
outside docs/reference/api/, post one concise inline review comment on
a changed line in one of those non-exempt documentation files. Post at
Comment thread
AnuradhaKaruppiah marked this conversation as resolved.
Resolved
most one split recommendation per PR, not one per documentation file.
Ask the author to move those documentation changes into a separate,
linked PR and coordinate merge timing with the code PR. Keep it advisory.
Code includes source, tests, executable examples, and build or runtime
configuration; documentation snippets, prose, and documentation-only
metadata or configuration are not code. Generated docs/reference/api/
changes are exempt. Do not flag documentation-only or code-only PRs,
or documentation combined only with other non-code changes. Stacked
PRs are allowed: do not combine diffs across PRs or flag a docs PR merely
because it depends on a code PR. Avoid duplicating an existing inline
split recommendation.
- path: "{*.md,**/*.md,**/*.mdx,**/*.ipynb}"
instructions: |
Enforce the product name in user-facing prose: use "NVIDIA NeMo Fabric" on first use and "NeMo Fabric" thereafter. Flag standalone capitalized "Fabric" when it refers to the product. Do not flag the lowercase `fabric` CLI command, package/import/crate names, code identifiers, API symbols, configuration keys, file paths, or unrelated generic uses of the word.
Expand Down
35 changes: 35 additions & 0 deletions .coderabbit/pre-merge-checks/docs-split.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
id: docs-split
name: Separate documentation from code
mode: warning
report: platform
---

<!--
SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->

Stacked PRs are allowed. Evaluate only this PR's diff against its declared base
branch; do not combine changes from separate PRs in a stack or warn merely
because a documentation PR depends on a code PR. Inspect the changed-file list,
including old and new paths for renames.

Fail if the PR changes both code and either files under `docs/` outside
`docs/reference/api/` or the repository-root `README.md`. Generated API reference
changes under `docs/reference/api/` may stay in the same PR as code and must not
trigger a split recommendation.

Code includes application or library source, tests, executable examples, and
build or runtime configuration. Documentation snippets, prose, and
documentation-only metadata or configuration do not count as code for this check.

On failure, list the triggering documentation and code paths in the check result
and recommend separate, linked PRs: keep non-exempt `docs/` and root `README.md`
changes in a non-code documentation PR and put code changes in a separate PR.
Coordinate their merge timing so the documentation stays aligned with the
implementation.

Pass when only documentation or only code is changed, or when documentation is
combined only with other non-code changes. This is advisory guidance: report a
warning rather than a merge-blocking failure.
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,15 @@ TypeScript declarations synchronized.
## Documentation Checklist

If your change affects public behavior, adapters, examples, or workspace
structure, update the corresponding documentation in the same branch.
structure, update the corresponding documentation. When a change includes code
and either the repository-root `README.md` or files under `docs/` outside
`docs/reference/api/`, submit those documentation changes in a separate, linked
PR. Stacked PRs are allowed; evaluate each PR against its declared base and
coordinate merge timing so the documentation stays aligned with the
implementation. Generated API references under `docs/reference/api/` may stay
with code, as may adapter and example READMEs outside the paths above.

CodeRabbit checks for mixed code and documentation changes and recommends splitting them into linked PRs. The check is advisory.
Comment thread
AnuradhaKaruppiah marked this conversation as resolved.
Resolved

Before opening a PR, check the following:

Expand Down
Loading