Merge main into rebrand-doors (Bulgarian glossary, FLoRA redirect)

Merged
LU
6d ago
+15780-3973

Merges main into rebrand-doors (through 369571d66f), bringing the Bulgarian glossary (#1093, #1317), the /FLoRA redirect (#1307), and related glossary updates into the Doors redesign, and unblocking rebrand-preview.yaml builds now that main's data-artifact includes Bulgarian glossary pages.

What changes for visitors

  • Bulgarian glossary (/glossary/bulgarian/ and 140 term pages): renders in Doors with Bulgarian labels, language switcher entries across all six languages, formatted titles (*p*-стойност), free-text related terms placed outside related-term cards, and a clean A–Я letter grid (doors/glossary_order.html strips leading quotation marks so quoted titles like “Шерпа Ромео” no longer split letters into duplicate headings).
  • Cyrillic typography: adds a 15 KB Cyrillic subset of Source Sans 3 (fonts.css / build_fonts.py) loaded only where Cyrillic appears and preloaded on Bulgarian pages; main:lang(bg) sets headings in Source Sans 3 (600) so Cyrillic and Latin names share one typeface (Newsreader lacks Cyrillic). DESIGN.md §7 is updated.
  • FLoRA redirect (#1307): /FLoRA/ alias from main plus a case-insensitive /flora/ rule in Doors layouts/404.html, tested in check_preview.py.
  • Glossary pager & checks: clips pager preview text under 80 characters (fixes an 81-character Bulgarian preview line), ports main's Bulgarian glossary SEO check as check 32, adds check 33 (unique hub letters), fixes check 16 term-link collection, and updates check_source_rules.py so generated files arriving byte-identical from origin/main in a merge PR are not flagged as hand edits.

Bulgarian glossary preview (Doors)

Desktop (1440 px) — HubDesktop (1440 px) — Cards
Bulgarian glossary hub at 1440pxBulgarian glossary cards at 1440px
Mobile (390 px) — HubMobile (390 px) — Term (p-стойност)
Bulgarian glossary hub at 390pxBulgarian term page at 390px

Decisions to review

  • Standard vs Bulgarian-localised Cyrillic glyph forms: Source Sans 3's Bulgarian locl forms were stripped in build_fonts.py so pages match the standard Cyrillic forms translators reviewed on main (Inter). Restoring them is a one-line change in build_fonts.py.
  • Untranslated Doors UI labels: Doors-specific UI chrome not present on main (Изглед, Карти, Списък, Език, Изчистване, "Търсене в %d термина", "Въведете термин", "За речника и как да го цитирате", "Термини по букви", "Няма съвпадащ термин.", Начало, Предишен / Следващ, author-toggle strings, and language switcher names for Bulgarian in the other languages) has not yet been reviewed by the Bulgarian translation team.
  • Generated files: git diff origin/main HEAD -- content/glossary/ content/replication-hub/flora/_index.md contains zero changes to generated outputs (only Doors' pre-existing meta-description line in _build_references.py).
  • References rendering (#1315): not ported because Doors' references page already renders the same 567 works as main.

Checks

  • hugo --gc --cleanDestinationDir: clean build
  • python3 scripts/check_seo_html.py: pass (including new checks 32 & 33)
  • python3 scripts/rebrand/check_source_rules.py --base origin/rebrand-doors and --base origin/main: exit 0
  • python3 scripts/check_sitemap_lastmod.py --compare-source: 0 mismatches in 300 sampled
  • python3 scripts/rebrand/check_design.py and check_axe.py across all 141 Bulgarian pages plus German, Turkish, Chinese, Arabic, /glossary/references/, /404.html: 0 failures
  • python3 -m unittest discover -s scripts/tests & test_parse_disciplines_gdoc.py: all pass (278 + 13)

Note: On CI, Designed screens may still hit the pre-existing /lesson-plans/ 148-character PhD card failure on rebrand-doors until the separate Lesson Plans PR lands.

Created with Claude Opus 5.5 (Claude Code) and Gemini 4 Neon (Antigravity) in T3 Code.