docs: 对齐 DSH 全面优化

This commit is contained in:
czm
2026-09-14 09:18:49 +08:00
parent a24df6bb04
commit 9c90759aec
66 changed files with 2157 additions and 1634 deletions
-46
View File
@@ -1,46 +0,0 @@
name: Deploy GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Prepare Pages Directory
run: |
mkdir -p _site
cp board.html _site/
cp board.html _site/index.html
cp demo.html _site/ 2>/dev/null || true
cp -r assets _site/ 2>/dev/null || true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
+36
View File
@@ -0,0 +1,36 @@
name: Verify Agent Notes
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Verify note tree, format, and archive seals
env:
# HEAD is a no-op on a clean checkout. Compare against the pre-change
# commit: PR base, or the previous tip of the pushed branch.
# A new-branch push sends before=0000…; git show fails and the script
# skips append-only (seal-vs-disk still runs).
AGENT_NOTE_ARCHIVE_BASE_REF: ${{ github.event.pull_request.base.sha || github.event.before }}
run: |
npx tsx scripts/verify-agent-note-tree.ts
npx tsx scripts/verify-agent-note-format.ts
npx tsx scripts/verify-archived-agent-notes.ts