Skip to content

ci: fix broken intra-doc links (Documentation lane)#84

Merged
EffortlessSteven merged 1 commit into
mainfrom
release/docs-lane-repair
Apr 15, 2026
Merged

ci: fix broken intra-doc links (Documentation lane)#84
EffortlessSteven merged 1 commit into
mainfrom
release/docs-lane-repair

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Two classes of rustdoc failures were blocking the Documentation lane:

  1. Unresolved links in shipper-types. The outer /// doc comment on pub mod storage was being merged with the module's inner //! docs. Rustdoc then tried to resolve the inner block's [CloudStorageConfig] and [StorageType] links in the parent crate scope, where those items aren't visible. Removing the redundant outer doc lets the module's own //! docs resolve the links correctly.
  2. Private intra-doc links from public items. Several facades in shipper::git and shipper::auth linked to pub(crate) items ([super::bin_override::local_is_git_clean], [credentials::token_from_credentials_file_extended], [crate::ops::git], etc.). Those only resolved because CI runs with --document-private-items, and rustdoc warns under -D warnings. Downgraded them to plain backtick code spans so the prose reads the same but rustdoc is happy either way.

Verification

  • RUSTDOCFLAGS="-Dwarnings" cargo doc --workspace --no-deps --document-private-items — exit 0 (was exit 101 with 9 errors).
  • No public API changes — docs-only.

Test plan

  • Documentation lane green

This is PR 3b in the release-hardening sprint — a docs-only companion to PRs 1/2/3.

@coderabbitai

coderabbitai Bot commented Apr 15, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 55 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 7 minutes and 55 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3f3cb3e3-588b-49ff-b95d-7f355261a961

📥 Commits

Reviewing files that changed from the base of the PR and between 6f46714 and 1dda6a5.

📒 Files selected for processing (6)
  • crates/shipper-types/src/lib.rs
  • crates/shipper/src/git.rs
  • crates/shipper/src/ops/auth/mod.rs
  • crates/shipper/src/ops/git/bin_override.rs
  • crates/shipper/src/ops/git/cleanliness.rs
  • crates/shipper/src/ops/git/mod.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/docs-lane-repair

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies documentation by removing several intra-doc links across the codebase, specifically in the git and auth modules. A suggestion was made to use a public re-export for a link in the auth module instead of reverting to plain text, which preserves documentation utility while still resolving link warnings.

Comment on lines +56 to +57
/// Wraps the lower-level resolver (which returns an [`AuthInfo`] diagnostic
/// record) and adds:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Instead of downgrading to plain text, you can link to the public re-export resolve_auth_info which is available in this module. This maintains the utility of the documentation while resolving the intra-doc link warning.

Suggested change
/// Wraps the lower-level resolver (which returns an [`AuthInfo`] diagnostic
/// record) and adds:
/// Wraps the lower-level [`resolve_auth_info`] (which returns an
/// [`AuthInfo`] diagnostic record) and adds:

@EffortlessSteven EffortlessSteven force-pushed the release/docs-lane-repair branch from 5eddc9e to b3c75d3 Compare April 15, 2026 21:17
Two classes of failures were blocking the Documentation lane:

1. Unresolved links in shipper-types. The outer `/// Storage backend ...`
   doc comment on `pub mod storage` was being merged with the module's
   inner `//!` docs, and rustdoc then tried to resolve the module's
   `[CloudStorageConfig]` / `[StorageType]` links in the parent crate
   scope where those items are not visible. Removing the redundant outer
   doc lets the module's own inner docs resolve correctly.

2. Private intra-doc links from public items. Several facades in
   shipper::git and shipper::auth used rustdoc links (`[super::bin_override::
   local_is_git_clean]`, `[credentials::token_from_credentials_file_extended]`,
   `[crate::ops::git]`, etc.) that point at pub(crate) items. Those links
   only resolved because CI runs with --document-private-items, and
   rustdoc emits errors under -D warnings. Downgrade them to plain
   backtick code spans so the prose still reads the same but rustdoc is
   happy either way.

No public-API changes; docs-only.
@EffortlessSteven EffortlessSteven force-pushed the release/docs-lane-repair branch from b3c75d3 to 1dda6a5 Compare April 15, 2026 21:43
@EffortlessSteven EffortlessSteven merged commit dd1a1b9 into main Apr 15, 2026
13 of 18 checks passed
@EffortlessSteven EffortlessSteven deleted the release/docs-lane-repair branch April 15, 2026 21:45
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