Skip to content

fix: found issues reported by new no-unmatched-anchor rule#600

Open
JounQin wants to merge 1 commit intorelease-4.2from
fix/unmatched-anchors_4.2
Open

fix: found issues reported by new no-unmatched-anchor rule#600
JounQin wants to merge 1 commit intorelease-4.2from
fix/unmatched-anchors_4.2

Conversation

@JounQin
Copy link
Member

@JounQin JounQin commented Mar 20, 2026

Summary by CodeRabbit

Release Notes

  • Documentation

    • Enhanced documentation structure with improved section anchors for better navigation throughout configuration and deployment guides
    • Updated Kubernetes version compatibility references to point to centralized support matrix documentation
  • Changes

    • Removed note regarding Kubernetes version upgrade support limitations
    • Corrected virtualization network service section naming for clarity

Copilot AI review requested due to automatic review settings March 20, 2026 07:22
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (3)
  • main
  • master
  • ^\d.x$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0231c325-acb9-4cd6-a60a-1a9e2f0b47e7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

The PR adds explicit MDX anchor identifiers to 40+ documentation section headings for improved linking stability, consolidates Kubernetes version compatibility references to a central kubernetes-support-matrix.mdx file, corrects minor typos (e.g., "UnderStanding" → "Understanding"), and updates a build dependency in package.json.

Changes

Cohort / File(s) Summary
Backup and Cluster Configuration
docs/en/configure/backup/overview.mdx, docs/en/configure/clusters/on-premises.mdx, docs/en/configure/clusters/nodes/overview.mdx
Added explicit MDX anchors to section headings and updated documentation links to point to kubernetes-support-matrix.mdx#version-support-matrix.
Cloud-Init Network Configuration
docs/en/configure/clusters/managed/cloud-init/network/aws-eks.mdx, docs/en/configure/clusters/managed/cloud-init/network/azure-aks.mdx, docs/en/configure/clusters/managed/cloud-init/network/google-gke.mdx, docs/en/configure/clusters/managed/cloud-init/network/huawei-cce.mdx
Added explicit MDX anchors to multiple section headings (#deploy-aws-load-balancer-controller, #test-aws-cli-and-eksctl-installation, #create-certificate, #deploy-ingress-controller, etc.).
Cloud-Init Storage Configuration
docs/en/configure/clusters/managed/cloud-init/storage/aws-eks.mdx, docs/en/configure/clusters/managed/cloud-init/storage/azure-aks.mdx, docs/en/configure/clusters/managed/cloud-init/storage/google-gke.mdx, docs/en/configure/clusters/managed/cloud-init/storage/huawei-cce.mdx
Added explicit MDX anchors to storage-related section headings (#configure-available-storage-class-parameters, #default-storage-class-description, #available-storage-class-parameters, etc.).
Managed Cluster Import and Registration
docs/en/configure/clusters/managed/how-to/fetch-kubeconfig.mdx, docs/en/configure/clusters/managed/import/alibaba-ack.mdx, docs/en/configure/clusters/managed/import/aws-eks.mdx, docs/en/configure/clusters/managed/import/azure-aks.mdx, docs/en/configure/clusters/managed/import/gcp-gke.mdx, docs/en/configure/clusters/managed/import/huawei-cce.mdx, docs/en/configure/clusters/managed/import/openshift.mdx, docs/en/configure/clusters/managed/import/standard-kubernetes.mdx, docs/en/configure/clusters/managed/import/tencent-tke.mdx, docs/en/configure/clusters/managed/register.mdx
Updated prerequisite documentation links from /configure/clusters/overview.mdx#version-compatibility to /overview/kubernetes-support-matrix.mdx#version-support-matrix; converted HTML anchor span to MDX anchor; added explicit MDX anchors to FAQ and configuration headings.
Networking Configuration
docs/en/configure/networking/functions/configure_alb.mdx, docs/en/configure/networking/functions/configure_domain.mdx, docs/en/configure/networking/functions/configure_gatewayapi_route.mdx, docs/en/configure/networking/functions/configure_subnet.mdx, docs/en/configure/networking/how_to/kube_ovn/multiple_networks.mdx
Added explicit MDX anchors to section headings and updated internal anchor reference from local #intersection_rule to external file reference.
Developer Application Documentation
docs/en/developer/building_application/concepts/custom_application.mdx, docs/en/developer/building_application/create_applications/operator_app.mdx, docs/en/developer/building_application/namespace/resource_quota.mdx, docs/en/developer/building_application/namespace/security_policies.mdx, docs/en/developer/building_application/namespace/update_overcommit.mdx, docs/en/developer/building_application/working_with_helm_charts.mdx
Corrected heading text ("UnderStanding" → "Understanding"), added explicit MDX anchors, and removed trailing whitespace; no functional logic changes.
Developer S2I and Extended Functionality
docs/en/developer/s2i/functions/s2i_application_management.mdx, docs/en/extend/cluster_plugin.mdx, docs/en/extend/upload_package.mdx
Added explicit MDX anchors (#procedure, #installing-via-yaml, #common-parameters) to section headings.
Observability and Overview
docs/en/observability/monitor/functions/manage_dashboard.mdx, docs/en/overview/kubernetes-support-matrix.mdx
Updated heading anchors in dashboard management (#import-dashboard, #ref-function) and added anchor to "Version Support Matrix" heading; ensured proper file termination.
Security, Storage, and Networking
docs/en/security/users_and_roles/idp/functions/ldap_manage.mdx, docs/en/storage/storagesystem_ceph/concepts/concept.mdx, docs/en/storage/storagesystem_minio/installation.mdx, docs/en/networking/overview.mdx
Added explicit MDX anchors to section headings (#addldap, #rook-operator, #ceph-csi, #ceph-module-functions, #stro, #gatewayapi).
Upgrade and Virtualization
docs/en/upgrade/overview.mdx, docs/en/virtualization/virtualization/installation.mdx, docs/en/virtualization/virtualization/network/functions/vm_network.mdx, docs/en/virtualization/virtualization/network/how_to/vm_sriov.mdx, docs/en/virtualization/virtualization/virtual_machine/functions/virtual_management.mdx, docs/en/virtualization/virtualization/virtual_machine/how_to/vm_gpust.mdx
Removed Kubernetes version upgrade note from upgrade documentation; added explicit MDX anchors to virtualization headings; renamed "Add Internal Routes" to "Add Service"; updated inline anchor references for pciDeviceSelector; removed trailing whitespace.
Build Dependencies
package.json
Updated @alauda/doom dependency from semantic version range (^1.20.4) to fixed artifact reference (https://pkg.pr.new/@alauda/doom@0f1b2c8).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • PR #433 — Updates the same @alauda/doom dependency in package.json to a different version.
  • PR #44 — Makes overlapping documentation anchor and heading edits across many of the same MDX files.
  • PR #527 — Restructures and modifies docs/en/configure/backup/overview.mdx, touching the same document and headings as the main PR.

Suggested reviewers

  • chinameok
  • fanzy618

Poem

🐰 With anchors placed and links aligned,
The docs now navigate refined!
From chaos springs a clearer way,
Each heading marked for us today.
A rabbit hops through changes bright! 🌟

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: found issues reported by new no-unmatched-anchor rule' directly describes the main change: fixing documentation anchor linking issues identified by a new linting rule.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/unmatched-anchors_4.2
📝 Coding Plan
  • Generate coding plan for human review comments

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.

@JounQin
Copy link
Member Author

JounQin commented Mar 20, 2026

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@JounQin
Copy link
Member Author

JounQin commented Mar 20, 2026

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
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 the docs site to address link/anchor validation errors (from the new no-unmatched-anchor rule) by adding explicit anchor IDs to headings and correcting intra-/inter-document anchor references. The PR also updates the docs build toolchain dependency (@alauda/doom), resulting in a large yarn.lock refresh.

Changes:

  • Add explicit heading anchors across many .mdx pages and fix anchor/link targets.
  • Update @alauda/doom dependency (and corresponding lockfile), plus assorted transitive dependency updates.
  • Remove an unused SVG asset.

Reviewed changes

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

Show a summary per file
File Description
yarn.lock Updates lockfile due to @alauda/doom change and transitive dependency refresh.
package.json Pins @alauda/doom dependency to a URL.
lint/public/logo.svg Removes an SVG asset from the repo.
docs/en/virtualization/virtualization/virtual_machine/how_to/vm_gpust.mdx Fixes an inline anchor definition for pciDeviceSelector.
docs/en/virtualization/virtualization/virtual_machine/functions/virtual_management.mdx Adds explicit heading IDs for anchor stability.
docs/en/virtualization/virtualization/network/how_to/vm_sriov.mdx Fixes malformed inline anchor id (#VF_IDVF_ID).
docs/en/virtualization/virtualization/network/functions/vm_network.mdx Updates section/link to point at the corrected anchor.
docs/en/virtualization/virtualization/installation.mdx Adds explicit heading ID for deep-linking.
docs/en/upgrade/overview.mdx Removes content that included an anchor link that no longer exists.
docs/en/storage/storagesystem_minio/installation.mdx Adds explicit heading ID for “Storage Pool Overview”.
docs/en/storage/storagesystem_ceph/concepts/concept.mdx Adds explicit IDs to multiple headings.
docs/en/security/users_and_roles/idp/functions/ldap_manage.mdx Adds explicit heading ID for “Add LDAP”.
docs/en/overview/kubernetes-support-matrix.mdx Adds explicit ID for “Version Support Matrix”.
docs/en/observability/monitor/functions/manage_dashboard.mdx Adds explicit heading ID and updates internal references.
docs/en/networking/overview.mdx Adds explicit heading ID for “GatewayAPI”.
docs/en/extend/upload_package.mdx Adds explicit heading ID for “Common Parameters”.
docs/en/extend/cluster_plugin.mdx Adds explicit heading ID for “Installing via YAML”.
docs/en/developer/s2i/functions/s2i_application_management.mdx Adds explicit heading ID for “Procedure”.
docs/en/developer/building_application/working_with_helm_charts.mdx Adds explicit heading ID for section 1.
docs/en/developer/building_application/namespace/update_overcommit.mdx Fixes heading capitalization (“UnderStanding” → “Understanding”).
docs/en/developer/building_application/namespace/security_policies.mdx Adds explicit heading ID for “Namespace Labels”.
docs/en/developer/building_application/namespace/resource_quota.mdx Adds explicit heading ID for “Other Quotas”.
docs/en/developer/building_application/create_applications/operator_app.mdx Fixes heading capitalization and adds explicit ID.
docs/en/developer/building_application/concepts/custom_application.mdx Fixes whitespace/wrapping issues and trailing spaces in code block.
docs/en/configure/networking/how_to/kube_ovn/multiple_networks.mdx Adds explicit heading ID for “Deploying the Multus CNI Plugin”.
docs/en/configure/networking/functions/configure_subnet.mdx Adds explicit IDs to headings referenced by links.
docs/en/configure/networking/functions/configure_gatewayapi_route.mdx Fixes an anchor link to point to the correct document.
docs/en/configure/networking/functions/configure_domain.mdx Adds explicit heading ID for “Creating Domain…”.
docs/en/configure/networking/functions/configure_alb.mdx Adds explicit heading ID for “dslx”.
docs/en/configure/clusters/on-premises.mdx Adds explicit heading ID for “Node Settings”.
docs/en/configure/clusters/nodes/overview.mdx Fixes a link target to the correct prerequisites section.
docs/en/configure/clusters/managed/register.mdx Updates link to support matrix anchor; formatting cleanup.
docs/en/configure/clusters/managed/import/tencent-tke.mdx Updates prerequisites link to support matrix anchor.
docs/en/configure/clusters/managed/import/standard-kubernetes.mdx Updates prerequisites link to support matrix anchor; formatting cleanup; adds explicit anchor to a subsection.
docs/en/configure/clusters/managed/import/openshift.mdx Updates prerequisites link to support matrix anchor; formatting cleanup.
docs/en/configure/clusters/managed/import/huawei-cce.mdx Updates prerequisites link to support matrix anchor.
docs/en/configure/clusters/managed/import/gcp-gke.mdx Updates prerequisites link to support matrix anchor.
docs/en/configure/clusters/managed/import/azure-aks.mdx Updates prerequisites link to support matrix anchor; adds explicit heading ID for FAQ entry.
docs/en/configure/clusters/managed/import/aws-eks.mdx Updates prerequisites link to support matrix anchor.
docs/en/configure/clusters/managed/import/alibaba-ack.mdx Updates prerequisites link to support matrix anchor.
docs/en/configure/clusters/managed/how-to/fetch-kubeconfig.mdx Converts a manual <span id> anchor to an explicit heading ID.
docs/en/configure/clusters/managed/cloud-init/storage/huawei-cce.mdx Adds explicit heading ID for “Default Storage Class Description”.
docs/en/configure/clusters/managed/cloud-init/storage/google-gke.mdx Adds explicit heading IDs for multiple sections.
docs/en/configure/clusters/managed/cloud-init/storage/azure-aks.mdx Adds explicit heading IDs for multiple sections.
docs/en/configure/clusters/managed/cloud-init/storage/aws-eks.mdx Adds explicit heading ID for “Configure Available Storage Class Parameters”.
docs/en/configure/clusters/managed/cloud-init/network/huawei-cce.mdx Adds explicit heading ID for “Create Certificate”.
docs/en/configure/clusters/managed/cloud-init/network/google-gke.mdx Adds explicit heading ID for “Create Certificate”.
docs/en/configure/clusters/managed/cloud-init/network/azure-aks.mdx Adds explicit heading IDs for multiple sections.
docs/en/configure/clusters/managed/cloud-init/network/aws-eks.mdx Adds explicit heading IDs for multiple sections.
docs/en/configure/backup/overview.mdx Adds explicit heading IDs for backup/restore sections.

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

Comment on lines 16 to 18
"dependencies": {
"@alauda/doom": "^1.20.4"
"@alauda/doom": "https://pkg.pr.new/@alauda/doom@0f1b2c8"
},
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

@alauda/doom is pinned to a pkg.pr.new preview URL. That host is typically ephemeral and can break installs/auditing later (including supply-chain review and offline builds). Prefer a published npm version (or an internal registry) and only use preview URLs in temporary branches/CI experiments.

Copilot uses AI. Check for mistakes.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 20, 2026

Deploying alauda-container-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2179eb4
Status: ✅  Deploy successful!
Preview URL: https://7005669e.alauda-container-platform.pages.dev
Branch Preview URL: https://fix-unmatched-anchors-4-2.alauda-container-platform.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/en/developer/building_application/create_applications/operator_app.mdx (1)

11-11: Optional wording polish: hyphenate “Operator-Backed” in the heading.

Using the compound adjective form improves consistency/readability in English docs.

Suggested tweak
-## Understanding Operator Backed Application {`#understanding-operator-backed-application`}
+## Understanding Operator-Backed Application {`#understanding-operator-backed-application`}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/en/developer/building_application/create_applications/operator_app.mdx`
at line 11, Change the heading "Understanding Operator Backed Application" to
the hyphenated form "Understanding Operator-Backed Application" and update the
header ID/anchor to match (e.g., {`#understanding-operator-backed-application`})
so the visible title and its linkable identifier remain consistent; edit the
line containing that heading text to apply the hyphenation in both the displayed
string and the anchor.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 17: Add an inline comment next to the "@alauda/doom" dependency in
package.json explaining this is a temporary pkg.pr.new pre-release URL used to
test the new "no-unmatched-anchor" lint rule and that it should be replaced with
the published npm version (e.g., the prior ^1.20.4) once released; update the
package.json dependencies section with that TODO comment and also add/confirm a
short note in the PR or release plan indicating there is an active plan to
replace this URL with the official npm release before merging to release-4.2.

---

Nitpick comments:
In `@docs/en/developer/building_application/create_applications/operator_app.mdx`:
- Line 11: Change the heading "Understanding Operator Backed Application" to the
hyphenated form "Understanding Operator-Backed Application" and update the
header ID/anchor to match (e.g., {`#understanding-operator-backed-application`})
so the visible title and its linkable identifier remain consistent; edit the
line containing that heading text to apply the hyphenation in both the displayed
string and the anchor.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4e281e12-533c-44be-8845-166a54a3b443

📥 Commits

Reviewing files that changed from the base of the PR and between fa90bce and ab55de5.

⛔ Files ignored due to path filters (2)
  • lint/public/logo.svg is excluded by !**/*.svg
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (48)
  • docs/en/configure/backup/overview.mdx
  • docs/en/configure/clusters/managed/cloud-init/network/aws-eks.mdx
  • docs/en/configure/clusters/managed/cloud-init/network/azure-aks.mdx
  • docs/en/configure/clusters/managed/cloud-init/network/google-gke.mdx
  • docs/en/configure/clusters/managed/cloud-init/network/huawei-cce.mdx
  • docs/en/configure/clusters/managed/cloud-init/storage/aws-eks.mdx
  • docs/en/configure/clusters/managed/cloud-init/storage/azure-aks.mdx
  • docs/en/configure/clusters/managed/cloud-init/storage/google-gke.mdx
  • docs/en/configure/clusters/managed/cloud-init/storage/huawei-cce.mdx
  • docs/en/configure/clusters/managed/how-to/fetch-kubeconfig.mdx
  • docs/en/configure/clusters/managed/import/alibaba-ack.mdx
  • docs/en/configure/clusters/managed/import/aws-eks.mdx
  • docs/en/configure/clusters/managed/import/azure-aks.mdx
  • docs/en/configure/clusters/managed/import/gcp-gke.mdx
  • docs/en/configure/clusters/managed/import/huawei-cce.mdx
  • docs/en/configure/clusters/managed/import/openshift.mdx
  • docs/en/configure/clusters/managed/import/standard-kubernetes.mdx
  • docs/en/configure/clusters/managed/import/tencent-tke.mdx
  • docs/en/configure/clusters/managed/register.mdx
  • docs/en/configure/clusters/nodes/overview.mdx
  • docs/en/configure/clusters/on-premises.mdx
  • docs/en/configure/networking/functions/configure_alb.mdx
  • docs/en/configure/networking/functions/configure_domain.mdx
  • docs/en/configure/networking/functions/configure_gatewayapi_route.mdx
  • docs/en/configure/networking/functions/configure_subnet.mdx
  • docs/en/configure/networking/how_to/kube_ovn/multiple_networks.mdx
  • docs/en/developer/building_application/concepts/custom_application.mdx
  • docs/en/developer/building_application/create_applications/operator_app.mdx
  • docs/en/developer/building_application/namespace/resource_quota.mdx
  • docs/en/developer/building_application/namespace/security_policies.mdx
  • docs/en/developer/building_application/namespace/update_overcommit.mdx
  • docs/en/developer/building_application/working_with_helm_charts.mdx
  • docs/en/developer/s2i/functions/s2i_application_management.mdx
  • docs/en/extend/cluster_plugin.mdx
  • docs/en/extend/upload_package.mdx
  • docs/en/networking/overview.mdx
  • docs/en/observability/monitor/functions/manage_dashboard.mdx
  • docs/en/overview/kubernetes-support-matrix.mdx
  • docs/en/security/users_and_roles/idp/functions/ldap_manage.mdx
  • docs/en/storage/storagesystem_ceph/concepts/concept.mdx
  • docs/en/storage/storagesystem_minio/installation.mdx
  • docs/en/upgrade/overview.mdx
  • docs/en/virtualization/virtualization/installation.mdx
  • docs/en/virtualization/virtualization/network/functions/vm_network.mdx
  • docs/en/virtualization/virtualization/network/how_to/vm_sriov.mdx
  • docs/en/virtualization/virtualization/virtual_machine/functions/virtual_management.mdx
  • docs/en/virtualization/virtualization/virtual_machine/how_to/vm_gpust.mdx
  • package.json
💤 Files with no reviewable changes (1)
  • docs/en/upgrade/overview.mdx

@JounQin JounQin force-pushed the fix/unmatched-anchors_4.2 branch from ab55de5 to 2179eb4 Compare March 20, 2026 08:08
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