[Docs] Stop copying project screenshots into docs/public; import them from project dirs

Aperta
#368 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

Start by reading the docs build configuration and the project manifest issue referenced in the body; inspect docs/public/imgs/ and the listed project image directories to trace current image references. The proposed Astro glob or integration and Vercel file access need to be worked out across projects. Done when docs/public/imgs is removed, duplicate image blobs are gone, and every documentation page still displays its images.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Summary

Every docs image is a byte-identical copy of a file inside a project folder (31 duplicated blobs, ~37 MB in the working tree and deploy). The copies have already drifted (renumbered fractal-0..8 vs fractal-1..9) and some were never copied (Lorenz, Mandelbrot explorer -> broken images).

Location

  • docs/public/imgs/
  • Sorting_algorithms_Visualization/preview/gif/
  • Mandlebrot/Fractal-gh/screenshots/
  • Unique_Algorithms/Quine-McCluskey/imgs/

Evidence

$ git ls-files -s | awk '{print $2}' | sort | uniq -d | wc -l
32
7e909fd3 12541140 Sorting_algorithms_Visualization/preview/gif/1.gif
7e909fd3 12541140 docs/public/imgs/sorting_algorithms/1.gif
9ff7b9b3   375360 Mandlebrot/Fractal-gh/screenshots/fractal-1.jpg
9ff7b9b3   375360 docs/public/imgs/fractal_gh/fractal-0.jpg

Expected

Each image exists once in the repo (next to its project) and the docs build imports it.

Proposed fix

Add a media/screenshots list to each project's manifest (see the project.yaml issue) and resolve those paths at build time with import.meta.glob('../../**/screenshots/*.{png,jpg}') or a small Astro integration that copies/optimises them; then delete docs/public/imgs. Configure Vercel's root/includeFiles so files outside docs/ are available to the build.

Acceptance criteria

  • docs/public/imgs removed
  • No duplicated blobs between docs/ and project dirs
  • All pages still show their images

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


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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.