docs(seo): sync lectures 02/03 to sitemap/llms.txt/README and fix og:url#31
Closed
watanabe-kohei-jp wants to merge 1 commit into
Closed
docs(seo): sync lectures 02/03 to sitemap/llms.txt/README and fix og:url#31watanabe-kohei-jp wants to merge 1 commit into
watanabe-kohei-jp wants to merge 1 commit into
Conversation
既存講義 02-setup / 03-claude-md を SEO・GEO 系メタデータに同期し、 02/03 の og:url が旧 GitHub Pages URL を指していた誤りを修正する。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 tasks
Collaborator
Author
watanabe-kohei-jp
added a commit
that referenced
this pull request
May 25, 2026
* docs(seo): sync lectures 02/03 to sitemap/llms.txt/README and fix og:url 既存講義 02-setup / 03-claude-md を SEO・GEO 系メタデータに同期し、 02/03 の og:url が旧 GitHub Pages URL を指していた誤りを修正する。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat(automation): auto-sync listings from NN-slug/index.html NN-slug/index.html を真実源として sitemap.xml / llms.txt / index.html / README.md の講義一覧ブロックを自動生成する仕組みを追加。 - scripts/sync_listings.py: <title> / <meta description> / <section> 数を 抽出して各 listing ファイルのマーカー間を再生成する - sync-listings-check.yml: PR で --check を強制 - sync-listings-bot.yml: main へのマージ後 --write して bot コミット - 4 ファイルにマーカー埋め込み、現状の listing を再生成済み - CONTRIBUTING.md / CLAUDE.md / _template/index.html に運用ノート追記 PR #31 で手動同期した同期漏れの再発防止。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(listings): regenerate sitemap lastmod after merge main 取り込み後の各講義 index.html の最終コミット日 (2026-05-19) を sitemap.xml に反映する。 * fix(automation): harden listing sync per code review Codex レビュー (PR #36) で出た 6 点を反映: 1. HTML/XML エスケープ: render_sitemap / render_index_html / render_readme_table が title / description / dir_name を生で埋めていたため、`<`, `&`, `"` 等が 入った瞬間に root index.html や sitemap.xml の構造が壊れるリスクがあった。 html.escape() を出力側で適用。読み込み側は html.unescape() で正規化して ダブルエンコードを避ける。 2. Marker injection 対策: title / description に '<!-- listings:auto'、改行、 '|' (markdown table 破壊要因) のいずれかが入っていたら fail させる pre-flight validation (validate_metadata) を追加。 3. README table 破壊対策: 1+2 と同系統。`|` を pre-flight で reject + 角括弧を markdown 側でエスケープ。 4. discover_lectures が NN-slug/index.html 不在を silently skip していたのを SystemExit に変更。壊れた lecture を見逃さない。 5. sync-listings-check.yml に permissions: contents: read を明示。 6. sync-listings-bot.yml の git add -A を 4 ファイル限定に絞り、 concurrency group を追加して push race を防止。 --------- Co-authored-by: watanabe-kohei-jp <283722319+watanabe-kohei-jp@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (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.
Summary
watanabe-kohei-jp.github.io) を指していた誤りを修正Related Issue
No-Issue: STRATEGY.md「第1段:正典化+GEO」の同期漏れ追従。02/03 追加時にメタ側へ反映されていなかった小規模修正で、独立した issue を立てるほどではないため。
Changes
sitemap.xml— 02-setup / 03-claude-md の URL を追加、トップの lastmod を更新llms.txt— 講義一覧に 02 / 03 を追記index.html(トップ) — 講義リストに 02 / 03 を追加README.md— 「何が読めるか」テーブルと公開 URL 一覧に 02 / 03 を追加02-setup/index.html—og:urlをco-lect.github.ioに修正03-claude-md/index.html— 同上Test plan
https://co-lect.github.io/lectures/sitemap.xmlで 02/03 が返ることを確認https://co-lect.github.io/lectures/llms.txtで 02/03 行があることを確認co-lect.github.io/...になっていることを確認🤖 Generated with Claude Code