Skip to content

設計ガイドラインへの言及をページごとの点にする (#2031) - #3298

Merged
ma91n merged 1 commit into
mainfrom
x-mentions-guidelines
Sep 17, 2026
Merged

ma91n merged 1 commit into
mainfrom
x-mentions-guidelines

Conversation

@ma91n

@ma91n ma91n commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

設計ガイドライン(arch-guidelines)の X ボタンの下に数字を出すための、ブログ側の段階です。このリポジトリの表示は何も変わりません。

変更

  • x_mentions_import.mjs がガイドラインへの言及を page に解決する。決め手は本文の URL、無ければ OGP カードの題
  • x_guideline_pages.json(新規)— 題 → ページの表。27件。向こうの og:title は frontmatter の title そのものなので題がページを指すが、title を持たないページは og:title がトップと同じ「アーキテクチャ設計ガイドライン」に落ちるため、共有ボタンを持つページだけを載せている。題が重複する Appendix 2件も外した
  • x_guideline_counts.json(新規・生成物)— ページ URL → 点。重みと切り上げは記事と同じで、scripts/lib/x_mentions.jsWEIGHT を読んでいる

結果

71件が page に解決し、未解決は 121 → 50 件に減った。27ページ中14ページに数字が付く。

ページ X点 はてブ
Webフロントエンド設計ガイドライン 1161 264
DynamoDB設計ガイドライン 338 54
Terraform設計ガイドライン 257 238
ログ設計ガイドライン 70 458
メール設計ガイドライン 45 451
Web API設計ガイドライン 36 134

残った未解決のうち26件は、カードの題が「アーキテクチャ設計ガイドライン」に落ちるもの(トップページと、title を持たないページ)。どれも共有ボタンを持たないので数字の出しようがなく、意図して外している。

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ma91n
ma91n merged commit 8a03949 into main Sep 17, 2026
2 checks passed
@ma91n
ma91n deleted the x-mentions-guidelines branch September 17, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant