docs: rewrite README in British English

This commit is contained in:
2026-05-27 09:21:12 +08:00
parent e1d9349f67
commit a38cb70a21
+37 -17
View File
@@ -1,29 +1,49 @@
# Rspress website # OnixByte Homepage
## Setup The official OnixByte site — a central hub for technical blogs, project documentation, and development standards.
Install the dependencies: ## Tech Stack
A static documentation site built with [Rspress](https://rspress.dev/), supporting bilingual content (`en-gb` / `zh-hans`). All pages are authored in Markdown / MDX.
## URLs
| Domain | Recommended For |
|---|---|
| [onixbyte.cn](https://onixbyte.cn) | Users in mainland China |
| [onixbyte.com](https://onixbyte.com) | Users outside mainland China |
| [onixbyte.github.io](https://onixbyte.github.io) | Global (GitHub Pages fallback) |
## Local Development
```bash ```bash
npm install pnpm install
pnpm dev # Start dev server with HMR
pnpm build # Production build, outputs to dist/
pnpm preview # Preview the production build locally
pnpm lint # ESLint
pnpm format # Prettier — format all files
``` ```
## Get started ## Directory Structure
Start the dev server: ```
docs/
```bash ├── public/ # Static assets (logos, icons, etc.)
npm run dev ├── en-gb/ # English content
│ ├── blogs/ # Technical blog posts
│ ├── projects/ # Project documentation
│ └── notifications/ # Announcements
└── zh-hans/ # Simplified Chinese content
├── blogs/
├── projects/
└── notifications/
``` ```
Build the website for production: ## Deployment
```bash Pushing to the `main` branch triggers a GitHub Actions workflow that builds the site and deploys it to GitHub Pages.
npm run build
```
Preview the production build locally: ## Licence
```bash MIT
npm run preview
```