#13 - A website for Rollscan: the project, its docs with search, the parts in 3D, downloads and changelog #28

Merged
eliott merged 7 commits from feat/13-presentation-website into main 2026-11-20 00:43:35 +01:00
Owner

Contains the commits of #19 (the app tour, docs/16-video-tutorials), merged with main: merge #19 first, or close it in favour of this one.

Rollscan gets a website, for scan.roll-note.com. It presents the project, holds all the documentation with full-text search, lets you turn every printed part and the assembled scanner in 3D, and lists the downloads, the changelog and what has and hasn't been proven. The docs also get new screenshots of the current app, and the app tour now matches it.

Closes #13

How it works

  • site/ is Astro with Starlight, built to static files. It uses the app's own ui/tokens.css and fonts, so the site and the app have one look: dark only, neutral greys, the blue accent.
  • The docs stay in docs/ as Markdown that reads well on Forgejo. site/scripts/sync.mjs copies them into the site at build time and rewrites their links. A link to another page stays on the website, a picture is resized by Astro, and a link to any other repository file goes to Forgejo. The build fails on a docs/*.md missing from site/scripts/docs-map.mjs, and on a link or picture that points to nothing.
  • Nothing is typed twice. The formats table comes from src/formats.rs, the "what has been proven" lists from the README's Status table, and the parts and quantities from hardware/README.md. The shopping lists come from the build guide, and the release notes, downloads and roadmap from Forgejo's API at build time (it sends no CORS headers, so a browser can't read it). If one of those files changes shape, the build fails and names it.
  • 3D: three.js, loaded only when a view is about to be seen, and it only draws while something moves. The single parts are the STLs in hardware/stl/. The assembly is two glTF files made from the CAD script by site/scripts/assembly_glb.py and committed. Without WebGL, the render from hardware/images/ shows instead.
  • Search: Starlight's Pagefind on the docs pages. The home page has its own Ctrl K / / dialog over the same index.
  • Deploying: site/Dockerfile (unprivileged nginx, read-only) builds from the repository root. site/compose.yaml joins the external websites network, like the Rollnote sites, and the reverse proxy sets TLS and the security headers. CLAUDE.md now says to rebuild the website after each release.
  • CI: .forgejo/workflows/site.yml runs formatting, astro check and the build on pull requests that touch what the website shows.
  • Screenshots: nine new ones in docs/images/. The scan side comes from the simulated scanner of the tests, through a throwaway harness that is not committed. The Convert pictures are two of my own RAW negatives (roll_07, roll_22).
  • Small fixes along the way: the repository URL eliott/rollscan becomes RollNote/rollscan in the README, installation, Cargo.toml and tauri.conf.json, and the package homepage is now the website.

Tested

  • pnpm lint, pnpm check (0 errors) and pnpm build (16 pages, search index) in site/.
  • The image built with podman and ran with --read-only --cap-drop ALL. Every page answered 200, /docs redirected to /docs/, a missing page gave the 404 page, and the STL was served pre-compressed.
  • In a browser at 1440 and 375 px wide: the home page, docs, parts in 3D (assembly, part switching), download, changelog and status, with no horizontal scroll at 375. Search worked from the home page dialog and from Starlight's, and opened the result.

Not tested

  • The CI workflow itself: no run yet, and the rollscan repository has had no Actions until now.
  • With Docker itself (only podman), and behind the real reverse proxy and domain.
  • Screen readers. Firefox and Chrome (the browser checks were WebKit).

Changes in behaviour

  • The .deb's homepage is now https://scan.roll-note.com instead of the Forgejo repository.
  • A new docs/*.md must be added to site/scripts/docs-map.mjs, or the website's build fails.
**Contains the commits of #19 (the app tour, docs/16-video-tutorials), merged with `main`: merge #19 first, or close it in favour of this one.** Rollscan gets a website, for scan.roll-note.com. It presents the project, holds all the documentation with full-text search, lets you turn every printed part and the assembled scanner in 3D, and lists the downloads, the changelog and what has and hasn't been proven. The docs also get new screenshots of the current app, and the app tour now matches it. Closes #13 ## How it works - `site/` is Astro with Starlight, built to static files. It uses the app's own `ui/tokens.css` and fonts, so the site and the app have one look: dark only, neutral greys, the blue accent. - The docs stay in `docs/` as Markdown that reads well on Forgejo. `site/scripts/sync.mjs` copies them into the site at build time and rewrites their links. A link to another page stays on the website, a picture is resized by Astro, and a link to any other repository file goes to Forgejo. The build fails on a `docs/*.md` missing from `site/scripts/docs-map.mjs`, and on a link or picture that points to nothing. - Nothing is typed twice. The formats table comes from `src/formats.rs`, the "what has been proven" lists from the README's Status table, and the parts and quantities from `hardware/README.md`. The shopping lists come from the build guide, and the release notes, downloads and roadmap from Forgejo's API at build time (it sends no CORS headers, so a browser can't read it). If one of those files changes shape, the build fails and names it. - 3D: three.js, loaded only when a view is about to be seen, and it only draws while something moves. The single parts are the STLs in `hardware/stl/`. The assembly is two glTF files made from the CAD script by `site/scripts/assembly_glb.py` and committed. Without WebGL, the render from `hardware/images/` shows instead. - Search: Starlight's Pagefind on the docs pages. The home page has its own Ctrl K / `/` dialog over the same index. - Deploying: `site/Dockerfile` (unprivileged nginx, read-only) builds from the repository root. `site/compose.yaml` joins the external `websites` network, like the Rollnote sites, and the reverse proxy sets TLS and the security headers. CLAUDE.md now says to rebuild the website after each release. - CI: `.forgejo/workflows/site.yml` runs formatting, `astro check` and the build on pull requests that touch what the website shows. - Screenshots: nine new ones in `docs/images/`. The scan side comes from the simulated scanner of the tests, through a throwaway harness that is not committed. The Convert pictures are two of my own RAW negatives (`roll_07`, `roll_22`). - Small fixes along the way: the repository URL `eliott/rollscan` becomes `RollNote/rollscan` in the README, installation, `Cargo.toml` and `tauri.conf.json`, and the package homepage is now the website. ## Tested - `pnpm lint`, `pnpm check` (0 errors) and `pnpm build` (16 pages, search index) in `site/`. - The image built with podman and ran with `--read-only --cap-drop ALL`. Every page answered 200, `/docs` redirected to `/docs/`, a missing page gave the 404 page, and the STL was served pre-compressed. - In a browser at 1440 and 375 px wide: the home page, docs, parts in 3D (assembly, part switching), download, changelog and status, with no horizontal scroll at 375. Search worked from the home page dialog and from Starlight's, and opened the result. ## Not tested - The CI workflow itself: no run yet, and the rollscan repository has had no Actions until now. - With Docker itself (only podman), and behind the real reverse proxy and domain. - Screen readers. Firefox and Chrome (the browser checks were WebKit). ## Changes in behaviour - The `.deb`'s homepage is now https://scan.roll-note.com instead of the Forgejo repository. - A new `docs/*.md` must be added to `site/scripts/docs-map.mjs`, or the website's build fails.
Part of #16
# Conflicts:
#	README.md
- Nine screenshots of v0.4.0 (simulated scanner for the scan side, real RAW negatives for Convert) replace the old one.
- docs/using-the-app.md follows the current window: Scan and Convert, moving the film by a length, zoom, file name, keyboard shortcuts, the two-step calibration.
- The build guide and the negative conversion page show the steps they describe.
- README links scan.roll-note.com and lists site/ in the layout.
- The releases and clone URLs, Cargo.toml repository and the package homepage use RollNote/rollscan and the website.
feat(site): a website with the project, its docs and search, the parts in 3D, downloads and changelog
All checks were successful
website / build (pull_request) Successful in 42s
b501f35153
- site/: Astro + Starlight, dressed in the app's tokens and fonts (ui/tokens.css).
- The docs are the repository's own Markdown, copied and relinked at build time; a missing page, link or picture fails the build.
- Home page, parts in 3D (STL per part, glTF of the assembly from the CAD script), download, changelog and roadmap read from Forgejo at build time, status from the README.
- Docker image (nginx, unprivileged), compose on the websites network, and a CI build on pull requests that touch what it shows.
# Conflicts:
#	docs/negative-conversion.md
Merge remote-tracking branch 'origin/main' into feat/13-presentation-website
All checks were successful
website / build (pull_request) Successful in 42s
cd048a500e
eliott merged commit 43f94227e7 into main 2026-11-20 00:43:35 +01:00
eliott deleted branch feat/13-presentation-website 2026-11-20 00:43:35 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RollNote/rollscan!28
No description provided.