Documentation site for Project Clice, built with VitePress.
This repo provides a composite action. When docs change in a source repo, it creates a PR here, validates the build, and auto-merges.
Add this workflow to your repo:
# .github/workflows/publish-docs.yml
name: publish docs
on:
push:
branches: [main]
paths:
- "docs/**"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: clice-io/docs@main
with:
project: your-project-name
token: ${{ secrets.PUBLISH_DOCS }}Two-level directory structure. Sidebar is auto-generated: level 1 directories become groups, level 2 .md files become items (title extracted from the first # heading).
docs/
├── en/
│ ├── guide/
│ │ ├── intro.md
│ │ └── quick-start.md
│ ├── design/
│ │ └── architecture.md
│ └── dev/
│ └── build.md
└── zh/ # same structure
└── ...
npm install
npm run devTo preview with docs from other repos, copy them in:
cp -rf ../clice/docs/en en/clice
cp -rf ../clice/docs/zh zh/clice