From 348921df1a019598ca4ee9b857bf4d3d74afff83 Mon Sep 17 00:00:00 2001 From: oskar Date: Fri, 31 Jul 2026 18:38:14 +0200 Subject: [PATCH] feat(platforma): link do specyfikacji Google OKF + przypisanie idei MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run w Rich text dostaje opcjonalne href — RichText renderuje wtedy , dalej bez dangerouslySetInnerHTML, więc słownik nie może wstrzyknąć markupu. W sekcji "Pod maską": fraza "Google OKF" linkuje do GoogleCloudPlatform/knowledge-catalog/okf, a po zdaniu o kompilowanej wiki dochodzi zdanie przypisujące ideę Andrejowi Karpathy'emu (link do jego gista llm-wiki.md). To wyłącznie przypis do publicznie opisanej koncepcji — bez afiliacji ani rekomendacji. Co-Authored-By: Claude Opus 5 (1M context) --- src/components/RichText.tsx | 13 +++++++++++++ src/i18n/en.ts | 14 +++++++++++++- src/i18n/pl.ts | 14 +++++++++++++- src/i18n/types.ts | 2 ++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx index 6326706..016b6b3 100644 --- a/src/components/RichText.tsx +++ b/src/components/RichText.tsx @@ -12,6 +12,19 @@ const RichText = ({ content }: { content: Rich }) => { return ( <> {content.map((run, i) => { + if (run.href) { + return ( + + {run.t} + + ); + } if (run.em === 'strong') { return ( diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 97bb611..2bfa033 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -258,7 +258,19 @@ export const en: typeof pl = { { t: 'A knowledge base shouldn\'t end up as a dead vector index. On top of semantic search, we build a ' }, { t: 'readable, compiled wiki maintained by a language model', em: 'strong' }, { - t: ' — plain text files with cross-links between concepts, which the agent reads and updates the way a person maintains code. We build this on an open standard (Google OKF), not a closed format of our own — so the knowledge stays readable and portable.', + t: ' — plain text files with cross-links between concepts, which the agent reads and updates the way a person maintains code. An approach inspired by ', + }, + { + t: 'a concept described by AI researcher Andrej Karpathy', + href: 'https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f', + }, + { t: '. We build this on an open standard (' }, + { + t: 'Google OKF', + href: 'https://github.com/GoogleCloudPlatform/knowledge-catalog/tree/main/okf', + }, + { + t: '), not a closed format of our own — so the knowledge stays readable and portable.', }, ], }, diff --git a/src/i18n/pl.ts b/src/i18n/pl.ts index 32e9d01..1a69e9f 100644 --- a/src/i18n/pl.ts +++ b/src/i18n/pl.ts @@ -254,7 +254,19 @@ export const pl = { { t: 'Baza wiedzy nie kończy jako martwy indeks. Nad wyszukiwaniem semantycznym powstaje ' }, { t: 'czytelna, kompilowana wiki utrzymywana przez model językowy', em: 'strong' }, { - t: ' — pliki tekstowe z linkami między pojęciami, które agent czyta i aktualizuje tak jak człowiek utrzymuje kod. Budujemy to na otwartym standardzie (Google OKF), nie na własnym, zamkniętym formacie — żeby wiedza, którą zbudujemy, zawsze zostawała czytelna i przenośna.', + t: ' — pliki tekstowe z linkami między pojęciami, które agent czyta i aktualizuje tak jak człowiek utrzymuje kod. Podejście zainspirowane ', + }, + { + t: "koncepcją opisaną przez badacza AI Andreja Karpathy'ego", + href: 'https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f', + }, + { t: '. Budujemy to na otwartym standardzie (' }, + { + t: 'Google OKF', + href: 'https://github.com/GoogleCloudPlatform/knowledge-catalog/tree/main/okf', + }, + { + t: '), nie na własnym, zamkniętym formacie — żeby wiedza, którą zbudujemy, zawsze zostawała czytelna i przenośna.', }, ], }, diff --git a/src/i18n/types.ts b/src/i18n/types.ts index d62e81e..a4ce4ba 100644 --- a/src/i18n/types.ts +++ b/src/i18n/types.ts @@ -8,6 +8,8 @@ export type Run = { t: string; /** 'quote' is an that brightens to full foreground — used for quoted speech. */ em?: 'strong' | 'em' | 'quote'; + /** Turns the run into an external link (new tab). Absolute URL only. */ + href?: string; }; /** Plain text, or a run list when the sentence needs inline emphasis. */