feat: platform logos and emulator letter sections

The decoration pass now forwards the logo front matter, pointed at the
local copy. The emulators index lists every profile under the initial
the sidebar draws, so each letter link lands on its section.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 07:02:40 +02:00
1 parent e86defdb1e
commit a9181f9d04
6 files changed
+65 -46

No files matched your search

+2 -3
View File
@@ -92,9 +92,8 @@ export const onRequest = defineRouteMiddleware(async (context, next) => {
trail(route.sidebar, [topic.label]) ??
(segments.length > 1 ? folderTrail(route.sidebar, [topic.label], `${BASE}${segments[0]}/`) : []);
for (const crumb of groups) {
// A group introduced by the page itself is the page; one with no
// section of its own (the initial D of the emulators) adds nothing
// to the crumb before it.
// A group introduced by the page itself is the page, and one with
// no section of its own adds nothing to the crumb before it.
if (crumb.href === path) continue;
if (crumb.href && crumb.href === crumbs.at(-1)?.href) continue;
crumbs.push(crumb);
-12
View File
@@ -217,18 +217,6 @@
.rb-stat-value { display: block; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-stat-label { display: block; font-size: 0.75rem; color: var(--rb-text-secondary); }
/* Logos float right beside the opening paragraph */
.sl-markdown-content img[align='right'] {
float: right;
width: 56px;
height: 56px;
object-fit: contain;
margin: 0 0 0.6rem 1rem;
padding: 4px;
border: 1px solid var(--rb-border);
border-radius: 4px;
background: #fff;
}
.sl-markdown-content img[src*='assets/logos/'] { padding: 2px; border-radius: 2px; background: #fff; }
/* A system icon beside a console heading holds its box before it loads:
it pushed every card below it down once it arrived. */