Skip to content

Convert docs and contributor guides to reference links with scoped enforcement - #5225

Merged
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/5224-reference-links
Sep 17, 2026
Merged

arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/5224-reference-links

Conversation

@arturcic

@arturcic arturcic commented Sep 17, 2026

Copy link
Copy Markdown
Member

Description

Convert inline Markdown links and images to reference-style definitions in docs/, root CONTRIBUTING.md, and root BREAKING_CHANGES.md. Include the configuration documentation source and generated pages.

Add a Remark-based checker and rule tests scoped to those documents. Keep npm commands and documentation CI integration, with workflow triggers for the two root documents. Document the scope and exceptions for autolinks, HTML, front matter, and literal Markdown examples.

Related Issue

Related to #5224. This PR covers a deliberately narrower documentation scope; the issue's repository-wide conversion and enforcement remain follow-up work.

Motivation and Context

Use consistent reference links in the selected documentation and prevent inline links from returning. Outside docs/ and the two root documents, only package.json and .github/workflows/docs.yml change to support automated checks.

How Has This Been Tested?

  • npm run test:links: 2 tests passed.
  • npm run check:links: 62 Markdown files checked, 0 violations.
  • actionlint .github/workflows/docs.yml: passed.
  • Whitespace checks passed; worktree clean after amending the commit.

The full documentation generation/build and rendered-link destination verification were not rerun during PR preparation. Link-style checks do not establish destination availability.

Checklist

  • Documentation describes the scope and checker.
  • Tests cover the new rule.
  • Focused tests, scoped link-style checks, and workflow lint pass.
  • Full documentation generation/build verified for this PR.

Summary by CodeRabbit

  • Documentation

    • Standardized documentation links and images using readable reference-style Markdown links.
    • Added guidance for maintaining reference links and running link validation.
    • Preserved existing documentation destinations and guidance.
  • Validation

    • Added automated checks and tests to detect inline Markdown links and validate documentation references.
    • Documentation workflows now validate links when relevant documentation changes are made.

Copilot AI lite review requested due to automatic review settings September 17, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 91ad8ca7-fc50-4a7d-ba15-eaf55c61f7b8

📥 Commits

Reviewing files that changed from the base of the PR and between 107e05c and 883bd9c.

📒 Files selected for processing (49)
  • .github/workflows/docs.yml
  • BREAKING_CHANGES.md
  • CONTRIBUTING.md
  • docs/design/managed-git-migration.md
  • docs/input/docs/getting-started/index.md
  • docs/input/docs/learn/branching-strategies/contribute-examples.md
  • docs/input/docs/learn/branching-strategies/gitflow/examples.md
  • docs/input/docs/learn/branching-strategies/gitflow/index.md
  • docs/input/docs/learn/branching-strategies/githubflow/examples.md
  • docs/input/docs/learn/branching-strategies/githubflow/index.md
  • docs/input/docs/learn/branching-strategies/trunkbased/examples.md
  • docs/input/docs/learn/branching-strategies/trunkbased/index.md
  • docs/input/docs/learn/faq.md
  • docs/input/docs/learn/git-setup.md
  • docs/input/docs/learn/how-it-works.md
  • docs/input/docs/learn/intro-to-semver.md
  • docs/input/docs/learn/who.md
  • docs/input/docs/learn/workflows-modes-strategies.md
  • docs/input/docs/migration/v6-to-v7.md
  • docs/input/docs/reference/build-servers/azure-devops.md
  • docs/input/docs/reference/build-servers/bamboo.md
  • docs/input/docs/reference/build-servers/bitbucket-pipelines.md
  • docs/input/docs/reference/build-servers/continua.md
  • docs/input/docs/reference/build-servers/github-actions.md
  • docs/input/docs/reference/build-servers/gitlab.md
  • docs/input/docs/reference/build-servers/myget.md
  • docs/input/docs/reference/build-servers/teamcity.md
  • docs/input/docs/reference/configuration-topics/branches.md
  • docs/input/docs/reference/configuration-topics/calculation.md
  • docs/input/docs/reference/configuration-topics/index.md
  • docs/input/docs/reference/configuration-topics/output.md
  • docs/input/docs/reference/configuration.md
  • docs/input/docs/reference/environment-variables.md
  • docs/input/docs/reference/mdsource/configuration.source.md
  • docs/input/docs/reference/variables.md
  • docs/input/docs/reference/version-increments.md
  • docs/input/docs/reference/version-sources.md
  • docs/input/docs/usage/choose-workflow.md
  • docs/input/docs/usage/ci.md
  • docs/input/docs/usage/cli/arguments.md
  • docs/input/docs/usage/cli/installation.md
  • docs/input/docs/usage/cli/output.md
  • docs/input/docs/usage/configure.md
  • docs/input/docs/usage/msbuild.md
  • docs/readme.md
  • docs/scripts/check-reference-links.mjs
  • docs/scripts/remark-reference-links.mjs
  • docs/scripts/remark-reference-links.test.mjs
  • package.json
🚧 Files skipped from review as they are similar to previous changes (38)
  • docs/input/docs/reference/variables.md
  • docs/design/managed-git-migration.md
  • docs/input/docs/reference/build-servers/myget.md
  • docs/input/docs/reference/build-servers/gitlab.md
  • docs/input/docs/usage/cli/arguments.md
  • docs/input/docs/learn/how-it-works.md
  • docs/input/docs/learn/intro-to-semver.md
  • docs/input/docs/reference/build-servers/azure-devops.md
  • docs/input/docs/usage/configure.md
  • docs/input/docs/usage/choose-workflow.md
  • docs/input/docs/usage/cli/output.md
  • docs/input/docs/reference/build-servers/bitbucket-pipelines.md
  • docs/input/docs/reference/build-servers/continua.md
  • docs/input/docs/learn/who.md
  • docs/input/docs/learn/workflows-modes-strategies.md
  • docs/input/docs/usage/ci.md
  • docs/input/docs/reference/build-servers/github-actions.md
  • docs/input/docs/reference/configuration-topics/calculation.md
  • docs/input/docs/reference/version-sources.md
  • docs/input/docs/learn/branching-strategies/githubflow/index.md
  • docs/input/docs/reference/configuration-topics/output.md
  • docs/input/docs/migration/v6-to-v7.md
  • docs/input/docs/reference/configuration-topics/index.md
  • docs/input/docs/reference/build-servers/bamboo.md
  • docs/input/docs/learn/faq.md
  • docs/input/docs/reference/configuration-topics/branches.md
  • docs/input/docs/getting-started/index.md
  • docs/input/docs/usage/msbuild.md
  • docs/input/docs/learn/branching-strategies/gitflow/examples.md
  • docs/input/docs/learn/git-setup.md
  • BREAKING_CHANGES.md
  • docs/input/docs/learn/branching-strategies/githubflow/examples.md
  • docs/input/docs/learn/branching-strategies/gitflow/index.md
  • docs/input/docs/learn/branching-strategies/trunkbased/examples.md
  • docs/input/docs/reference/build-servers/teamcity.md
  • docs/input/docs/usage/cli/installation.md
  • docs/input/docs/reference/version-increments.md
  • docs/input/docs/learn/branching-strategies/trunkbased/index.md

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The pull request converts inline Markdown links across repository documentation to reference-style links. It adds Remark-based validation, tests, npm commands, documentation guidance, and workflow coverage for Markdown files.

Changes

Reference Link Enforcement

Layer / File(s) Summary
Validation tooling and workflow
.github/workflows/docs.yml, .remarkrc.yaml, docs/scripts/*, package.json, docs/readme.md
The repository now checks reference-style links in Markdown files. Tests cover links, images, references, autolinks, HTML, code, and front matter.
Repository guidance and notices
AGENTS.md, BREAKING_CHANGES.md, CLAUDE.md, CONTRIBUTING.md, .github/*, src/GitVersion.Git.Managed/NOTICE.md
Root guidance, project instructions, and the managed Git notice replace inline links with named references and add definitions.
Learning and migration documentation
docs/design/*, docs/input/docs/learn/*, docs/input/docs/getting-started/*, docs/input/docs/migration/*
Learning, branching, setup, workflow, FAQ, and migration pages use reference-style links with preserved destinations.
Reference documentation
docs/input/docs/reference/*
Build-server, configuration, environment, variable, versioning, and source-reference pages use named link definitions.
Usage and CLI documentation
docs/input/docs/usage/*
Workflow, CI, CLI, configuration, and MSBuild pages use reference-style links with local definitions.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Author
  participant Remark
  participant LinkChecker
  participant CI
  Author->>Remark: submit Markdown with links
  Remark-->>LinkChecker: report inline-link diagnostics
  LinkChecker->>CI: return validation status
  CI-->>Author: pass or fail documentation checks
Loading

Suggested reviewers: asbjornu

Merge Risk: ⚪ Minimal · up to 883bd

The documentation change has no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (46 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: converting documentation and contributor guides to reference-style links and adding enforcement for the defined scope.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (46 skipped: 46 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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

@arturcic
arturcic force-pushed the codex/5224-reference-links branch from 107e05c to 8ce9f7f Compare September 17, 2026 17:49
Copilot AI review requested due to automatic review settings September 17, 2026 17:49
@arturcic arturcic changed the title Convert documentation links to references and enforce the style Convert docs and contributor guides to reference links with scoped enforcement Sep 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@arturcic
arturcic force-pushed the codex/5224-reference-links branch from 8ce9f7f to 883bd9c Compare September 17, 2026 17:54
Copilot AI review requested due to automatic review settings September 17, 2026 17:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@arturcic
arturcic merged commit bb390ea into GitTools:main Sep 17, 2026
28 of 29 checks passed
@arturcic
arturcic deleted the codex/5224-reference-links branch September 17, 2026 18:00
@mergify

mergify Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

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.

Convert inline links to reference links across all documentation and enforce the style

2 participants