Second rename to validate consistency across multiple successive renames.
Expected outcome:
✅ Physical files:
- cn/validation-v2.mdx → cn/validation-v3.mdx
- jp/validation-v2.mdx → jp/validation-v3.mdx
✅ docs.json entries updated (NOT deleted):
- cn/.../validation-v2 → cn/.../validation-v3
- jp/.../validation-v2 → jp/.../validation-v3
✅ No extensions in docs.json entries
✅ NO deletions of cn/jp entries
This final test confirms that all three fixes work consistently
across multiple successive renames, not just a single rename.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
First rename to validate all three fixes work together.
Expected outcome:
✅ Physical files:
- cn/validation-v1.mdx → cn/validation-v2.mdx
- jp/validation-v1.mdx → jp/validation-v2.mdx
✅ docs.json entries updated (NOT deleted):
- cn/.../validation-v1 → cn/.../validation-v2
- jp/.../validation-v1 → jp/.../validation-v2
✅ No extensions in docs.json entries
✅ NO deletions of cn/jp entries
This validates:
1. Extension stripping for location lookup works
2. Conditional rename detection works
3. Extension stripping for new_target works
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Second rename to validate consistency of all three fixes.
Expected with complete fix:
✅ Physical files renamed:
- cn/rename-test-beta.mdx → cn/rename-test-gamma.mdx
- jp/rename-test-beta.mdx → jp/rename-test-gamma.mdx
✅ docs.json entries updated (NOT deleted):
- cn/.../rename-test-beta → cn/.../rename-test-gamma
- jp/.../rename-test-beta → jp/.../rename-test-gamma
✅ No extensions in docs.json entries
This validates that the fix works consistently across multiple
successive renames, not just the first rename.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
First rename to validate all three fixes work correctly.
Expected with complete fix:
✅ Physical files renamed:
- cn/rename-test-alpha.mdx → cn/rename-test-beta.mdx
- jp/rename-test-alpha.mdx → jp/rename-test-beta.mdx
✅ docs.json entries updated (NOT deleted):
- cn/.../rename-test-alpha → cn/.../rename-test-beta
- jp/.../rename-test-alpha → jp/.../rename-test-beta
✅ No extensions in docs.json entries
All three fixes should work together:
1. Location lookup finds the file (extension stripped)
2. Reconcile detects rename (conditional skip)
3. New entry has no extension (new_target stripped)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Final rename to validate complete fix with all three fixes:
1. Extension stripping for location lookup
2. Conditional rename detection in reconcile
3. Extension stripping for new_target when adding to docs.json
Expected outcome:
- ✓ cn/test-final-step2.mdx → cn/test-final-step3.mdx
- ✓ jp/test-final-step2.mdx → jp/test-final-step3.mdx
- ✓ cn docs.json: "cn/.../test-final-step3" (no extension)
- ✓ jp docs.json: "jp/.../test-final-step3" (no extension)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Validates rename fix from PR#189.
This is step 1: adding the initial file.
Next step will rename alpha → beta.
Expected workflow:
1. This commit: Create en/test-rename-alpha.mdx + docs.json entry
2. Auto-sync: Translate to cn/jp + add docs.json entries
3. Next commit: Rename en/alpha → en/beta in docs.json
4. Auto-sync: Should update BOTH physical files AND docs.json for cn/jp
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds the second test file to verify that:
1. Translation PR is updated (not force-pushed)
2. Only new file is translated (first file not re-translated)
3. No English source files leak into translation commits
Expected: Translation PR should have 2 commits with clean git history.
This commit adds the first test file to verify the incremental translation
workflow with the English file removal fix applied.
Expected: Translation PR should contain only cn/, jp/ files and docs.json.