#13 - A website for Rollscan: the project, its docs with search, the parts in 3D, downloads and changelog #28
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RollNote/rollscan!28
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/13-presentation-website"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ownui/tokens.cssand fonts, so the site and the app have one look: dark only, neutral greys, the blue accent.docs/as Markdown that reads well on Forgejo.site/scripts/sync.mjscopies 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 adocs/*.mdmissing fromsite/scripts/docs-map.mjs, and on a link or picture that points to nothing.src/formats.rs, the "what has been proven" lists from the README's Status table, and the parts and quantities fromhardware/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.hardware/stl/. The assembly is two glTF files made from the CAD script bysite/scripts/assembly_glb.pyand committed. Without WebGL, the render fromhardware/images/shows instead./dialog over the same index.site/Dockerfile(unprivileged nginx, read-only) builds from the repository root.site/compose.yamljoins the externalwebsitesnetwork, 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..forgejo/workflows/site.ymlruns formatting,astro checkand the build on pull requests that touch what the website shows.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).eliott/rollscanbecomesRollNote/rollscanin the README, installation,Cargo.tomlandtauri.conf.json, and the package homepage is now the website.Tested
pnpm lint,pnpm check(0 errors) andpnpm build(16 pages, search index) insite/.--read-only --cap-drop ALL. Every page answered 200,/docsredirected to/docs/, a missing page gave the 404 page, and the STL was served pre-compressed.Not tested
Changes in behaviour
.deb's homepage is now https://scan.roll-note.com instead of the Forgejo repository.docs/*.mdmust be added tosite/scripts/docs-map.mjs, or the website's build fails.