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

    Interface ArticleOptions

    Options for generating article HTML

    interface ArticleOptions {
        slug: string;
        title: string;
        subtitle: string;
        date: string;
        category: ArticleCategory;
        readTime: number;
        lang: LanguageCode;
        content: string;
        keywords?: string[];
        sources?: ArticleSource[];
        analysisPerspectives?: AnalysisPerspective[];
        stylesHash?: string;
        availableLanguages?: readonly LanguageCode[];
        analysisDir?: string;
        relatedArticles?: readonly RelatedArticleLink[];
        analysisFiles?: readonly AnalysisFileEntry[];
    }
    Index

    Properties

    slug: string
    title: string
    subtitle: string
    date: string
    category: ArticleCategory
    readTime: number
    content: string
    keywords?: string[]
    sources?: ArticleSource[]
    analysisPerspectives?: AnalysisPerspective[]
    stylesHash?: string

    SRI hash (sha256/sha384/sha512) for the styles.css link (e.g. "sha384-…"). If provided, adds integrity and crossorigin attributes.

    availableLanguages?: readonly LanguageCode[]

    Languages for which this article has been generated. When provided, the language switcher only shows links for these languages. Defaults to all supported languages.

    analysisDir?: string

    Override analysis directory name for transparency links (e.g. "breaking-2" when suffix deduplication applied). When omitted, falls back to slug.

    relatedArticles?: readonly RelatedArticleLink[]

    Related articles for cross-article navigation at the bottom of the article.

    analysisFiles?: readonly AnalysisFileEntry[]

    Analysis files produced by the pipeline run, from manifest.json. When provided, the transparency section dynamically links to ALL these files instead of using hardcoded defaults.