Skip to content

Commit e2ac925

Browse files
committed
docs: 隐私政策/更新日志迁入站点,update.json 移至仓库根
- 隐私政策(原 .github/CR.md,孤儿且命名晦涩)→ docs/privacy.md,footer 增「隐私政策」链接 - 更新日志 .github/changelog.md → docs/changelog.md,nav 增「更新日志」入口 - update.json:.github/ → 仓库根;release.yml 的 jq 模板路径同步为根,并改用 mktemp 临时文件避免「模板与产物同名」时重定向截断 - 同步路径引用:release.yml body_path 与 update.json 的 changelog均指向 docs/changelog.md - config.ts:裸露的 N/祈愿 收进「工具」下拉(莫奈调色器/祈愿模拟器)
1 parent 45af39f commit e2ac925

5 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,22 @@ jobs:
3030
COMMIT_COUNT: ${{ steps.pack.outputs.commit_count }}
3131
FULL_NAME: ${{ steps.pack.outputs.full_name }}
3232
run: |
33-
# 以仓库内 .github/update.json 为模板(保留 changelog 等静态字段),仅回填动态字段
33+
# 以仓库根的 update.json 为模板(保留 changelog 等静态字段),仅回填动态字段
34+
# 模板与产物同名,先写临时文件再覆盖,避免重定向截断输入
35+
tmp="$(mktemp)"
3436
jq \
3537
--arg version "Module ${TAG}" \
3638
--argjson versionCode "${COMMIT_COUNT}" \
3739
--arg zipUrl "https://github.com/${REPO}/releases/download/${TAG}/${FULL_NAME}" \
3840
'.version = $version | .versionCode = $versionCode | .zipUrl = $zipUrl' \
39-
.github/update.json > update.json
41+
update.json > "$tmp"
42+
mv "$tmp" update.json
4043
cat update.json
4144
4245
- name: 发布 GitHub Release
4346
uses: softprops/action-gh-release@v3
4447
with:
45-
body_path: .github/changelog.md
48+
body_path: docs/changelog.md
4649
files: |
4750
${{ steps.pack.outputs.full_name }}
4851
${{ steps.pack.outputs.lite_name }}

docs/.vitepress/config.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ export default defineConfig({
2424
nav: [
2525
{ text: '指南', link: '/guide/introduction' },
2626
{ text: '配置参考', link: '/config/module' },
27-
{ text: 'N', link: '/tools/monet' },
28-
{ text: '祈愿', link: '/tools/gacha' },
27+
{
28+
text: '工具',
29+
items: [
30+
{ text: '莫奈调色器', link: '/tools/monet' },
31+
{ text: '祈愿模拟器', link: '/tools/gacha' }
32+
]
33+
},
34+
{ text: '更新日志', link: '/changelog' },
2935
{ text: 'GitHub', link: 'https://github.com/Fanju6/NetProxy-Magisk' }
3036
],
3137

@@ -74,7 +80,7 @@ export default defineConfig({
7480
],
7581

7682
footer: {
77-
message: '基于 GPL-3.0 许可证发布',
83+
message: '基于 GPL-3.0 许可证发布 · <a href="/privacy">隐私政策</a>',
7884
copyright: 'Copyright © 2024-present Fanju'
7985
},
8086

File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"version": "Module v7.0.5",
33
"versionCode": 604,
44
"zipUrl": "https://github.com/Fanju6/NetProxy-Magisk/releases/download/v7.0.5/NetProxy_v7.0.5_604.zip",
5-
"changelog": "https://raw.githubusercontent.com/Fanju6/NetProxy-Magisk/refs/heads/main/.github/changelog.md"
5+
"changelog": "https://raw.githubusercontent.com/Fanju6/NetProxy-Magisk/refs/heads/main/docs/changelog.md"
66
}

0 commit comments

Comments
 (0)