Repository navigation
fix: correct the table of contents anchors in the 4.0 and 7.2 service docs - #1383
Merged
Merged
Conversation
The 4.0 service readmes were generated before the toc anchor fix in opencloud-eu/opencloud#4005, so 9 toc links kept characters like '/', '(' or backticks that Docusaurus removes from heading ids. These files are a frozen snapshot that the generator doesn't update anymore, so fix the links by hand.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the documentation anchor-link corrections.
No open issues 🎉
What changed in this PR
This PR repairs nine table-of-contents links in the frozen OpenCloud 4.0 service documentation, aligning them with Docusaurus-generated heading anchors.
Changes:
- Removes punctuation from link fragments to match the generated heading IDs.
- Updates eight service readmes without changing headings or documentation content.
| File | Description |
|---|---|
versioned_docs/version-4.0/_static/env-vars/search_readme.md |
Fixes the content analysis/extraction anchor. |
versioned_docs/version-4.0/_static/env-vars/proxy_readme.md |
Fixes both numbered metrics-mode anchors. |
versioned_docs/version-4.0/_static/env-vars/policies_readme.md |
Fixes the event service postprocessing anchor. |
versioned_docs/version-4.0/_static/env-vars/auth-service_readme.md |
Fixes the auth service family anchor. |
versioned_docs/version-4.0/_static/env-vars/auth-bearer_readme.md |
Fixes the auth service family anchor. |
versioned_docs/version-4.0/_static/env-vars/auth-basic_readme.md |
Fixes the auth service family anchor. |
versioned_docs/version-4.0/_static/env-vars/auth-app_readme.md |
Fixes the developer CLI anchor. |
versioned_docs/version-4.0/_static/env-vars/app-registry_readme.md |
Fixes the MIME type configuration/creation allow-list anchor. |
Review effort: Balanced
Same as for 4.0: the 7.2 service readmes are a frozen snapshot from before opencloud-eu/opencloud#4005, so 8 toc links dropped the hyphens of hyphenated words (e.g. #define-readonly-attributes instead of #define-read-only-attributes).
AlexAndBear
added a commit
that referenced
this pull request
Nov 16, 2026
All broken anchors are fixed now (#1383, opencloud-eu/opencloud#4005), so turn the warning into an error to keep it that way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The service readmes for
nexthave correct table of contents anchors since opencloud-eu/opencloud#4005 and #1382. The generator only writes todocs/_static/env-vars/, though. The readmes inversioned_docs/version-4.0/_static/env-vars/andversioned_docs/version-7.2/_static/env-vars/are frozen snapshots from before that fix, so this PR fixes their broken toc links by hand.The correct anchors were computed with github-slugger 1.5.0, the version Docusaurus uses, from the headings of each file in page order (including the
-1,-2suffix for duplicate headings). Only toc links that differ were changed.4.0 (9 links)
The old anchor logic kept characters that Docusaurus removes from heading ids:
app-registry_readme.md#mime-type-configuration-/-creation-allow-list#mime-type-configuration--creation-allow-listauth-app_readme.md#via-cli-(developer-only)#via-cli-developer-onlyauth-basic_readme.md,auth-bearer_readme.md,auth-service_readme.md#the-`auth`-service-family#the-auth-service-familypolicies_readme.md#event-service-(postprocessing)#event-service-postprocessingproxy_readme.md#1)-single-process-mode,#2)-standalone-mode#1-single-process-mode,#2-standalone-modesearch_readme.md#content-analysis-/-extraction#content-analysis--extraction7.2 (8 links)
The anchor logic at that time removed hyphens inside words:
frontend_readme.md#define-readonly-attributes,#autoaccept-shares#define-read-only-attributes,#auto-accept-sharesgraph_readme.md#readonly-access-to-existing-ldap-servers#read-only-access-to-existing-ldap-serversocs_readme.md#signingkeys-endpoint,#signingkeys-store#signing-keys-endpoint,#signing-keys-storesearch_readme.md#manually-trigger-reindexing-a-space#manually-trigger-re-indexing-a-spacestorage-users_readme.md#manage-trashbin-items,#list-and-restore-trashbins-items#manage-trash-bin-items,#list-and-restore-trash-bins-itemsTested
pnpm buildpasses without any broken-anchor warnings (34 onmain).next, 7.2 and 4.0 finds no toc link that differs from the heading ids anymore.pnpm lint:mdandpnpm format:checkpass.With no broken anchors left,
onBrokenAnchorscould now be set to'throw', so new broken anchors fail CI.