Skip to content

Commit 6ba516d

Browse files
committed
docs: migrate from VitePress to snaix.homes content format
- Flatten en/zh/zh-Hant guide/ subfolders into locale roots with frontmatter (title, section, order, locale) - Move other 26 minor locales to translations/ (kept for future onboarding; site exposes en + zh + zh-Hant for MVP) - Convert VitePress ::: code-group / ::: tip directives to snaix :::code-group / :::callout syntax - Move docs/public/ → docs/images/ - Add docs/docs.config.ts: sections (guide + cli), install commands (homebrew + DMG), linkRewrites - Replace GH Pages VitePress build workflow with deploy-hook ping - Docs render through snaix-docs at app.snaix.homes/iconchanger/
1 parent 42cc2e3 commit 6ba516d

351 files changed

Lines changed: 258 additions & 4257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Docs
1+
name: Trigger snaix.homes deploy
22

33
on:
44
push:
@@ -7,55 +7,16 @@ on:
77
- 'docs/**'
88
workflow_dispatch:
99

10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
15-
concurrency:
16-
group: pages
17-
cancel-in-progress: false
18-
1910
jobs:
20-
build:
11+
ping:
2112
runs-on: ubuntu-latest
2213
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
26-
- name: Setup Node
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: 20
30-
31-
- name: Install dependencies
32-
working-directory: docs
33-
run: npm install
34-
35-
- name: Copy sparkle.xml to public
14+
- name: POST deploy hook
3615
run: |
37-
mkdir -p docs/public/IconChanger/Resources
38-
cp IconChanger/Resources/sparkle.xml docs/public/IconChanger/Resources/sparkle.xml
39-
40-
- name: Build docs
41-
working-directory: docs
42-
run: npm run docs:build
43-
44-
- name: Setup Pages
45-
uses: actions/configure-pages@v4
46-
47-
- name: Upload artifact
48-
uses: actions/upload-pages-artifact@v3
49-
with:
50-
path: docs/.vitepress/dist
51-
52-
deploy:
53-
environment:
54-
name: github-pages
55-
url: ${{ steps.deployment.outputs.page_url }}
56-
needs: build
57-
runs-on: ubuntu-latest
58-
steps:
59-
- name: Deploy to GitHub Pages
60-
id: deployment
61-
uses: actions/deploy-pages@v4
16+
if [ -z "$HOOK" ]; then
17+
echo "::warning::SNAIX_DOCS_DEPLOY_HOOK not set — skipping ping"
18+
exit 0
19+
fi
20+
curl -fsS -X POST "$HOOK"
21+
env:
22+
HOOK: ${{ secrets.SNAIX_DOCS_DEPLOY_HOOK }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"account": {
3+
"id": "7dc451d670f90e12a108e6706a2e7349",
4+
"name": "Bengerlord@gmail.com's Account"
5+
}
6+
}

0 commit comments

Comments
 (0)