vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Render images and 3D models in the browser views
3b2bcc30534f24b4628b6365e69dcb9065115065 · Keenan Nemetz · 13d ago · parent 87bab8e1
Render images and 3D models in the browser views A blob whose name is an image is served as that image, so the <img> a README already emitted works and the source view can show it. An SVG keeps its source view and previews on request. The instance introduction resolves assets/, so a landing-page picture is no longer a broken link. A changed image or model shows both sides in the commit, compare, and change request diffs, where git only says "binary". The 3D viewer is a vendored three.js bundle, loaded only when a page has a model, with a download fallback for a reader without JavaScript or WebGL. closes: 01M7XQ9AKKKFNEX0F679JRRYQD
docs/reference/instance-customization.md +12
| @@ -27,6 +27,18 @@ introduction body. | |||
| 27 | 27 | link's accessible name. It does not rename the Vole software or replace its | |
| 28 | 28 | brand mark. | |
| 29 | 29 | ||
| 30 | ### Images in the introduction | ||
| 31 | |||
| 32 | A relative destination in the introduction is a path in the customization | ||
| 33 | repository. Only a destination under `assets/` becomes a link, because that is | ||
| 34 | the namespace the instance serves as files. Point at a picture by its path | ||
| 35 | there: `assets/logo.png`, or `../assets/light/logo.png` from | ||
| 36 | `profile/README.md`. | ||
| 37 | |||
| 38 | An `assets/` destination becomes `/-/static/custom/assets/...`; a relative link | ||
| 39 | to anything else, and an absolute or external URL, stays as written. The public | ||
| 40 | and private introductions resolve the same way, so one image serves both readers. | ||
| 41 | |||
| 30 | 42 | ## Theming | |
| 31 | 43 | ||
| 32 | 44 | `profile/custom.css` loads after `vole.css`, `everforest.css`, `palettes.css`, | |