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

Open
#368 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.