Skip to content

Glossary: letters as chapters, a search panel beside the terms, and references linked to the terms that cite them - #1189

Merged
LukasWallrich merged 10 commits into
rebrand-doorsfrom
hc/glossary
Nov 18, 2026
Merged

LukasWallrich merged 10 commits into
rebrand-doorsfrom
hc/glossary

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The glossary hub was 260 near-identical grey cards with small letter headings, so a long scroll had no landmarks. Term pages listed related terms as a run of links, and the List of References was one long block of citations with a note saying cross-linking to terms was still to come. This PR gives the glossary landmarks and links its references to the terms that cite them.

What changes for visitors

  • Glossary hub (all languages; CSS only).
    • On screens 1001 px and wider, the search, the Cards/List toggle, the count and a grid of A–Z tiles sit in a pale green panel beside the title. The panel stays in view while the terms scroll, and letter jumps land at the top of the screen.
    • Each letter is a large Newsreader letter on the education area's pale green. From 1240 px it is an 88 px tile beside its terms that stays in view while they scroll; below that it is a band across the column.
    • Term cards are white with a thin border. With the panel beside them, wide screens show two cards to a row instead of four.
  • Term pages.
    • "Related terms" is a heading over cards that show the start of each definition, like the hub's cards. Terms without a page stay plain text after the cards (DESIGN.md §5).
    • References get a heading and sit in a panel as wide as the definition. On Arabic pages the panel reads left to right.
    • Previous and next are two pale green cards, each with its term and the start of its definition.
  • List of References (new layouts/partials/doors/glossary_references.html).
    • The page has the hub's layout: the search panel with a count ("10 of 712 references"), the letter tiles and A–Z groups.
    • Under each reference, a "Cited in" line links the English terms whose definitions cite it. 543 of the 712 references get links; the rest are not cited by an English term whose reference text matches apa_lookup.json.
    • The page is picked in layouts/glossary/single.html by folder, not by front matter, because content/glossary/ ships from main through the data artifact. The page works with either the old or the new generated body.
    • _build_references.py now writes only the title and the intro sentence, and the template renders the list from apa_lookup.json. Re-running it drops the "We are currently working on a better way…" note, so the page's meta description is now just the intro sentence.
  • site.js: the hub script also runs on the references page, which has no view toggle or About box. The count line takes its wording from the page; that change is copied word for word from Glossary: Chinese term pages and the Arabic hub label themselves in their language #1159, so the two PRs merge cleanly there.
  • DESIGN.md §4: related terms with previews may be cards, and dense term lists break into chapters under large letters.

Before and after

Glossary hub, top

Before After
390 px
1440 px

Glossary hub, scrolled

Before After
390 px
1440 px

Term page (p-hacking)

Before After
390 px
1440 px

List of References

Before After
390 px
1440 px

Checks

  • Full Hugo builds of this branch and its base (0f7b5c8), compared by eye at 390, 760, 1000, 1100 and 1440 px on the hub, an English and an Arabic term page and the references page, beside Teams and Partnerships. No page scrolls sideways at any of those widths.
  • check_seo_html.py: all checks pass.
  • compare_builds.py: no paths added or removed. The one changed SEO tag is the references page's description, which loses the "currently working on" sentence.
  • Unit tests (scripts/tests and test_parse_disciplines_gdoc.py) pass.
  • In a browser, search works on the hub ("replication": 7 of 260 terms) and on the references page ("Nosek": 10 of 712 references), with no script errors. Every id on the references page is unique.

Created with Claude Opus 5.5 in Claude Code.

After CI

  • The generated content/glossary/references/index.md is back as main has it; only its generator changes here. The page renders from its partial, so it looks the same either way, and the next data run writes the new body. check_source_rules.py now lets a generator script beside its output (content/glossary/*.py) change.
  • Lines stay under 80 characters: two cards a row beside the panel at 1001–1239 px, the index introduction capped at 32.5em, reference rows at 29em, and references on term pages at 30em.

🤖 Generated with Claude Code


Summary by cubic

Reworks the glossary so a long run of terms reads as chapters, keeps search and letter navigation in a sticky panel beside the title on wide screens, and links the List of References to the English terms that cite them.

Glossary hub and term pages

  • Hub cards are white with a thin border, two to a row on wide screens; each letter is a large chapter heading that stays in view while its terms scroll.
  • Related terms on term pages are cards showing the start of each definition, with terms that lack a page as a quiet labelled list beneath.
  • References get a heading and a plain hanging-indent list that reads left-to-right on Arabic pages; previous and next become cards with definition previews.

List of References

  • Reuses the hub's layout: search with a live count, letter tiles and A–Z groups, and a "Cited in" line linking the English terms whose definitions cite each reference (543 of 712).
  • The list is rendered from apa_lookup.json by the template, so _build_references.py now writes only the title and intro; re-running it drops the "currently working on a better way" note.

Checks

  • Cards, the index introduction, and reference rows keep their lines under 80 characters.
  • The generated references page keeps main's body until the next data run; the source-rules check now names the two glossary generator scripts instead of exempting every script in that folder.

Written for commit 53b7fa2. Summary will update on new commits.

View guided diff Turn on auto-fix

…rence list

- Hub: on wide screens the search, view toggle and letters sit in a pale green
  panel beside the title that stays in view; each letter is a large Newsreader
  letter on the education area's pale ground, beside its terms from 1240 px;
  term cards are white with a thin border.
- Term pages: related terms are cards with the start of each definition;
  references get a heading and a panel; previous and next are cards with the
  start of their definitions.
- References: laid out as the hub, with search, letters and A-Z groups, and a
  "Cited in" line linking the English terms that cite each reference. The list
  is rendered from apa_lookup.json by the template, so _build_references.py now
  writes only the title and introduction.
- DESIGN.md §4: related terms with previews may be cards; dense term lists break
  into chapters under large letters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 17, 2026 16:30
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📝 Spell Check Results

Found 1 potential spelling issue(s) when checking 8 changed file(s):

📄 layouts/glossary/list.html

Line Issue
8 passt ==> past, passed

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread assets/js/doors/site.js Resolved
Comment thread assets/css/doors/glossary.css Resolved
LukasWallrich and others added 3 commits November 17, 2026 16:43
…s stay 18 px)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rated references page as main has it

The references page renders from its partial, so the generated body can wait for the next data run.
The source-rules check now lets a generator script beside its output change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er measure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/rebrand/check_source_rules.py Resolved
LukasWallrich and others added 2 commits November 17, 2026 17:20
…very script there

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… cards

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread assets/css/doors/glossary.css Resolved
LukasWallrich and others added 2 commits November 17, 2026 17:44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Related terms without a page: a labelled line ("Not yet in the glossary:"), not chips that look like the language links
- The index's disclosure is "About the glossary project"; the lede's link already says how to cite
- Previous/next snippets end in an ellipsis inside the card's two lines
- References on a term page: hanging indent, no bullet before a single entry
- The reference list's lede says links appear where the glossary records them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich merged commit be842da into rebrand-doors Nov 18, 2026
6 checks passed
@LukasWallrich
LukasWallrich deleted the hc/glossary branch November 18, 2026 09:00
LukasWallrich added a commit that referenced this pull request Nov 18, 2026
DESIGN.md keeps both: the glossary's chapters under large letters and the rule that posts, articles and newsletter issues are cards with their picture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LukasWallrich added a commit that referenced this pull request Nov 19, 2026
…review prefix

After #1189 the related terms sit in section.term-related as cards, so the
parser now tracks whichever element carries that class. Glossary URLs are
compared from /glossary/ on, so a build served under /rebrand-doors/ is
checked too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LukasWallrich added a commit that referenced this pull request Nov 19, 2026
…review prefix

After #1189 the related terms sit in section.term-related as cards, so the
parser now tracks whichever element carries that class. Glossary URLs are
compared from /glossary/ on, so a build served under /rebrand-doors/ is
checked too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LukasWallrich added a commit that referenced this pull request Nov 19, 2026
…6 Turkish and German links) (#1197)

* Glossary: link related terms to the page in the reader's language

Translated titles carry the English name in square brackets only when they
do not already contain the English words, so pages such as Turkish
'Ödeme Duvarı (Paywall)' were found only under their English page. Index
every page by its en_title too. Adds check 23 to check_seo_html.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Check 23 follows the redesigned related-terms section and ignores a preview prefix

After #1189 the related terms sit in section.term-related as cards, so the
parser now tracks whichever element carries that class. Glossary URLs are
compared from /glossary/ on, so a build served under /rebrand-doors/ is
checked too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant