mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-06-19 07:36:59 +00:00
f6992d8789
* test(self_check): add fixed-default bundled nginx-ui.conf fixture * test(self_check): add unfixed-default bundled nginx-ui.conf fixture * test(self_check): add customized and partial-fix fixtures * feat(self_check): add error codes for bundled nginx-ui.conf upgrade * feat(self_check): add CheckBundledNginxUIConf * feat(self_check): add idempotent applyBundledConfPatch * feat(self_check): add transactional patch-on-disk with backup restore * feat(self_check): wire FixBundledNginxUIConf with verify+reload * feat(self_check): register bundled nginx-ui.conf WS-fix task * test(docker): add init-config bats fixtures * feat(docker): hash-whitelist sync for bundled nginx-ui.conf * feat(docker): seed nginx-ui.conf known-hashes list * chore(docker): add maintainer script for nginx-ui.conf hash list * ci(docker): add bats + hash-consistency workflow for init-config.sh * feat(docker): ship nginx-ui.conf known-hashes inside the image * feat(self-check): banner button shows Fix when all failures are fixable * docs: add docker websocket fix guide (en) * docs: add docker websocket fix guide (zh_CN, zh_TW) * docs: link docker-websocket-fix page in all locale sidebars * docs(readme): link docker websocket fix guide * docs(readme): link docker websocket fix guide (translations) * fix(self_check): WS-fix check independent of NGINX_UI_IGNORE_DOCKER_SOCKET * fix(docker): respect bundled nginx host mode Keep bundled nginx-ui.conf self-checks aligned with Docker host mode and prevent config sync failures from blocking startup. * fix(docker): tighten bundled conf review fixes Co-authored-by: Jacky <me@jackyu.cn> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Jacky <me@jackyu.cn>
135 lines
4.6 KiB
TypeScript
135 lines
4.6 KiB
TypeScript
import { LocaleSpecificConfig, DefaultTheme } from 'vitepress'
|
|
import { demoUrl, editLinkPattern } from './common'
|
|
|
|
export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
|
|
themeConfig: {
|
|
nav: [
|
|
{ text: '首页', link: '/zh_CN/' },
|
|
{ text: '手册', link: '/zh_CN/guide/about' },
|
|
{ text: '赞助', link: '/zh_CN/sponsor' },
|
|
{ text: '演示', link: demoUrl }
|
|
],
|
|
|
|
editLink: {
|
|
text: '编辑此页',
|
|
pattern: editLinkPattern
|
|
},
|
|
|
|
sidebar: {
|
|
'/zh_CN/guide/': [
|
|
{
|
|
text: '介绍',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '何为 Nginx UI?', link: '/zh_CN/guide/about' },
|
|
{ text: '即刻开始', link: '/zh_CN/guide/getting-started' },
|
|
{ text: '使用 Homebrew 安装', link: '/zh_CN/guide/install-homebrew' },
|
|
{ text: '使用 Winget 安装', link: '/zh_CN/guide/install-winget' },
|
|
{ text: '安装脚本', link: '/zh_CN/guide/install-script-linux' }
|
|
]
|
|
},
|
|
{
|
|
text: '开发',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '开发容器', link: '/zh_CN/guide/devcontainer' },
|
|
{ text: '构建', link: '/zh_CN/guide/build' },
|
|
{ text: '项目结构', link: '/zh_CN/guide/project-structure' },
|
|
{ text: '配置模板', link: '/zh_CN/guide/nginx-ui-template' },
|
|
{ text: '开发翻译', link: '/zh_CN/guide/dev-translate' },
|
|
{ text: '贡献代码', link: '/zh_CN/guide/contributing' }
|
|
]
|
|
},
|
|
{
|
|
text: 'MCP',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '概述', link: '/zh_CN/guide/mcp' },
|
|
{ text: '配置文件管理', link: '/zh_CN/guide/mcp-config' },
|
|
{ text: 'Nginx 服务管理', link: '/zh_CN/guide/mcp-nginx' },
|
|
]
|
|
},
|
|
{
|
|
text: '配置',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: 'App', link: '/zh_CN/guide/config-app' },
|
|
{ text: 'Auth', link: '/zh_CN/guide/config-auth' },
|
|
{ text: 'Backup', link: '/zh_CN/guide/config-backup' },
|
|
{ text: 'Casdoor', link: '/zh_CN/guide/config-casdoor' },
|
|
{ text: 'Cert', link: '/zh_CN/guide/config-cert' },
|
|
{ text: 'Cluster', link: '/zh_CN/guide/config-cluster' },
|
|
{ text: 'Crypto', link: '/zh_CN/guide/config-crypto' },
|
|
{ text: 'Database', link: '/zh_CN/guide/config-database' },
|
|
{ text: 'Http', link: '/zh_CN/guide/config-http' },
|
|
{ text: 'Logrotate', link: '/zh_CN/guide/config-logrotate' },
|
|
{ text: 'Nginx', link: '/zh_CN/guide/config-nginx' },
|
|
{ text: 'Nginx Log', link: '/zh_CN/guide/config-nginx-log' },
|
|
{ text: 'Node', link: '/zh_CN/guide/config-node' },
|
|
{ text: 'Open AI', link: '/zh_CN/guide/config-openai' },
|
|
{ text: 'Server', link: '/zh_CN/guide/config-server' },
|
|
{ text: 'Site Check', link: '/zh_CN/guide/config-sitecheck' },
|
|
{ text: 'Terminal', link: '/zh_CN/guide/config-terminal' },
|
|
{ text: 'Webauthn', link: '/zh_CN/guide/config-webauthn' }
|
|
]
|
|
},
|
|
{
|
|
text: '环境变量',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '参考手册', link: '/zh_CN/guide/env' },
|
|
]
|
|
},
|
|
{
|
|
text: '附录',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: 'Docker WebSocket 修复', link: '/zh_CN/guide/docker-websocket-fix' },
|
|
{ text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example' },
|
|
{ text: '重置密码', link: '/zh_CN/guide/reset-password' },
|
|
{ text: '开源协议', link: '/zh_CN/guide/license' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
docFooter: {
|
|
prev: '上一页',
|
|
next: '下一页'
|
|
},
|
|
returnToTopLabel: '返回顶部',
|
|
outline: {
|
|
label: '导航栏'
|
|
},
|
|
darkModeSwitchLabel: '外观',
|
|
sidebarMenuLabel: '归档',
|
|
lastUpdated: {
|
|
text: '更新于'
|
|
},
|
|
search: {
|
|
provider: 'local',
|
|
options: {
|
|
locales: {
|
|
zh_CN: {
|
|
translations: {
|
|
button: {
|
|
buttonText: '搜索文档',
|
|
buttonAriaLabel: '搜索文档'
|
|
},
|
|
modal: {
|
|
noResultsText: '无法找到相关结果',
|
|
resetButtonTitle: '清除查询条件',
|
|
footer: {
|
|
selectText: '选择',
|
|
navigateText: '切换',
|
|
closeText: '关闭'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|