0
0
website/README.md
2024-06-16 10:09:50 +08:00

37 lines
1.3 KiB
Markdown

# Opnxng website
The source code of [about.opnxng.com](https://about.opnxng.com), powered by [Eleventy](https://github.com/11ty/eleventy).
## Credits
[EB Garamond](http://www.georgduffner.at/ebgaramond/), a FOSS typeface designed by Georg Mayr-Duffner, is used for the drop caps. It is available on [Github](https://github.com/georgd/EB-Garamond).
[Heldane Text](https://klim.co.nz/blog/heldane-design-information/), another Garalde designed by Kris Sowersby, is used for the body text.
The site used the [reset styles](http://meyerweb.com/eric/tools/css/reset/) by Eric A. Meyer and the [SVG Favicons generator](https://github.com/shun-shobon/favicon-generator) by Shuntaro Nishizawa.
## Usage
```
# Initialize
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm init -y
# Install node modules
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm install \
npm \
@11ty/eleventy \
luxon \
html-minifier \
clean-css \
markdown-it-attrs \
markdown-it-bracketed-spans \
markdown-it-anchor
```
```
# Generate website
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app --network none node:lts-slim npx eleventy
```
```
# Update
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm update
```