Docs: five editor tabs + localization tab, RTL/html-dir, build inputs

This commit is contained in:
2026-09-03 03:30:46 +00:00
parent 3046988a96
commit 081ab979f3
4 changed files with 11 additions and 5 deletions
+6 -1
View File
@@ -78,7 +78,12 @@ Region tags normalize to their base subtag (`fi-FI` → `fi`).
link language**: a `?lang=fi` render and a header-selected Finnish render
of the same page differ in their navigation links, so they are cached as
separate variants.
- `<html lang="…">` reflects the served language.
- `<html lang="…">` reflects the served language, and an RTL language
(`i18n.RTL_LANGUAGES` — ar, fa, he, ur) also sets `dir="rtl"` on `<html>`
(the editor panel carries its own `lang="en" dir="ltr"` so it stays LTR).
Client-side page swaps (fetch navigation in pagerite.js, editor re-renders
in swapdoc.js) copy both attributes from the fetched document, so a hot
switch into or out of an RTL page flips the layout without a reload.
### Rendering