Skip to content

docs: keep the images in docs/ only - #89

Merged
altrdev merged 1 commit into
mainfrom
docs/one-folder-of-images
Oct 19, 2026
Merged

altrdev merged 1 commit into
mainfrom
docs/one-folder-of-images

Conversation

@altrdev

@altrdev altrdev commented Oct 19, 2026

Copy link
Copy Markdown
Owner

The logo and the social preview were twice in the repository, in `docs/` (for the README, which needs an address on raw.githubusercontent.com) and in `book/src/images` (for the site). Two pages of the site also pointed at `main` on GitHub, so a release of the site could show an image newer than its text.

Now `docs/` is the only place:

  • the build of the site copies `docs/*` into `book/src/images` (git ignores that folder, like `reference.md`), and `development.md` has the same command for a local `mdbook serve`;
  • `introduction.md` and `control-panel.md` use `images/...` instead of the raw address;
  • the workflow also runs when `docs/**` changes.

Not tried locally, mdBook is not installed here: the build of this pull request is the check, and `og:image` and the logo in the stylesheet keep the same address (`/images/...`).

🤖 Generated with Claude Code

The images were in docs/ for the README and copied in book/src/images for the site. Now docs/ is the only place: the build of the site copies it next to the pages, and the pages use the copy instead of the address on raw.githubusercontent.com, so a page shows the image of its own version.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@altrdev
altrdev merged commit 9f23d31 into main Oct 19, 2026
6 checks passed
@altrdev
altrdev deleted the docs/one-folder-of-images branch October 19, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant