diff --git a/src/content.config.ts b/src/content.config.ts index 3fa9128..0e10930 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -18,6 +18,24 @@ const records = defineCollection({ cover: z.string().optional(), }), }); +// ガイド(/guide。2026-11-15)。LOG とは別の、検索から来る人向けに版が変わるたび書き直す記事。LOG 番号は付けず、記録の一覧には並べない +// 作業ファイルは iCloud の デジタルツイン学習R2R2R/ガイド/{ガイドの名前}/(MASTER の保存先テーブル) +const guides = defineCollection({ + loader: glob({ pattern: '[!_]*.md', base: './src/content/guides' }), + schema: z.object({ + title: z.string(), + slug: z.string(), + // 初めて公開した日と、最後に書き直した日 + published: z.coerce.date(), + updated: z.coerce.date(), + meta_description: z.string().optional(), + tags: z.array(z.string()).optional(), + // サムネイル。ガイドは public/site/guides/{slug}.webp(ChatGPT で作った絵に Claude が題を組む。2026-11-15)。SNS・検索用に同じ名前の .jpg も置く。なければ出さない + thumb: z.string().optional(), + // 前は LOG として公開していた記事(転送の元の住所の説明用) + former_log: z.number().optional(), + }), +}); // 課題地図(/issues)。課題1件=1ファイル。先頭の項目がカード(点数・分類など)の唯一の正 const issues = defineCollection({ loader: glob({ pattern: '[!_]*.md', base: './src/content/issues' }), @@ -39,4 +57,4 @@ const issues = defineCollection({ status: z.enum(['skeleton', 'draft', 'verified']), }), }); -export const collections = { records, issues }; +export const collections = { records, issues, guides }; diff --git a/src/data/continuations.json b/src/data/continuations.json index 90c6991..50936f8 100644 --- a/src/data/continuations.json +++ b/src/data/continuations.json @@ -1,4 +1,4 @@ { "_説明": "古い記事の頭に「この記事の続き」として出す、続きの記事の対応(古い記事の slug → 続きの記事の slug)。2026-11-15 から。古い記事の本文は直さず、サイト側で案内を出す", - "day126": "generalist-ai-robot-foundation-model-gen-1-5-one-shot" + "day126": "/guide/generalist-ai-gen-1-5" } diff --git a/src/lib/llmsGuide.ts b/src/lib/llmsGuide.ts index 7b378df..e5aec94 100644 --- a/src/lib/llmsGuide.ts +++ b/src/lib/llmsGuide.ts @@ -3,6 +3,7 @@ // HTML 版を作った理由:Gemini のアプリはテキストのファイル(.txt・.md)を読まず、ふつうの Web ページ(HTML)だけ読むため // (2026-11-03 にアプリで確かめた。/thinking は読めて、/robots.txt・/llms.txt は「アクセスできませんでした」。API では .txt も読める)。 import { allCards, SERIES_PAGES } from './records'; +import { allGuides } from './guides'; import { SITE } from './seo'; import { fullTextPath } from './fulltext'; @@ -36,6 +37,8 @@ export async function guideSections(): Promise { { title: 'Pixels to Motors の1年', url: `${SITE}/one-year`, note: '画面の中の AI から、ロボットを動かす AI へ' }, { title: '課題地図', url: `${SITE}/issues`, note: 'フィジカルAIが社会実装される前に解くべき課題(週1回更新)' }, ] }, + // ガイド(2026-11-15):版が変わるたび書き直す、答えから読めるページ + { h: 'ガイド', items: (await allGuides()).map((g) => ({ title: g.title, url: SITE + g.href, note: g.description || undefined, date: jstDate(g.updated) })) }, // 公開日(日本時間)を添える。TOP の「このサイトの楽しみ方」で、AI に「前に来た日より後の記録」を拾わせるため(2026-11-03) { h: '記録(新しい順)', items: cards.map((c) => ({ title: `${c.day} ${c.title}`, url: `${SITE}/record/${c.slug}`, note: seriesName(c.series), date: jstDate(c.published), full: `${SITE}${fullTextPath(c.slug)}`, diff --git a/src/pages/index.astro b/src/pages/index.astro index cc7772f..fab1e35 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -39,6 +39,8 @@ const series = [ { href: '/series2', img: 's-1920x1318_v-frms_0d775000-730b-4ac2-90b5-d814a9f53fc6.webp', en: 'R2R2R', ja: 'デジタルツイン学習-R2R2R(Real to Render to Real)', desc: 'iPhone で物を3Dスキャンし、Unity で動きを試してから、机の上のロボットアームで実際に動かす記録。ロボット工学を学んでいないデザイナーでも、アームの動きを設計できるかを試しています。' }, { href: '/series4', img: '/site/series4-behind-the-solo-lab-door.png', en: 'Behind the Solo Lab', ja: 'ひとり研究所の裏側', desc: 'フィジカルAIの研究をひとりで続けるために、AIと一緒に作ってきた仕組みの記録。サイト、動画、記録の整理など、研究の外側の作業をどう回しているかを残しています。' }, + // ガイド(/guide。2026-11-15)。シリーズではないが、入口としてシリーズのカードに並べる。絵は ChatGPT で作り、題を Claude が組んだ(元の絵は iCloud の デジタルツイン学習R2R2R/ガイド/_card/) + { href: '/guide', img: '/site/guide-card.webp', en: 'Guide', ja: 'ガイド', desc: 'フィジカルAIを自分で試してみたい人のための手引き。実際の研究でかかった時間と費用、つまずいた所を、結論から読めるようにまとめています。' }, ]; const records = await allCards(); // ロボットに関わる人へ・事業所についての仕事の進め方(2026-11-12 エイイチが B 案に決定)。裏づけは公開済みの記録 diff --git a/src/pages/record/[slug].astro b/src/pages/record/[slug].astro index f5c402d..4d048e7 100644 --- a/src/pages/record/[slug].astro +++ b/src/pages/record/[slug].astro @@ -4,6 +4,7 @@ import { ymd } from '../../lib/format'; import { mediaHtml } from '../../lib/media'; import { fixBody, textOf, abs, AUTHOR, PUBLISHER, SITE, SITE_NAME } from '../../lib/seo'; import { SERIES_PAGES, allCards, withDeepDiveThumb } from '../../lib/records'; +import { allGuides } from '../../lib/guides'; import RecordCard from '../../components/RecordCard.astro'; import { getCollection, render } from 'astro:content'; import { existsSync, readFileSync } from 'node:fs'; @@ -12,6 +13,7 @@ import { linkifyHtml, emphasizeHtml, linkLogsHtml } from '../../lib/links.mjs'; import { roomyTables } from '../../lib/tables.mjs'; import { fullTextPath } from '../../lib/fulltext'; import emphasis from '../../data/emphasis.json'; +import '../../styles/record.css'; // 記事ページは2種類から作る // - Studio から移した記事:CMS の本文 HTML(src/data/records/。tools/import_all.py で作る) @@ -110,7 +112,9 @@ const siteNow = isOld && !seriesNow ? (await allCards()).find((c) => !/-en$/.tes // 続きの記事(2026-11-15):古い記事の本文を直さずに、続きを書いた記事へ案内する(src/data/continuations.json)。あれば「今の続き」より優先する const CONTINUATIONS = JSON.parse(readFileSync('src/data/continuations.json', 'utf-8')); const contSlug = !isEnglish ? CONTINUATIONS[r.slug] : null; -const contCard = contSlug ? (await allCards()).find((c) => c.slug === contSlug) : null; +// 続きがガイド(/guide/…。2026-11-15)のときは、住所をそのまま書く +const contGuide = contSlug?.startsWith('/guide/') ? (await allGuides()).find((g) => g.href === contSlug) : null; +const contCard = contGuide ? { slug: '', href: contGuide.href, day: 'ガイド', title: contGuide.title } : contSlug ? (await allCards()).find((c) => c.slug === contSlug) : null; const nowCard = contCard || seriesNow || siteNow; // AIで読む(2026-11-01):読み手が使っている AI を開き、この記事の全文(/record/{slug}.md。src/lib/fulltext.ts)を読ませる質問を入れた状態にする。 // ChatGPT・Claude・Perplexity は住所の後ろの q= で入力欄に入る。Gemini は入れる方法がないので、質問文をコピーしてから開く。 @@ -179,7 +183,7 @@ const jsonLd = [
{r.day}{seriesPage ? {r.series} : {r.series}}{ymd(r.published)}

{r.title}

{nowCard && ( - + {contCard ? `${ym(r.published)}の記録です。この記事の続き` : <>{ym(r.published)}の記録です。{seriesNow ? `${seriesName}の最新` : 'いま進めている記録'}} {nowCard.day} {nowCard.title} @@ -289,161 +293,3 @@ const jsonLd = [ )} - - diff --git a/tools/deep_dive_thumbs.json b/tools/deep_dive_thumbs.json index 8f55c05..b8d4fbf 100644 --- a/tools/deep_dive_thumbs.json +++ b/tools/deep_dive_thumbs.json @@ -1,11 +1,5 @@ { "items": [ - { - "log": 518, - "question": "見せるだけで/ロボットは/覚えるのか。", - "key": "覚えるのか", - "layout": 3 - }, { "log": 513, "question": "AIが自分を/改良し始めたら、/止められるか。", diff --git a/worker/index.js b/worker/index.js index e327cdb..5d440ce 100644 --- a/worker/index.js +++ b/worker/index.js @@ -82,6 +82,14 @@ const MOVED = { '/manga/': '/manga-archive', '/record/precision-is-not-learning': '/record/precision-is-not-learning-so101', '/record/precision-is-not-learning/': '/record/precision-is-not-learning-so101', + // LOG518 を LOG なしのガイドへ移した(エイイチ 2026-11-15)。全文ページ(.md)はガイドにないので、ガイドのページへ + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot': '/guide/generalist-ai-gen-1-5', + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot/': '/guide/generalist-ai-gen-1-5', + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot.md': '/guide/generalist-ai-gen-1-5', + // 元の HTML があったときに Cloudflare が案内していた別名も(2026-11-15 codex のレビュー A1) + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot.html': '/guide/generalist-ai-gen-1-5', + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot/index': '/guide/generalist-ai-gen-1-5', + '/record/generalist-ai-robot-foundation-model-gen-1-5-one-shot/index.html': '/guide/generalist-ai-gen-1-5', }; // 1桁の話数で来たとき、0を付けた住所へ転送するのは、ページがある話だけ(ない話を転送しても 404 になるだけなので。2026-10-30 の codex のレビュー) const EPISODES_1_9 = { manga: new Set(['1', '2', '3', '4', '5', '6', '7', '9']), 'english-4-koma': new Set(['1', '2', '3', '4', '7', '9']) };