mirror of
https://github.com/VibedByKaKi/sdmaid-se.git
synced 2026-11-12 09:37:17 +01:00
The app rewrites https://sdmse.darken.eu/<page> links to /<lang>/<page> for the user's language, but untranslated pages have no localized copy on the built site, so such a link would 404. check_links.py now applies the app's eligibility rule to every docs URL in a tracked .kt file: the first path segment (empty for root) must be neither in ENGLISH_ONLY (imported from check_translations) nor a language path from docs/_data/languages.json. For eligible URLs it requires a built page at /<path>/ for root and /<path><page> otherwise, for every language. Only page existence is checked, not the fragment, since a stale translation can lag behind a new anchor and still loads. Missing pages count as errors in the existing total and exit code. |
||
|---|---|---|
| .. | ||
| docs | ||
| testdata-generator | ||
| translation | ||