Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | // SPDX-FileCopyrightText: 2024-2026 Hack23 AB
// SPDX-License-Identifier: Apache-2.0
/**
* @module Generators/PoliticalIntelligence
* @description Generates the localized `political-intelligence_<lang>.html`
* pages — a curated index of every political-intelligence methodology,
* artifact template, and daily analysis run shipped in this repository.
*
* Each page links to the matching Markdown source on GitHub so that readers
* can inspect the raw tradecraft behind every published article. The English
* variant lives at `political-intelligence.html`; all 13 other locales live
* at `political-intelligence_<lang>.html`.
*
* **This file is now a thin re-export shim.** The implementation has been
* carved into focused sub-modules under `./political-intelligence/`:
*
* - `./political-intelligence/types` — type-only contracts
* - `./political-intelligence/icons` — `pickDocumentIcon`, `pickRunIcon`
* - `./political-intelligence/markdown` — Markdown parsing helpers
* - `./political-intelligence/copy` — `PICopy`, `DEFAULT_COPY`, `PI_COPY`, `getPICopy` (14 langs)
* - `./political-intelligence/data` — `collectPoliticalIntelligenceData` and helpers
* - `./political-intelligence/html` — `generatePoliticalIntelligenceHTML`, `getPoliticalIntelligenceFilename`
*
* Every public symbol is re-exported below so existing import sites
* (`from './generators/political-intelligence.js'`) continue to resolve
* without churn.
*/
// Type contracts
export type {
PIDocument,
PIDailyDateGroup,
PIDailyRun,
PIDailyArtifact,
PIPageData,
} from './political-intelligence/types.js';
// Icon picking
export { pickDocumentIcon, pickRunIcon } from './political-intelligence/icons.js';
// Markdown parsing
export { parseMarkdownMeta } from './political-intelligence/markdown.js';
// Data collection
export { collectPoliticalIntelligenceData } from './political-intelligence/data.js';
// HTML rendering + filename helper
export {
generatePoliticalIntelligenceHTML,
getPoliticalIntelligenceFilename,
} from './political-intelligence/html.js';
|