[Docs] Link docs to code: View-source buttons, snippet imports by path, edit-page links
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cpp, github
- Ambito
- developer-experience, documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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/**/*.mdxdocs/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
<SourceLink path line?>and<ProjectFacts>(from manifest) render 'View source' buttons.<Snippet file="Math_Chaos/Lorenz-Attractor/solver.cpp" lines="10-42" />: reads the file at build time (Vite?rawor fs), renders via Expressive Code with a caption linking toblob/<sha>/path#L10-L42; build fails if the file or range disappears.- 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
- Lingua principale
- C++
- Stelle
- 2
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ibra-kdbra/Math-Problems#367 ·
Tutte le issue di ibra-kdbra/Math-Problems
Issue simili
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backApertadifficulty:easy prio:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NatronGitHub/openfx-supportext#311 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CachyOS/packageinstaller#211 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100