zihluwang 7ccf8be455 feat(build): add com and cn site build targets
- Rename the package and deployment domains to opensource.onixbyte.com
  and opensource.onixbyte.cn
- Extract a createConfig(target) factory in rspress.config.ts, with a
  thin rspress.cn.config.ts wrapper and build:com / build:cn scripts
- Make the cn build lead with zh-hans, add a Douyin social link, and
  omit international links such as X
- Emit canonical, hreflang alternate and Open Graph tags, plus a
  sitemap with per-route priorities and a generated robots.txt
- Remove the Gitea and GitLab CI pipelines and point the Vercel
  redirect at opensource.onixbyte.cn
- Drop the resolved Microsoft email delivery notice from the
  notifications pages
2026-09-29 12:53:01 +08:00
2026-05-20 01:04:37 -05:00
2026-05-20 01:04:37 -05:00
2026-05-19 21:45:20 -05:00
2026-05-19 21:45:20 -05:00
2026-05-19 21:45:20 -05:00
2026-05-19 21:45:20 -05:00
2026-05-23 08:42:52 +08:00
2026-05-23 15:07:43 +08:00
2026-05-20 01:04:37 -05:00
2026-05-19 21:45:20 -05:00

OnixByte Homepage

The official OnixByte site — a central hub for technical blogs, project documentation, and development standards.

Tech Stack

A static documentation site built with Rspress, supporting bilingual content (en-gb / zh-hans). All pages are authored in Markdown / MDX.

URLs

Domain Recommended For
opensource.onixbyte.cn Users in China mainland
opensource.onixbyte.com Users outside China mainland

Local Development

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

Directory Structure

docs/
├── public/          # Static assets (logos, icons, etc.)
├── en-gb/           # English content
│   ├── blogs/       # Technical blog posts
│   ├── projects/    # Project documentation
│   └── notifications/  # Announcements
└── zh-hans/         # Simplified Chinese content
    ├── blogs/
    ├── projects/
    └── notifications/

Deployment

Pushing to the main branch triggers a GitHub Actions workflow that builds the site and deploys it to GitHub Pages.

Licence

MIT

S
Description
No description provided
Readme MIT
454 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 97.5%
JavaScript 1.8%
CSS 0.7%