Skip to content

docs: VitePress site (EN/zh-CN), GitHub Pages workflow, and README trim#17

Merged
lbb00 merged 6 commits intomainfrom
cursor/onessh-github-pages-a8b0
Apr 8, 2026
Merged

docs: VitePress site (EN/zh-CN), GitHub Pages workflow, and README trim#17
lbb00 merged 6 commits intomainfrom
cursor/onessh-github-pages-a8b0

Conversation

@lbb00
Copy link
Copy Markdown
Member

@lbb00 lbb00 commented Mar 31, 2026

Summary

This PR adds a VitePress documentation site under docs/, with English (default) and 简体中文 (/zh/). It targets a GitHub project page at https://tiangong-dev.github.io/onessh/ (base: '/onessh/').

Scope

  • docs/ (English) — Home, guide, reference (architecture & security).
  • docs/zh/ — Parallel Chinese pages for the same sections.
  • README / README.zh-CN — Shortened; detailed usage points to the docs site.
  • docs.yml — Build and deploy to GitHub Pages from main (after merge).
  • ci.ymldocs job runs npm ci + npm run docs:build on every PR.
  • internal/audit test — Poll after lumberjack Close() to avoid flaky rotation assertions on CI.

After merge

  1. Settings → Pages: set source to GitHub Actions (not branch deploy).
  2. First push to main with these workflows will publish the site.

Local preview

npm ci
npm run docs:dev
# EN: /onessh/   zh: /onessh/zh/

Status: Ready for merge.

Open in Web Open in Cursor 

cursoragent and others added 6 commits March 31, 2026 09:58
Add package.json scripts (docs:dev, docs:build), VitePress config with
GitHub Pages base path /onessh/, and guide content. Ignore node_modules
and VitePress cache/dist outputs.

Co-authored-by: lbb <mr@lbb00.com>
Add docs workflow using actions/upload-pages-artifact and deploy-pages.
Extend CI with npm ci and docs:build. Link the published docs URL from
both README files.

Co-authored-by: lbb <mr@lbb00.com>
Add reference index page, per-route sidebars for guide vs reference, and
nav dropdown. Update cross-links to VitePress routes; README paths for raw
Markdown viewers.

Co-authored-by: lbb <mr@lbb00.com>
Configure locales (root en + zh-CN under /zh/) with translated nav,
sidebars, footer, and local search UI. Add full zh guide and reference
pages. Trim README/ README.zh-CN to overview, quick start, build, test,
install, and design links; point readers to the docs site.

Co-authored-by: lbb <mr@lbb00.com>
Co-authored-by: lbb <mr@lbb00.com>
Close() can return before gzip backup completes; poll the audit directory
until counts stabilize to avoid flaky CI.

Co-authored-by: lbb <mr@lbb00.com>
@cursor cursor bot changed the title Add VitePress documentation for GitHub Pages docs: VitePress site (EN/zh-CN), GitHub Pages workflow, and README trim Apr 7, 2026
@cursor cursor bot marked this pull request as ready for review April 7, 2026 10:25
@lbb00 lbb00 merged commit 9edc190 into main Apr 8, 2026
2 checks passed
@lbb00 lbb00 deleted the cursor/onessh-github-pages-a8b0 branch April 8, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants