0
0
website/README.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

2023-11-05 23:05:38 +08:00
# Opnxng website
The source code of [about.opnxng.com](https://about.opnxng.com), powered by [Eleventy](https://github.com/11ty/eleventy).
2023-11-07 07:40:08 +08:00
## Credits
2023-11-05 23:05:38 +08:00
[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.
2023-11-07 07:40:08 +08:00
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 \
2024-10-17 12:28:18 +08:00
@11ty/eleventy@latest \
@11ty/eleventy-img@latest \
2023-11-07 07:40:08 +08:00
luxon \
2024-10-16 12:39:17 +08:00
html-minifier-terser \
2023-11-07 07:40:08 +08:00
clean-css \
2024-10-17 12:28:18 +08:00
eleventy-plugin-purgecss \
clean-css \
2023-11-07 07:40:08 +08:00
markdown-it-attrs \
2023-12-16 12:20:33 +08:00
markdown-it-bracketed-spans \
markdown-it-anchor
2023-11-07 07:40:08 +08:00
```
```
2024-10-17 12:28:18 +08:00
# Test
docker run --rm --name=npm -u 1000 -p 8080:8080 -v /path/to/website:/app -w /app node:lts-slim npx @11ty/eleventy --serve --quiet
```
```
2023-11-07 07:40:08 +08:00
# Generate website
2024-06-02 11:29:59 +08:00
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app --network none node:lts-slim npx eleventy
2023-11-07 07:40:08 +08:00
```
```
# Update
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm update
2023-12-16 12:20:33 +08:00
```