diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-11 08:26:23 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-11 08:26:23 +0900 |
| commit | 732b681fecd3c4de338566f6159550b7ff702838 (patch) | |
| tree | c547f50f92b535db96ee447b5d2d601206149d00 /src/plugins/updates.ts | |
| parent | f1c96003399f7627b34734ae5b4e866d90b2ade5 (diff) | |
更新情報は git の履歴から自動生成されるため、ビルドで公園さんぽマップの項目が復活していた。プラグイン側の除外リストに追加し、公開時に外せるようにした。
Diffstat (limited to 'src/plugins/updates.ts')
| -rw-r--r-- | src/plugins/updates.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/updates.ts b/src/plugins/updates.ts index 6078cd1..ac9dc22 100644 --- a/src/plugins/updates.ts +++ b/src/plugins/updates.ts @@ -14,6 +14,11 @@ import { readFileSync, writeFileSync, mkdirSync } from "node:fs"; */ const BULK_FILES = 5; // これを超える数のファイルを変更したコミットは一括修正とみなす +// 更新情報に出さないページ(サイドバー未掲載のため一時的に非表示。公開時に削除する) +const HIDE_FROM_UPDATES = new Set<string>([ + "src/content/docs/kodaira-data/parks.mdx", // こだいら 公園さんぽマップβ(2026-11-11 一時非表示) +]); + type Item = { date: string; title: string; @@ -60,6 +65,7 @@ export default function updatesIntegration() { for (const f of c.files) { if (!f.path.startsWith("src/content/docs/")) continue; if (!f.path.endsWith(".mdx") || f.path.endsWith("/index.mdx")) continue; + if (HIDE_FROM_UPDATES.has(f.path)) continue; if (f.status === "A" && !added.has(f.path)) added.set(f.path, c.date); if (!bulk && !modified.has(f.path)) modified.set(f.path, c.date); } |
