Skip to content

Fix broken links in markdown#1539

Merged
andrewnicols merged 1 commit intomoodle:mainfrom
andrewnicols:fixLinks
Mar 19, 2026
Merged

Fix broken links in markdown#1539
andrewnicols merged 1 commit intomoodle:mainfrom
andrewnicols:fixLinks

Conversation

@andrewnicols
Copy link
Copy Markdown
Member

These were just broken anchors.

@andrewnicols andrewnicols requested a review from a team as a code owner March 18, 2026 04:48
Copilot AI review requested due to automatic review settings March 18, 2026 04:48
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 18, 2026

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 37ea730
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69bbc9ef4eb29a0008edc249
😎 Deploy Preview https://deploy-preview-1539--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Markdown docs to address broken internal anchors/links across release notes and developer documentation.

Changes:

  • Removes or simplifies outdated PHPUnit-upgrade links in older release notes (3.4, 3.11) that pointed at non-existent anchors.
  • Fixes/adds explicit heading anchors in docs to support stable internal linking.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
general/releases/3.4.md Removes a broken link from the PHPUnit upgrade bullet in the 3.4 release notes.
general/releases/3.11.md Removes a broken anchor link reference from the PHPUnit upgrade note in the 3.11 release notes.
general/development/policies/codingstyle/index.md Attempts to fix a heading anchor for the namespaces-within-tests section.
docs/guides/testing/index.md Adds an explicit heading anchor for the Moodle 4.4 / PHPUnit 9.6 upgrade section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread general/development/policies/codingstyle/index.md Outdated
Comment thread docs/guides/testing/index.md Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes broken documentation anchors/links in the Moodle docs site by updating headings and removing references to anchors that no longer exist.

Changes:

  • Removes outdated/broken deep links to PHPUnit upgrade anchors in older release notes.
  • Adds/updates explicit heading anchors intended to stabilize cross-page links.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
general/releases/3.4.md Removes a broken link/anchor reference in the developer notes.
general/releases/3.11.md Removes a broken anchor link from the developer notes.
general/development/policies/codingstyle/index.md Updates a heading to include an explicit anchor ID for #namespaces-within-tests.
docs/guides/testing/index.md Adds an explicit anchor ID to the “Upgrading unit tests…” heading.

Comment thread docs/guides/testing/index.md Outdated
Comment thread general/development/policies/codingstyle/index.md Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Moodle DevDocs Docusaurus site content to address broken internal links/anchors in Markdown, mainly by adding explicit heading IDs and removing references to anchors that no longer exist.

Changes:

  • Removed two broken anchor links from historical release notes (3.4 and 3.11).
  • Fixed an invalid heading/anchor declaration in the coding style policy by using an explicit {#...} ID.
  • Added an explicit {#...} heading ID in the PHPUnit testing guide to provide a stable anchor.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
general/releases/3.4.md Removes a broken link to a non-existent testing-guide anchor in the 3.4 release notes.
general/releases/3.11.md Removes a broken link to a non-existent testing-guide anchor in the 3.11 release notes.
general/development/policies/codingstyle/index.md Fixes the “namespaces-within-tests” section header to use a valid explicit anchor ID.
docs/guides/testing/index.md Adds an explicit anchor ID for the Moodle 4.4 / PHPUnit 9.6 upgrade section.

Comment thread general/releases/3.4.md
Comment thread general/releases/3.11.md
These constants may be then used in your test or plugin code.

## Upgrading unit tests to work with Moodle 4.4 and up (PHPUnit 9.6)
## Upgrading unit tests to work with Moodle 4.4 and up (PHPUnit 9.6) {#upgrading-unit-tests-to-work-with-moodle-4.4}
These were just broken anchors.
Copy link
Copy Markdown
Collaborator

@mickhawkins mickhawkins left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@mickhawkins mickhawkins enabled auto-merge March 19, 2026 10:04
@andrewnicols andrewnicols disabled auto-merge March 19, 2026 21:22
@andrewnicols andrewnicols merged commit c36b6db into moodle:main Mar 19, 2026
6 checks passed
@andrewnicols andrewnicols deleted the fixLinks branch March 19, 2026 21:23
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.

3 participants