跳到正文
智源 FlagOpen:原創開源項目·· 2 小時前AI 評分15

FlagOpen/HumanCOIN-Doc:HumanCOIN 文件網站原始碼

FlagOpen/HumanCOIN-Doc

AI 導讀

FlagOpen/HumanCOIN-Doc 是 HumanCOIN 文件網站的原始碼,網站以 VitePress 建置,採用 GitBook 風格版面。英文是根語系,中文內容位於 /zh/;靜態建置輸出至 docs/.vitepress/dist/,並從 gh-pages 分支發布。

正文

Source for the HumanCOIN documentation site. It is built with VitePress in a modern, GitBook-style layout.

Local development

pnpm install
pnpm dev

Open http://localhost:5200/HumanCOIN-Doc/.

Content layout

docs/
├── .vitepress/       # config and custom theme
├── public/assets/    # shared images
├── index.md          # English home
├── *.md              # English guides
└── zh/               # Chinese home and guides

English is the root locale; Chinese is served from /zh/.

Build

pnpm build

Output: docs/.vitepress/dist/.

Deploy

The static build is published from the gh-pages branch. In repository settings, set Pages → Build and deployment → Source to Deploy from a branch, then gh-pages / root.

To update the site, rebuild and push docs/.vitepress/dist/ to gh-pages.

來源:智源 FlagOpen:原創開源項目 · github.com