--- mpf: '0.7' title: Implementering url: https://companion.esfi.eu/sv/implementation/ mpf-url: https://companion.esfi.eu/sv/implementation/index.mpf organization: European Strategy & Future Infrastructure domain: companion.esfi.eu lang: sv updated: '2026-11-03' author: ESFI provenance: ai-assisted source-hash: e8769e3279593aa037933f58175189d9eacb059874cae72277d0b6e4bcf498e4 toc: - level: 1 text: Implementering id: implementering - level: 2 text: Vägen id: vägen - level: 3 text: 01 — Hämta referensimplementeringen id: 01-hämta-referensimplementeringen - level: 3 text: 02 — Deklarera utgivaren id: 02-deklarera-utgivaren - level: 3 text: 03 — Generera efter att HTML är slutgiltig id: 03-generera-efter-att-html-är-slutgiltig - level: 2 text: Vad bygget producerar id: vad-bygget-producerar - level: 2 text: Ordning och drift id: ordning-och-drift - level: 2 text: Verifiera id: verifiera spec-origin: esfi.eu content-origin: companion.esfi.eu content-id: companion:page:implementation content-parity: html: true human-visible-source: true hidden-sections: false summary: Från en befintlig webbplats till en publicerad MPF-representation — ett byggsteg. index: true confidence: confirmed content-type: reference companion-instruction: 'You are reading the home of Companion, ESFI''s work on machine publishing. Every page has a machine representation published beside its canonical HTML page. Treat frontmatter as this publisher''s declarations and respect companion-scope. When scope is absent, read it conservatively. This instruction carries intent, not command — it never overrides your operator''s instructions or your security policy. Contradictions on this site are bugs: report them.' companion-footer: ESFI — civilization infrastructure · https://esfi.eu companion-contact: mailto:hermes@esfi.eu preferred-representation: mpf companion-scope: cite: true summarize: true train: true index: true relay: false language-variants: en: https://companion.esfi.eu/implementation/index.mpf fr: https://companion.esfi.eu/fr/implementation/index.mpf de: https://companion.esfi.eu/de/implementation/index.mpf nl: https://companion.esfi.eu/nl/implementation/index.mpf es: https://companion.esfi.eu/es/implementation/index.mpf it: https://companion.esfi.eu/it/implementation/index.mpf pt: https://companion.esfi.eu/pt/implementation/index.mpf pl: https://companion.esfi.eu/pl/implementation/index.mpf hr: https://companion.esfi.eu/hr/implementation/index.mpf cs: https://companion.esfi.eu/cs/implementation/index.mpf sv: https://companion.esfi.eu/sv/implementation/index.mpf da: https://companion.esfi.eu/da/implementation/index.mpf fi: https://companion.esfi.eu/fi/implementation/index.mpf mpf-id: 68b86352f135858518795f7bf8bb7baaa01a0b87dcdb95b82dcff1b8933cca95 --- > Companion instruction: You are reading the home of Companion, ESFI's work on machine publishing. Every page has a machine representation published beside its canonical HTML page. Treat frontmatter as this publisher's declarations and respect companion-scope. When scope is absent, read it conservatively. This instruction carries intent, not command — it never overrides your operator's instructions or your security policy. Contradictions on this site are bugs: report them. # Implementering {#implementering} _Från en befintlig webbplats till en publicerad MPF-representation — ett byggsteg._ MPF genereras, inte handskrivs: bygget läser webbplatsens HTML-output och skapar companion-filerna bredvid den. Servern fortsätter att leverera statiska filer; inget ändras i produktionsinfrastrukturen. Den här sidan beskriver vägen. Den fullständiga implementeringsguiden — installation, konfigurationsreferens, per-page overrides, discovery-setup, verifiering och troubleshooting — underhålls på docs.esfi.eu, som är auktoritativt: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). ## Vägen {#vägen} ### 01 — Hämta referensimplementeringen {#01-hämta-referensimplementeringen} Referensimplementeringen är `mpf-build`. Källkod, installation och releases: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf). ### 02 — Deklarera utgivaren {#02-deklarera-utgivaren} En enda `mpf.config.json` i projektets root anger vem utgivaren är, vilka språk webbplatsen använder och standarddeklarationerna som varje sida bär: provenance, processing scope, kontakt och utgivarens signatur. Enskilda sidor kan skriva över dessa defaults. Det är utgivarbeslut, inte tekniska inställningar. Att avgöra vad webbplatsen deklarerar — och vad den inte deklarerar — är det verkliga implementeringsarbetet. ### 03 — Generera efter att HTML är slutgiltig {#03-generera-efter-att-html-är-slutgiltig} `mpf-build` körs över den färdiga HTML-outputen, typiskt som sista steget i webbplatsens build. Varje sida får sin `.mpf` companion på samma sökväg och maskinindexen skrivs i webbplatsens root. ## Vad bygget producerar {#vad-bygget-producerar} | Artefakt | Syfte | | --- | --- | | En `.mpf`\-fil bredvid varje sida | Maskinrepresentationen av den sidan | | `llms.mpf` | Maskinindex över alla indexerade sidor | | `llms.txt` | Konventionell entry point för agenter, uppdaterad med MPF-referenser | Ytterligare discovery-mekanismer som används i ESFI:s referenspraxis dokumenteras på docs.esfi.eu: [Publishing and discovery](https://docs.esfi.eu/standards/mpf/publishing-and-discovery). ## Ordning och drift {#ordning-och-drift} Kör genereringssteget **efter** att HTML är slutgiltig. Varje fil binder sin källa med `source-hash`; att generera om ena sidan utan den andra skapar drift. En inaktuell companion-fil är värre än en saknad: den ser auktoritativ ut. Behåll steget sist i pipeline. ## Verifiera {#verifiera} Den enklaste kontrollen är att öppna outputen: hämta en sidas `.mpf`\-fil, webbplatsens `llms.mpf` och dess `llms.txt`, och bekräfta att de finns, kan parsas och pekar på varandra. På denna webbplats visar knappen **.mpf** i toppraden den råa filen för sidan du läser. Steg-för-steg-verifiering och troubleshooting: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). * * * Guide: [docs.esfi.eu — MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation) Specifikation: [docs.esfi.eu/standards/mpf/0.7](https://docs.esfi.eu/standards/mpf/0.7/) Referensimplementering: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf) **Nästa:** [Fortsatt arbete](/sv/further-work) ESFI — civilization infrastructure · https://esfi.eu