[Docs] Link docs to code: View-source buttons, snippet imports by path, edit-page links

オープン
#375 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, github

調査の方向性

Start with docs/astro.config.mjs and the project pages under docs/src/content/docs/**/*.mdx; check how Starlight configures edit links and how the build can read repository files. Then determine how snippets can link to the built commit and fail on missing paths or ranges. Done means snippets appear on at least three pages, every project page has a working source link, and the build rejects a missing snippet path.

索引モデルが issue の本文から書いたものです。

説明

area: docs-site priority: P2 size: M type: enhancement

Summary

Code shown in the docs is pasted by hand and can drift from the repo; 17 project pages have no source link; there is no 'edit this page' link.

Location

  • docs/src/content/docs/**/*.mdx
  • docs/astro.config.mjs

Evidence

Starlight editLink not configured; lastUpdated off. 17/35 project pages have no github.com/ibra-kdbra/Math-Problems/tree/... link (see page-template issue).

Expected

Every code block that shows repository code is imported from the file at build time and links to the exact lines on GitHub at the built commit.

Proposed fix

  1. <SourceLink path line?> and <ProjectFacts> (from manifest) render 'View source' buttons.
  2. <Snippet file="Math_Chaos/Lorenz-Attractor/solver.cpp" lines="10-42" />: reads the file at build time (Vite ?raw or fs), renders via Expressive Code with a caption linking to blob/<sha>/path#L10-L42; build fails if the file or range disappears.
  3. Edit-this-page and last-updated (git) in the layout footer.

Acceptance criteria

  • <Snippet> used on at least 3 pages
  • Build fails on a missing snippet path
  • Every project page shows a working View-source link

Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-030


Generated by Claude Code

主要言語
C++
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ibra-kdbra/Math-Problems のほかの issue

ibra-kdbra/Math-Problems の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。