mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
- Astro and Starlight site in docs/ for https://fairrootgroup.github.io/FairMQ/ - 64 pages in eight groups: start, concepts, guides, shared memory, examples, tools, reference and project - API reference and source browser from the Doxygen XML of fairmq/ - Code samples are snippets of the repository files; the build fails when a snippet does not match - Option tables take the names, types and defaults from the code - Interactive diagrams: state machine, zero-copy transfer, region acknowledgements, session objects, topology and channel anatomy - The 404 page sends the URLs of the Doxygen site to the new pages - scripts/check-pages.mjs checks pages, snippets and links without a build; scripts/check-links.mjs checks all links in dist/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
---
|
|
// Page title with the section label above it and an optional "since" badge.
|
|
import { sectionLabel } from '../../lib/nav';
|
|
|
|
const { entry, id } = Astro.locals.starlightRoute;
|
|
const data = entry.data as typeof entry.data & {
|
|
eyebrow?: string;
|
|
titleKind?: string;
|
|
since?: string;
|
|
searchTitle?: string;
|
|
};
|
|
const eyebrow = data.eyebrow ?? sectionLabel(id);
|
|
---
|
|
|
|
{eyebrow && <p class="fmq-eyebrow">{eyebrow}</p>}
|
|
<h1
|
|
id="_top"
|
|
class:list={{ code: !!data.titleKind }}
|
|
data-pagefind-meta={data.searchTitle ? `title:${data.searchTitle}` : undefined}
|
|
>
|
|
<span>{data.title}</span>
|
|
{data.titleKind && <span class="fmq-badge">{data.titleKind}</span>}
|
|
{data.since && <span class="fmq-badge since">since {data.since}</span>}
|
|
</h1>
|
|
|
|
<style>
|
|
h1 {
|
|
margin-top: 0.9rem;
|
|
font-size: var(--sl-text-h1);
|
|
line-height: 1.06;
|
|
font-weight: 800;
|
|
font-stretch: 112%;
|
|
letter-spacing: -0.02em;
|
|
color: var(--fmq-ink);
|
|
text-wrap: balance;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.4rem 0.75rem;
|
|
}
|
|
h1.code {
|
|
font-family: var(--fmq-font-mono);
|
|
font-stretch: 100%;
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
font-size: calc(var(--sl-text-h1) * 0.8);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
h1 .fmq-badge {
|
|
font-size: 0.75rem;
|
|
font-family: var(--fmq-font-body);
|
|
letter-spacing: 0.08em;
|
|
}
|
|
</style>
|