Skip to content

docs: use kebab-case IDs for repeated LAN v4.11 subheadings - #221

Merged
linmq merged 1 commit into
masterfrom
fix/lan-4.11-heading-ids
Nov 25, 2026
Merged

linmq merged 1 commit into
masterfrom
fix/lan-4.11-heading-ids

Conversation

@linmq

@linmq linmq commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Problem

Manual translation run https://github.com/gl-inet/docs4.x/actions/runs/45537359420 got past the clean-tree issue fixed in #219, but Codex returned blocked on a source issue:

docs/en/docs/interface_guide/lan_4.11.md uses underscore-number suffixes for six repeated headings. These IDs do not meet the repository's lowercase ASCII kebab-case requirement ... Copying them would propagate the source issue into eight new localized pages.

Fix

Rename the repeated subheading IDs to parent-prefixed kebab-case IDs in the English page and the existing Japanese page:

Old New
basic-settings_1 / dhcp-server_1 guest-network-basic-settings / guest-network-dhcp-server
basic-settings_2 / dhcp-server_2 iot-network-basic-settings / iot-network-dhcp-server
basic-settings_3 / dhcp-server_3 vlan-networks-basic-settings / vlan-networks-dhcp-server

No in-repository links pointed to the old IDs. The ja record in .translation-cache.json is refreshed with translation_delta.py mark.

subnet.md uses the same old pattern but is an existing, unchanged page, so it is left as is.

Verification

  • python scripts/anchors.py check: no errors for lan_4.11.md; the total stays at 63 (existing missing localized IDs the translation run is expected to fix).
  • python scripts/i18n_check.py: remaining lan_4.11 errors are only the missing de/es/fr/it/nl/pl/sv/uk pages the translation run will create.
  • After merge, re-run the translation workflow manually.

Replace basic-settings_N / dhcp-server_N with parent-prefixed IDs in the
English and Japanese LAN v4.11 pages and refresh the ja translation cache
record. The translation run blocked on these IDs instead of copying them
into new localized pages.
@github-actions

Copy link
Copy Markdown
Contributor

Codex review

The PR replaces six underscore-number heading IDs with parent-prefixed kebab-case IDs in the English and Japanese LAN v4.11 guides. The IDs are unique within each page and match across both languages, and the read-only review found no stale in-repository links or redirects to the old IDs and no other issues.

Commit e984a0a087fc4c65cff548effdc89149c69716d2 · Report-only; does not block merging.

@linmq
linmq merged commit a78e2dd into master Nov 25, 2026
6 checks passed
@linmq
linmq deleted the fix/lan-4.11-heading-ids branch November 25, 2026 03:20

This branch was previously deployed

1 inactive deployment
OpenAI — e984a0a0 Deployed Nov 25, 2026 by linmq via review #91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants