Skip to content

fix: correct the table of contents anchors in the 4.0 and 7.2 service docs - #1383

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/toc-anchors-4.0
Nov 16, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/toc-anchors-4.0

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The service readmes for next have correct table of contents anchors since opencloud-eu/opencloud#4005 and #1382. The generator only writes to docs/_static/env-vars/, though. The readmes in versioned_docs/version-4.0/_static/env-vars/ and versioned_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, -2 suffix 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:

File Before After
app-registry_readme.md #mime-type-configuration-/-creation-allow-list #mime-type-configuration--creation-allow-list
auth-app_readme.md #via-cli-(developer-only) #via-cli-developer-only
auth-basic_readme.md, auth-bearer_readme.md, auth-service_readme.md #the-`auth`-service-family #the-auth-service-family
policies_readme.md #event-service-(postprocessing) #event-service-postprocessing
proxy_readme.md #1)-single-process-mode, #2)-standalone-mode #1-single-process-mode, #2-standalone-mode
search_readme.md #content-analysis-/-extraction #content-analysis--extraction

7.2 (8 links)

The anchor logic at that time removed hyphens inside words:

File Before After
frontend_readme.md #define-readonly-attributes, #autoaccept-shares #define-read-only-attributes, #auto-accept-shares
graph_readme.md #readonly-access-to-existing-ldap-servers #read-only-access-to-existing-ldap-servers
ocs_readme.md #signingkeys-endpoint, #signingkeys-store #signing-keys-endpoint, #signing-keys-store
search_readme.md #manually-trigger-reindexing-a-space #manually-trigger-re-indexing-a-space
storage-users_readme.md #manage-trashbin-items, #list-and-restore-trashbins-items #manage-trash-bin-items, #list-and-restore-trash-bins-items

Tested

  • pnpm build passes without any broken-anchor warnings (34 on main).
  • Running the same check over next, 7.2 and 4.0 finds no toc link that differs from the heading ids anymore.
  • pnpm lint:md and pnpm format:check pass.

With no broken anchors left, onBrokenAnchors could now be set to 'throw', so new broken anchors fail CI.

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.
Copilot AI balanced review requested due to automatic review settings November 16, 2026 13:07

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 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 AlexAndBear changed the title fix: correct the table of contents anchors in the 4.0 service docs fix: correct the table of contents anchors in the 4.0 and 7.2 service docs Nov 16, 2026

@Svanvith Svanvith 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.

👍

@AlexAndBear
AlexAndBear merged commit 9d8bf85 into main Nov 16, 2026
5 checks passed
@AlexAndBear
AlexAndBear deleted the fix/toc-anchors-4.0 branch November 16, 2026 13:15
@openclouders openclouders mentioned this pull request Nov 16, 2026
1 task
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

⌂ Proxy