Răsfoiți Sursa

不显示文档的更新时间,因为取不到

黄中银 1 săptămână în urmă
părinte
comite
774ca6b22a

+ 4 - 1
Apq.Cfg.Apollo/README.md

@@ -2,10 +2,13 @@
 
 [![NuGet](https://img.shields.io/nuget/v/Apq.Cfg.Apollo)](https://www.nuget.org/packages/Apq.Cfg.Apollo)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Apollo 配置中心支持,为 Apq.Cfg 提供从 Apollo 读取配置的能力,支持热重载。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 安装
 

+ 4 - 1
Apq.Cfg.Consul/README.md

@@ -2,10 +2,13 @@
 
 [![NuGet](https://img.shields.io/nuget/v/Apq.Cfg.Consul)](https://www.nuget.org/packages/Apq.Cfg.Consul)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Consul 配置中心支持,为 Apq.Cfg 提供从 Consul KV 存储读取配置的能力,支持热重载。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 安装
 

+ 4 - 1
Apq.Cfg.Database/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 数据库配置源扩展包,支持多种数据库。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Env/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 .env 文件配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Etcd/README.md

@@ -2,10 +2,13 @@
 
 [![NuGet](https://img.shields.io/nuget/v/Apq.Cfg.Etcd)](https://www.nuget.org/packages/Apq.Cfg.Etcd)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Etcd 配置中心支持,为 Apq.Cfg 提供从 Etcd KV 存储读取配置的能力,支持热重载。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 安装
 

+ 4 - 1
Apq.Cfg.Ini/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 INI 文件配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Nacos/README.md

@@ -2,10 +2,13 @@
 
 [![NuGet](https://img.shields.io/nuget/v/Apq.Cfg.Nacos)](https://www.nuget.org/packages/Apq.Cfg.Nacos)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Nacos 配置中心支持,为 Apq.Cfg 提供从 Nacos 读取配置的能力,使用官方 SDK,**支持热重载**。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 安装
 

+ 4 - 1
Apq.Cfg.Redis/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Redis 配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.SourceGenerator/README.md

@@ -1,10 +1,13 @@
 # Apq.Cfg.SourceGenerator
 
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 基于 Roslyn 的源生成器,为 Apq.Cfg 配置类自动生成零反射的绑定代码,支持 Native AOT。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 特性
 

+ 4 - 1
Apq.Cfg.Toml/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 TOML 文件配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Vault/README.md

@@ -1,10 +1,13 @@
 # Apq.Cfg.Vault
 
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Apq.Cfg 的 HashiCorp Vault 扩展,支持密钥管理和热重载功能。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 功能特性
 

+ 4 - 1
Apq.Cfg.Xml/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 XML 文件配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Yaml/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 YAML 文件配置源扩展包。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 依赖
 

+ 4 - 1
Apq.Cfg.Zookeeper/README.md

@@ -2,10 +2,13 @@
 
 [![NuGet](https://img.shields.io/nuget/v/Apq.Cfg.Zookeeper)](https://www.nuget.org/packages/Apq.Cfg.Zookeeper)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Apq.Cfg 的 Zookeeper 配置中心扩展,支持热重载。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 安装
 

+ 4 - 1
Apq.Cfg/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 统一配置管理系统核心库,提供配置管理接口和基础实现。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 特性
 

+ 4 - 1
README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 统一配置管理系统,支持多种配置格式和多层级配置合并。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 目录
 

+ 4 - 1
Samples/Apq.Cfg.Samples/README.md

@@ -1,10 +1,13 @@
 # Apq.Cfg.Samples
 
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 Apq.Cfg 配置库的完整功能示例项目。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 项目结构
 

+ 4 - 1
benchmarks/README.md

@@ -2,12 +2,15 @@
 
 [![Gitee](https://img.shields.io/badge/Gitee-Apq.Cfg-red)](https://gitee.com/apq/Apq.Cfg)
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 本目录包含 Apq.Cfg 配置库的性能基准测试,使用 [BenchmarkDotNet](https://benchmarkdotnet.org/) 框架。
 
 **仓库地址**:https://gitee.com/apq/Apq.Cfg
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 项目结构
 

+ 3 - 2
buildTools/gitee-deploy-cloudbase.sh

@@ -80,8 +80,9 @@ npm install -g @cloudbase/cli
 # 使用密钥登录
 tcb login --apiKeyId "$TENCENT_SECRET_ID" --apiKey "$TENCENT_SECRET_KEY"
 
-# 部署静态文件
-tcb hosting deploy .vitepress/dist -e "$CLOUDBASE_ENV_ID"
+# 部署静态文件到根目录
+# 格式: tcb hosting deploy <本地目录> <云端目录> -e <环境ID>
+tcb hosting deploy .vitepress/dist / -e "$CLOUDBASE_ENV_ID"
 
 echo ""
 echo "=========================================="

+ 9 - 8
docs/site/.vitepress/config.ts

@@ -155,13 +155,14 @@ export default defineConfig({
       next: '下一页'
     },
     
-    lastUpdated: {
-      text: '最后更新于',
-      formatOptions: {
-        dateStyle: 'short',
-        timeStyle: 'short'
-      }
-    },
+    // 禁用最后更新时间(Vercel/CloudBase 部署时无法获取 git 信息)
+    // lastUpdated: {
+    //   text: '最后更新于',
+    //   formatOptions: {
+    //     dateStyle: 'short',
+    //     timeStyle: 'short'
+    //   }
+    // },
     
     editLink: {
       pattern: 'https://gitee.com/apq/Apq.Cfg/edit/main/docs/site/:path',
@@ -173,7 +174,7 @@ export default defineConfig({
     lineNumbers: true
   },
   
-  lastUpdated: true,
+  lastUpdated: false,
   
   // 忽略 localhost 链接(用于部署文档中的本地开发服务器地址)
   ignoreDeadLinks: [

+ 4 - 1
tests/README.md

@@ -1,10 +1,13 @@
 # Apq.Cfg 测试
 
 [![Documentation](https://img.shields.io/badge/文档-Vercel-blue)](https://apq-cfg.vercel.app/)
+[![国内文档](https://img.shields.io/badge/国内文档-CloudBase-green)](https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/)
 
 本目录包含 Apq.Cfg 的单元测试项目。
 
-**📖 在线文档**:https://apq-cfg.vercel.app/
+**📖 在线文档**:
+- 国际访问:https://apq-cfg.vercel.app/
+- 国内访问:https://apq-9g6w58ii54088d8b-1251405840.tcloudbaseapp.com/
 
 ## 项目结构