Unify Chinese-doc anchor IDs to stable English slugs#326
Merged
Conversation
Convert all <a id="x"></a> HTML anchors and auto-generated Chinese slugs
(#_1, #_2, etc.) to explicit attr_list IDs ({ #english-id }) on headings.
Sync all same-page and cross-file references, including URL-form links.
Replace https://tronprotocol.github.io/documentation-zh/... links with relative file.md(#anchor) paths so navigation works against the source tree and is less brittle to site URL changes. Also fixes a stale developers/litefullnode path that pointed to a moved file.
- Strip numeric prefix/suffix from step-style IDs (#step1, tronprotocol#2-x, #x-1) - Rename IDs that didn't reflect the heading topic (#private_key → #key-management, #fullnode-jvm → #mainnet-fullnode-jvm-tuning, etc.) - Disambiguate duplicate '推荐系统配置' headings with section prefixes (#kafka-system-requirements, #mongodb-system-requirements) - Update all same-file references to match the new anchor IDs
vivian1912
approved these changes
May 18, 2026
Benson0224
approved these changes
May 20, 2026
4 tasks
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.
Summary
Anchors in the Chinese docs were a mix of auto-generated slugs (
#_1,#_2), HTML<a id>tags, and ad-hoc placeholders (#step1,#private_key). Cross-file references also used absolute site URLs. This PR makes them consistent.<a id="x"></a>and Python-Markdown auto-slugs with attr_list{ #english-id }syntax on the heading itselffile.md#anchorlinks — drophttps://tronprotocol.github.io/documentation-zh/...paths so refs survive site moves and work in local preview#step1,#2-operations-...,#checking-system-configuration-1)#private_key→#key-management,#fullnode-jvm→#mainnet-fullnode-jvm-tuning, etc.)推荐系统配置headings with section prefixes (#kafka-system-requirements,#mongodb-system-requirements)All same-file and cross-file references were updated to match.
Test plan
mkdocs servelocally and click through anchor links in the changed files推荐系统配置sections both resolve to distinct anchors