EU Parliament Monitor — API Documentation - v0.8.43
    Preparing search index...

    Interface WrapArticleOptions

    Inputs for wrapArticleHtml.

    interface WrapArticleOptions {
        lang: LanguageCode;
        articleSlug: string;
        body: string;
        title: string;
        description: string;
        date: string;
        articleType: string;
        sourceMarkdownRelPath?: string;
        toc?: readonly ArticleTocEntry[];
        articleCount?: number;
    }
    Index

    Properties

    Target language (used for <html lang>, meta, nav labels).

    articleSlug: string

    Logical article slug (no lang suffix, no extension). Example: 2026-01-15-breaking. Used to build the <link rel="alternate"> set.

    body: string

    Pre-rendered HTML body fragment (from renderMarkdown).

    title: string

    Article title — shown in <title>, breadcrumb, OG/Twitter meta.

    description: string

    Article description — shown in <meta name="description"> and OG.

    date: string

    Canonical ISO date of the run (YYYY-MM-DD).

    articleType: string

    Article type slug (e.g. breaking, motions).

    sourceMarkdownRelPath?: string

    Optional: repo-relative path to the aggregated source Markdown file so readers can open the exact input the HTML was rendered from. Rendered as a sidebar link and in the <link rel="alternate"> set.

    toc?: readonly ArticleTocEntry[]

    Optional: ordered list of top-level H2 sections emitted into the article body. Used to render the article-level table-of-contents sidebar. When omitted (or empty) the sidebar is not rendered.

    articleCount?: number

    Optional: total number of articles available site-wide. When provided the shared site footer surfaces a <p class="footer-stats">{n} articles available</p> line that matches the index.html chrome; otherwise the line is omitted.