Repository navigation
docs(i18n): remove the duplicate stale zh-CN row - #1386
Merged
Merged
Conversation
The pl-PL merge (ItsNotRexed#1305) was branched before ItsNotRexed#1286 updated the zh-CN row, so the merge kept the old 0d61c35 row next to the synced e7584c5 one. Drop the stale row and add tests/test_i18n_index.py so the table cannot list a language twice, point at a missing quickstart, or carry a malformed row. Docs and a test only, no game data.
Contributor
|
Static docs check only, at head
The dedupe is consistent with the row the coordinator flagged. |
Contributor
|
Correction to my previous comment: I labelled the checked head as |
Contributor
|
Tested on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. |
1 of 2 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.
Claimed in the coordination issue as: #1218 (comment)
What and why
docs/i18n/README.mdlistszh-CNtwice onmain:The
pl-PLPR #1305 was branched before #1286 updated thezh-CNrow, so its copy of the table still had0d61c357; merging it kept the old row next to the synced one. The quickstart's own header sayse7584c5, so the0d61c357row is stale and the index should list one row per language.This removes the stale row and adds
tests/test_i18n_index.py:duplicate_codes()empty), each row's file must exist, the maintainer must be an@name, and the synced commit must look like a commit id;zh-CNrow must be reported and a malformed row must raise, so the test cannot pass by parsing nothing.Tested
python -I tests/test_i18n_index.py-> 4 tests OK.python -I tests/test_docs_links.py(merged in Tests: check relative Markdown links and heading anchors #1294) -> 5 tests OK after the row removal.python -m compileall -q tests/test_i18n_index.pyandgit diff --checkclean.Docs and a test only, no game data, no build/CI change.
AI-assisted.
Checklist
docs/design.md??not applicable.