From 6b5fb707c2ea8c316b4d86fba2434f8bb806104d Mon Sep 17 00:00:00 2001 From: MiFaZhan Date: Fri, 30 Oct 2026 13:19:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20docs=20=E9=95=9C=E5=83=8F=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=88=B0=20v1.0.5=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=AB=99=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试反馈:访问文档站白屏、点击无反应。 根因:VitePress 配置 base: '/docs/',构建产物里资源引用是绝对路径 /docs/assets/xxx, 而 dist 目录是平铺的;镜像里的 nginx.conf 从根路径服务,/docs/assets/* 全部 404。 (此前修过同一问题,v1.0.4 同步代码时被覆盖回旧配置。) 上游已在 iotlcm-docs 修 nginx.conf(alias 剥前缀 + / -> /docs/ 重定向)并打 v1.0.5, 镜像 iotlcm-docs-v1.0.5 已由 tag 推送自动构建入库。 本仓把 docs 镜像 tag 从 v1.0.4 升到 v1.0.5。 实测:/ 302、/docs/ 200、/docs/manual/web/ 200、核心 CSS 200。 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9d8d6cb..fcf720d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -363,7 +363,7 @@ services: - with-bot docs: - image: 'crpi-qflrqrxoohlkkvgc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm:iotlcm-docs-v1.0.4' + image: 'crpi-qflrqrxoohlkkvgc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm:iotlcm-docs-v1.0.5' container_name: iotlcm-docs restart: unless-stopped ports: