diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 5302691..549e33b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -35,70 +35,193 @@ _hmt.push(['_requirePlugin', 'UrlChangeTracker', { footer: { copyright: 'Copyright © 2024-present Fantastic-mobile', }, - // nav: [ - // { - // text: '指南', - // link: '/guide/start', - // }, - // { - // text: '技术支持', - // link: '/support', - // }, - // ], - // socialLinks: [ - // { - // icon: { - // svg: '', - // }, - // link: 'https://gitee.com/fantastic-mobile/basic', - // }, - // { - // icon: 'github', - // link: 'https://github.com/fantastic-mobile/basic', - // }, - // ], - // sidebar: { - // '/guide/': [ - // { - // text: '指南', - // items: [ - // { text: '开始', link: '/guide/start' }, - // { text: '代码规范', link: '/guide/coding-standard' }, - // { text: '环境配置', link: '/guide/configure' }, - // { text: '全局资源', link: '/guide/global-resources' }, - // { text: '图标', link: '/guide/svg-icon' }, - // { text: '路由', link: '/guide/router' }, - // { text: '全局状态管理', link: '/guide/store' }, - // { text: '与服务端交互', link: '/guide/axios' }, - // { text: '代码文件自动生成', link: '/guide/plop' }, - // { text: '常用 API', link: '/guide/api' }, - // { text: '移动端支持', link: '/guide/mobile-support' }, - // { text: '构建与预览', link: '/guide/build' }, - // ], - // }, - // ], - // '/': [ - // { - // text: '', - // items: [ - // { text: '技术支持', link: '/support' }, - // ], - // }, - // ], - // }, + nav: [ + { + text: '指南', + link: '/guide/intro', + }, + { + text: '组件', + link: '/components/index', + }, + { + text: '在线演示', + items: [ + { + text: 'Github', + items: [ + { + text: '基础版', + link: 'https://fantastic-mobile.github.io/basic-example', + }, + { + text: '专业版', + link: 'https://fantastic-mobile.github.io/pro-example', + }, + ], + }, + { + text: 'Cloudflare', + items: [ + { + text: '基础版', + link: 'https://fantastic-mobile.pages.dev/basic-example', + }, + { + text: '专业版', + link: 'https://fantastic-mobile.pages.dev/pro-example', + }, + ], + }, + ], + }, + { + text: '技术支持', + link: '/support', + }, + { + text: '下载 / 购买', + items: [ + { + text: '下载基础版', + link: 'https://github.com/fantastic-mobile/basic/releases', + }, + { + text: '购买专业版 ⭐', + link: '/buy', + }, + ], + }, + ], + socialLinks: [ + { + icon: { + svg: '', + }, + link: 'https://gitee.com/fantastic-mobile/basic', + }, + { + icon: 'github', + link: 'https://github.com/fantastic-mobile/basic', + }, + ], + sidebar: { + '/guide/': [ + { + text: '指引', + items: [ + { text: '文档说明', link: '/guide/intro' }, + { text: '为什么选择我们 ?', link: '/guide/why' }, + { text: '更新日志', link: '/guide/changelog' }, + ], + collapsed: false, + }, + { + text: '入门', + items: [ + { text: '准备工作', link: '/guide/ready' }, + { text: '开始', link: '/guide/start' }, + { text: '代码规范', link: '/guide/coding-standard' }, + { text: '配置', link: '/guide/configure' }, + { text: '开发者工具', link: '/guide/devtools' }, + { text: '路由', link: '/guide/router' }, + { text: '与服务端交互', link: '/guide/axios' }, + { text: '全局状态管理', link: '/guide/store' }, + { text: '全局资源', link: '/guide/global-resources' }, + { text: '图标', link: '/guide/svg-icon' }, + { text: '构建与预览', link: '/guide/build' }, + ], + collapsed: false, + }, + { + text: '进阶', + items: [ + { text: '浏览器适配', link: '/guide/viewport' }, + { text: 'PageLayout 组件', link: '/guide/page-layout' }, + { text: '登录', link: '/guide/login' }, + { text: '权限', link: '/guide/permission' }, + { text: '主题', link: '/guide/theme' }, + { text: '动态标题', link: '/guide/title' }, + ], + collapsed: false, + }, + { + text: '高级', + items: [ + { text: '页面缓存', link: '/guide/keep-alive' }, + { text: '国际化', link: '/guide/i18n' }, + { text: '常用 API', link: '/guide/api' }, + { text: '私有 Storage 数据', link: '/guide/storage' }, + { text: '页面水印', link: '/guide/watermark' }, + { text: '错误日志', link: '/guide/error-log' }, + { text: '自定义字体', link: '/guide/font' }, + { text: '使用 Composition API 开发', link: '/guide/vue3-composition-api' }, + // { + // text: '替换 UI 组件库', + // items: [ + // { text: '替换为 Ant Design Vue', link: '/guide/replace-to-antd' }, + // { text: '替换为 Arco Design Vue', link: '/guide/replace-to-arco' }, + // { text: '替换为 Naive UI', link: '/guide/replace-to-naive' }, + // { text: '替换为 TDesign', link: '/guide/replace-to-tdesign' }, + // { text: '替换为 Vexip UI', link: '/guide/replace-to-vexip' }, + // { text: '替换为 iDux', link: '/guide/replace-to-idux' }, + // ], + // collapsed: true, + // }, + ], + collapsed: false, + }, + { + text: '其它', + items: [ + { text: '框架更新', link: '/guide/upgrade' }, + { text: '常见问题', link: '/guide/q-a' }, + ], + collapsed: false, + }, + ], + '/components/': [ + { + text: '组件', + items: [ + { text: '介绍', link: '/components/' }, + ], + }, + { + text: '扩展组件', + items: [ + { text: 'Auth 鉴权', link: '/components/auth' }, + { text: 'AuthAll 鉴权', link: '/components/auth-all' }, + { text: 'PageMain 内容块', link: '/components/page-main' }, + { text: 'SvgIcon SVG图标', link: '/components/svg-icon' }, + { text: 'Trend 趋势标记', link: '/components/trend' }, + { text: 'Sparkline 迷你图', link: '/components/sparkline' }, + ], + }, + ], + '/': [ + { + text: '', + items: [ + { text: '购买专业版', link: '/buy' }, + { text: '技术支持', link: '/support' }, + ], + }, + ], + }, outline: 'deep', - // search: { - // provider: 'local', - // options: { - // translations: { - // button: { buttonText: '搜索文档', buttonAriaLabel: '搜索文档' }, - // modal: { - // noResultsText: '无法找到相关结果', - // resetButtonTitle: '清除查询条件', - // footer: { selectText: '选择', navigateText: '切换', closeText: '关闭' }, - // }, - // }, - // }, - // }, + search: { + provider: 'local', + options: { + translations: { + button: { buttonText: '搜索文档', buttonAriaLabel: '搜索文档' }, + modal: { + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { selectText: '选择', navigateText: '切换', closeText: '关闭' }, + }, + }, + }, + }, }, }) diff --git a/.vitepress/theme/components/SponsorsAside.vue b/.vitepress/theme/components/SponsorsAside.vue index 2a68915..48bc173 100644 --- a/.vitepress/theme/components/SponsorsAside.vue +++ b/.vitepress/theme/components/SponsorsAside.vue @@ -4,6 +4,12 @@ 作者其他作品