設計ガイドラインへの言及をページごとの点にする (#2031) - #3298
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
設計ガイドライン(arch-guidelines)の X ボタンの下に数字を出すための、ブログ側の段階です。このリポジトリの表示は何も変わりません。
変更
x_mentions_import.mjsがガイドラインへの言及をpageに解決する。決め手は本文の URL、無ければ OGP カードの題x_guideline_pages.json(新規)— 題 → ページの表。27件。向こうのog:titleは frontmatter のtitleそのものなので題がページを指すが、titleを持たないページはog:titleがトップと同じ「アーキテクチャ設計ガイドライン」に落ちるため、共有ボタンを持つページだけを載せている。題が重複するAppendix2件も外したx_guideline_counts.json(新規・生成物)— ページ URL → 点。重みと切り上げは記事と同じで、scripts/lib/x_mentions.jsのWEIGHTを読んでいる結果
71件が
pageに解決し、未解決は 121 → 50 件に減った。27ページ中14ページに数字が付く。残った未解決のうち26件は、カードの題が「アーキテクチャ設計ガイドライン」に落ちるもの(トップページと、
titleを持たないページ)。どれも共有ボタンを持たないので数字の出しようがなく、意図して外している。🤖 Generated with Claude Code