Skip to content

INTER-2911: ci: check docs links - #213

Open
JuroUhlar wants to merge 3 commits into
mainfrom
INTER-2911-ci-docs-link-check
Open

JuroUhlar wants to merge 3 commits into
mainfrom
INTER-2911-ci-docs-link-check

Conversation

@JuroUhlar

@JuroUhlar JuroUhlar commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Context

INTER-2911 | docs-link-checker

Why

Broken links in our docs now fail the PR that introduces or leaves them, instead of being found by readers later.

Things to note

  • README links to this repo's own files are now relative (./LICENSE etc.), so the check validates them against the PR's files instead of main. pub.dev still renders them as GitHub links via the package repository field.
  • Checked files are listed explicitly because the checker has no negated globs. CHANGELOG.md (generated) and web/index.js (generated bundle, its links are copied from web/rollup.config.js) are left out.
  • Dart sources are not covered, the checker does not support .dart.
  • example/web/index.html is left out: its only link is an MDN comment from the Flutter template.
  • The checker action is pinned to commit b8f0822 and checkout to the SHA already used in publish.yaml.

Verification

Ran the pinned checker locally on the four files: 73 links checked, 0 to fix, so no baseline file is needed. The workflow run on this PR is not yet verified.

Change outline

One new workflow, runs on pull requests and pushes to main with read-only permissions.

.github/workflows/
+ check-links.yml   docs-link-checker on:
                      README.md
                      contributing.md
                      example/README.md
                      web/rollup.config.js

@JuroUhlar
JuroUhlar requested a balanced review from Copilot November 17, 2026 01:10
@github-actions

This comment has been minimized.

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.

🟢 Approval recommended

No active review issues are reported for the documentation link-checking workflow.

No open issues 🎉

What changed in this PR

Adds a CI workflow to catch broken documentation links in pull requests and on pushes to main.

Changes:

  • Checks links in README.md, contributing.md, example/README.md, and web/rollup.config.js.
  • Excludes generated files and unsupported Dart sources.
  • Uses commit-pinned actions and read-only repository permissions.
File Description
.github/​workflows/​check-links.yml Adds automated link checking for four explicitly selected files.

Review effort: Balanced

Runs docs-link-checker on README.md, contributing.md, example/README.md and web/rollup.config.js for pull requests and pushes to main. CHANGELOG.md and the generated web/index.js are left out.

Refs: INTER-2911
@JuroUhlar
JuroUhlar force-pushed the INTER-2911-ci-docs-link-check branch from 02e43fe to fa8af46 Compare November 17, 2026 01:21
@JuroUhlar
JuroUhlar requested a balanced review from Copilot November 17, 2026 01:21

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.

🟢 Approval recommended

No active review issues are reported for the documentation link-checking CI change.

No open issues 🎉

Review effort: Balanced

Relative links are checked against the PR's own files, so a move or
delete that breaks one fails the PR. pub.dev still renders them as
GitHub links via the package's repository field.

Refs: INTER-2911

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.

🟢 Approval recommended

No active review issues are recorded for the automated documentation link-checking change.

No open issues 🎉

Review effort: Balanced

@JuroUhlar
JuroUhlar marked this pull request as ready for review November 17, 2026 12:22
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

This branch has not been deployed

No deployments
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.

2 participants