Skip to content

Add GitHub workflow for checking markdown links - #56124

Merged
lbussell merged 3 commits into
mainfrom
lbussell/fix-markdown-links
Sep 3, 2026
Merged

lbussell merged 3 commits into
mainfrom
lbussell/fix-markdown-links

Conversation

@lbussell

@lbussell lbussell commented Sep 3, 2026

Copy link
Copy Markdown
Member

This PR adds a GitHub workflow for checking markdown links. The check is scoped to local/relative links only at the moment, to keep the scope manageable.

I also fixed all of the broken local/relative markdown links.

Copilot AI lite review requested due to automatic review settings September 3, 2026 17:24
@lbussell
lbussell requested a review from mthalman as a code owner September 3, 2026 17:24
@lbussell
lbussell requested a review from nagilson September 3, 2026 17:25
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

The changes are low-risk (workflow + doc link fixes), and the only remaining feedback is minor documentation grammar.

Pull request overview

Adds a new GitHub Actions workflow to validate Markdown links (offline/local focus) and fixes a set of broken or outdated Markdown links across docs and agent templates.

Changes:

  • Added .github/workflows/check-markdown-links.yml to run becheran/mlc on PRs that touch *.md.
  • Updated numerous Markdown links to correct repo-relative paths and fix missing URL schemes.
  • Adjusted .github/agents/build-failure-analyst.agent.md fencing to avoid nested code-block issues.
File summaries
File Description
src/Containers/docs/ReleaseNotes/v0.4.0.md Fixes contributor profile link to a valid GitHub URL.
documentation/TemplateEngine/Samples/README.md Fixes paths to template test assets and updates contributor guidance link.
documentation/TemplateEngine/Reference-for-template.json.md Fixes relative link target for conditional processing doc.
documentation/TemplateEngine/README.md Updates contributor guidance link to the SDK developer guide.
documentation/TemplateEngine/contributing/how-to-create-new-value-form.md Updates doc links to current source/test locations (and includes a grammar issue noted in review).
documentation/TemplateEngine/contributing/how-to-create-new-generated-symbol.md Updates doc links to current source/test locations (and includes grammar issues noted in review).
documentation/TemplateEngine/api/Inside-the-Template-Engine.md Fixes file paths for SDK template providers after repo path changes.
documentation/specs/cli-installation-scenarios.md Replaces placeholder dependency link with a concrete external reference.
documentation/specs/canonical.md Fixes link to the correct installation scenarios spec file.
documentation/project-docs/SDK-PR-guide.md Fixes missing URL scheme for the dotnet/installer link.
documentation/general/decouple-vs-and-net-sdk.md Fixes broken relative link to analyzer-redirecting doc.
.github/workflows/check-markdown-links.yml Adds the offline Markdown link checking workflow using mlc.
.github/agents/build-failure-analyst.agent.md Uses a longer fence to safely embed fenced code blocks in the template.
Review details

Suppressed comments (1)

documentation/TemplateEngine/contributing/how-to-create-new-generated-symbol.md:110

  • Grammar issues in this paragraph: “derive it value(s)” should be “derive its value(s)”, and “can be find here” should be “can be found here” (or similar).
`IMacroConfigDependency` interface depicts macro capability to derive it value(s) from other macros.
Dependencies are defined based on passed `IReadOnlyList<string> symbols` collection. An example of implementation can be find here: [`CoalesceMacroConfig.cs`](../../../src/TemplateEngine/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/Macros/CoalesceMacroConfig.cs).
  • Files reviewed: 13/13 changed files
  • Comments generated: 2
  • Review effort level: Lite

@nagilson nagilson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great idea - thank you!

@@ -0,0 +1,40 @@
name: Check Markdown Links

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you intend on making this a required check for PRs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Probably a good idea.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will see about adding this after this PR is merged.

@lbussell

lbussell commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

/ba-g documentation-only change.
The build was triggered off of src/Containers/docs/ReleaseNotes/v0.4.0.md because it is under src/*.

@lbussell
lbussell merged commit 148f8cc into main Sep 3, 2026
19 of 31 checks passed
@lbussell
lbussell deleted the lbussell/fix-markdown-links branch September 3, 2026 20:37
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 4, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — c91e9a1f Deployed Sep 3, 2026 by lbussell via pre_activation #2834
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.

4 participants