- Astro 71.7%
- TypeScript 15.8%
- CSS 11.1%
- JavaScript 1%
- Dockerfile 0.4%
| knowledge | ||
| public | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| astro.config.mjs | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
skimnet-archiver
This repository contains sources for a website which is supposed to be a drop-in replacement for the older skimnerphi.net website. It is built using Astro, but designed to reuse as many parts of the old website as possible. To some extent, this was successful!
The provided Dockerfile supports the following workflow:
- Building an image creates a static copy of website sources, including things like knowledge articles or the authors list.
- Running the container executes the Astro build process, saving the generated
bundle to
/app/dist.
This makes it easy to fix minor issues with the content in cases where touching source code of the website is not necessary, as well as provides an easy way for a different container (e.g. a web server) to access the generated files.
Note: Because the website is generated at runtime, /app/mod_files must
contain the content to process. It makes most sense to bind mount it from the
host, although read-write access is not required. /app/dist may be an
anonymous volume shared with a web server container.