Guten Tag! This is openRuyi's website code & documents repo.
This project uses Docusaurus.
- Clone this repository.
- Change into the folder you just cloned into.
- Run
npm cito install the project dependencies. - Run
npm run start:ento start an English development server onlocalhost:3000. - (Optional) Run
npm run start:zhto start a zh-Hans development server. - Run
npm run buildto generate static content into thebuilddirectory. - (Optional) Run
npm run previewto preview the production build and test locale switching. - (Optional) Run
npm run build -- --locale zh-Hansto build only zh-Hans. - (Optional) Run
npm run build -- --locale ento build only English. - (Optional) Run
npm run write-translations -- --locale zh-Hansto edit and update zh-Hans translations.
Note: Docusaurus dev server (
start) runs one locale at a time. Switching locale in dev mode may return 404 if that locale server is not running. Usestart:en/start:zhfor locale-specific development, ornpm run previewto test cross-locale navigation.
This repository publishes a container image to GHCR:
ghcr.io/openruyi-project/homepage:latest(default branch)ghcr.io/openruyi-project/homepage:sha-<commit>ghcr.io/openruyi-project/homepage:<version>(for example,1.2.3)ghcr.io/openruyi-project/homepage:<major>.<minor>(for example,1.2)
Run directly:
docker run --rm -p 8080:80 ghcr.io/openruyi-project/homepage:latestThen open http://localhost:8080.
This project is licensed under the Mulan Permissive Software License v2 (MulanPSL-2.0).