feat(glossary): add step 21 smart navigation
All checks were successful
SMOKE / smoke (push) Successful in 13s
CI / build-and-anchors (push) Successful in 1m4s
CI / build-and-anchors (pull_request) Successful in 35s

This commit is contained in:
2026-04-26 13:03:45 +02:00
parent 689619d14d
commit 9f88112aca
45 changed files with 1020 additions and 112 deletions

View File

@@ -6,12 +6,14 @@ import GlossaryEntryLegacyNote from "../../components/GlossaryEntryLegacyNote.as
import GlossaryEntryHero from "../../components/GlossaryEntryHero.astro";
import GlossaryEntryBody from "../../components/GlossaryEntryBody.astro";
import GlossaryEntryStickySync from "../../components/GlossaryEntryStickySync.astro";
import GlossarySmartNav from "../../components/GlossarySmartNav.astro";
import { getCollection, render } from "astro:content";
import {
getDisplayDomain,
getDisplayFamily,
getDisplayLevel,
getRelationBlocks,
getGlossarySmartNavigation,
normalizeGlossarySlug,
} from "../../lib/glossary";
@@ -61,6 +63,7 @@ const isAliasRoute = requestedSlug !== canonicalSlug;
const canonicalHref = `/glossaire/${canonicalSlug}/`;
const relationBlocks = getRelationBlocks(entry, allEntries);
const smartNavigation = getGlossarySmartNavigation(entry, allEntries);
const displayFamily = getDisplayFamily(entry);
const displayDomain = getDisplayDomain(entry);
@@ -93,6 +96,8 @@ const displayLevel = getDisplayLevel(entry);
comparisonTraditions={entry.data.comparisonTraditions ?? []}
/>
<GlossarySmartNav smartNavigation={smartNavigation} />
<GlossaryEntryBody>
<Content />
</GlossaryEntryBody>

View File

@@ -82,7 +82,7 @@ const readingSteps = [
num: "05",
title: "Revenir à larchicratie",
text:
"Larchicratie nomme alors le régime général dans lequel cette composition devient lisible comme structure de régulation.",
"Larchicratie nomme alors le méta-régime général dans lequel cette composition devient lisible comme structure de régulation, d'agrégation et d'évolution.",
},
];

View File

@@ -730,8 +730,9 @@ const approfondirPortalItems = [
.glossary-map-block__head h2,
.glossary-section h2{
font-size: clamp(1.2rem, 3.8vw, 1.55rem);
line-height: 1.02;
font-size: clamp(1.18rem, 3.2vw, 1.42rem);
line-height: 1.04;
letter-spacing: -.02em;
text-wrap: pretty;
}