docs: Restore custom heading anchors#29092
Closed
armandomontanez wants to merge 3 commits intobazelbuild:masterfrom
Closed
docs: Restore custom heading anchors#29092armandomontanez wants to merge 3 commits intobazelbuild:masterfrom
armandomontanez wants to merge 3 commits intobazelbuild:masterfrom
Conversation
Restores custom heading anchors to mdx files in a syntax that Mintlify supports.
Contributor
Author
|
@fweikert @alan707 Support for custom heading anchors is documented here: https://www.mintlify.com/docs/guides/linking#custom-anchor-ids Might be new? |
fweikert
reviewed
Mar 25, 2026
Member
|
Nice! However, I noticed that some header IDs were not restored (see comment). Is there a script you can share? We also need to fix the header IDs in the versioned docs. |
Restores more heading anchors in cases where {{}} blocks or <> blocks
were different across md and mdx files.
Contributor
Author
|
Script is here: https://github.com/armandomontanez/bazel/tree/script-to-restore-custom-heading-anchors LMK if you want me to actually add it to the PR. |
fweikert
approved these changes
Mar 25, 2026
Member
|
Ok, thanks for the link. I'm importing this change now. |
copybara-service bot
pushed a commit
that referenced
this pull request
Mar 25, 2026
Now that Mintlify supports custom header IDs (https://www.mintlify.com/docs/guides/linking#custom-anchor-ids) we can bring them back. This change was generated by a Python script that read custom header IDs from the old .md docs and applied them to the corresponding .mdx files. It ignores unversioned files since they've been handled as part of #29092. Fixes bazel-contrib/bazel-docs#252 PiperOrigin-RevId: 889198500
copybara-service bot
pushed a commit
that referenced
this pull request
Mar 25, 2026
Now that Mintlify supports custom header IDs (https://www.mintlify.com/docs/guides/linking#custom-anchor-ids) we can bring them back. This change was generated by a Python script that read custom header IDs from the old .md docs and applied them to the corresponding .mdx files. It ignores unversioned files since they've been handled as part of #29092. Fixes bazel-contrib/bazel-docs#252 PiperOrigin-RevId: 889417595 Change-Id: I9a76c0104ba46f9c8af963758914265c3541002b
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.
Restores custom heading anchors to mdx files in a syntax that Mintlify supports.
RELNOTES: None