From 8295f271c1de8dabfcaab33381f2904e59b5deac Mon Sep 17 00:00:00 2001 From: f-o-x11 <239233855+f-o-x11@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:58:38 -0800 Subject: [PATCH] docs(deploy): add deed.page to other hosts --- content/docs/admin/deploy.md | 14 ++++++++++++++ content/docs/admin/deploy.zh.md | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/content/docs/admin/deploy.md b/content/docs/admin/deploy.md index 8c656fbf..b91374b1 100644 --- a/content/docs/admin/deploy.md +++ b/content/docs/admin/deploy.md @@ -222,6 +222,20 @@ for production and preview, unless the preview tests an upgrade. **Vercel** — set the build command to `hugo --gc --minify`, the output directory to `public`, and environment variable `HUGO_VERSION`. No npm install is required. +**deed.page** — upload `public/` as one archive; no account or CI setup is +needed. Build with the final `baseURL`, then pack and upload the output: + +```bash {title="Terminal"} +hugo --cleanDestinationDir --gc --minify --baseURL "https://my-docs.deed.page/" && + tar -czf site.tar.gz -C public . && + curl -T site.tar.gz "https://deed.page/v1/sites?slug=my-docs" +``` + +The response returns the site URL and a token, shown once. Send the token as +`Authorization: Bearer` with the same command to publish updates to that slug. +A single upload is limited to 4 MB; see the +[deed.page documentation](https://deed.page/docs) for larger sites. + **Any static server (Nginx / Caddy)** — serve an unchanged copy of `public/`. The example below uses a `current` symlink to a release directory; create it with the offline packaging steps below. Set the host's document root to that diff --git a/content/docs/admin/deploy.zh.md b/content/docs/admin/deploy.zh.md index 58a25be0..6472fc1d 100644 --- a/content/docs/admin/deploy.zh.md +++ b/content/docs/admin/deploy.zh.md @@ -193,6 +193,16 @@ HUGO_VERSION = "0.169.0" **Vercel** — 同样的三件事:构建命令 `hugo --gc --minify`、输出目录 `public`、环境变量 `HUGO_VERSION`。它同样不需要安装 npm 依赖。 +**deed.page** — 把 `public/` 打成一个归档上传,不需要注册账号,也不需要配置 CI。用最终的 `baseURL` 构建,然后打包并上传: + +```bash {title="终端"} +hugo --cleanDestinationDir --gc --minify --baseURL "https://my-docs.deed.page/" && + tar -czf site.tar.gz -C public . && + curl -T site.tar.gz "https://deed.page/v1/sites?slug=my-docs" +``` + +响应会返回站点地址和一个只显示一次的 token。之后用同一条命令并带上 `Authorization: Bearer` 头发送该 token,即可更新这个 slug 下的站点。单次上传上限为 4 MB;更大的站点请参阅 [deed.page 文档](https://deed.page/docs)。 + **任意静态服务器(Nginx / Caddy)** — 原样提供 `public/` 的内容。下例通过 `current` 符号链接指向一份发布目录,创建方法见下方离线打包步骤。配置 Nginx 或 Caddy 时,将宿主的站点根目录设为这个链接: