mirror of
https://github.com/Wcowin/Mkdocs-Wcowin.git
synced 2025-07-20 08:56:35 +00:00
Deployed a5fca67 with MkDocs version: 1.6.1
This commit is contained in:
parent
54ac87b615
commit
2f044154e9
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -20,19 +20,19 @@ class AISummaryGenerator:
|
|||||||
# 🚀 CI 环境配置 - 默认只在 CI 环境中启用
|
# 🚀 CI 环境配置 - 默认只在 CI 环境中启用
|
||||||
# AI摘要环境配置
|
# AI摘要环境配置
|
||||||
self.ci_config = {
|
self.ci_config = {
|
||||||
# CI部署环境开关 (true=CI中启用AI摘要生成)
|
# CI部署环境开关 (不用管,只在ci.yml中设置有效)
|
||||||
'enabled_in_ci': os.getenv('AI_SUMMARY_CI_ENABLED', 'true').lower() == 'true',
|
'enabled_in_ci': os.getenv('AI_SUMMARY_CI_ENABLED', 'true').lower() == 'true',
|
||||||
|
|
||||||
# 本地部署环境开关 (true=本地开发时启用AI摘要)
|
# 本地部署环境开关 (true=本地开发时启用AI摘要)
|
||||||
'enabled_in_local': os.getenv('AI_SUMMARY_LOCAL_ENABLED', 'false').lower() == 'true',
|
'enabled_in_local': os.getenv('AI_SUMMARY_LOCAL_ENABLED', 'false').lower() == 'true',
|
||||||
|
|
||||||
# CI部署仅缓存模式 (true=仅使用缓存不调用API, false=允许生成新摘要)
|
# CI部署仅缓存模式(不用管,只在ci.yml中设置有效)
|
||||||
'ci_only_cache': os.getenv('AI_SUMMARY_CI_ONLY_CACHE', 'false').lower() == 'true',
|
'ci_only_cache': os.getenv('AI_SUMMARY_CI_ONLY_CACHE', 'false').lower() == 'true',
|
||||||
|
|
||||||
# 本地部署缓存功能开关 (true=启用缓存避免重复生成, false=总是生成新摘要)
|
# 本地部署缓存功能开关 (true=启用缓存避免重复生成, false=总是生成新摘要)
|
||||||
'cache_enabled': os.getenv('AI_SUMMARY_CACHE_ENABLED', 'true').lower() == 'true',
|
'cache_enabled': os.getenv('AI_SUMMARY_CACHE_ENABLED', 'true').lower() == 'true',
|
||||||
|
|
||||||
# CI部署备用摘要开关 (true=API失败时生成基础摘要, false=失败时不显示摘要)
|
# CI部署备用摘要开关 (不用管,只在ci.yml中设置有效)
|
||||||
'ci_fallback_enabled': os.getenv('AI_SUMMARY_CI_FALLBACK', 'true').lower() == 'true',
|
'ci_fallback_enabled': os.getenv('AI_SUMMARY_CI_FALLBACK', 'true').lower() == 'true',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user