# vitepress构建的文档官网模板 **Repository Path**: FnTop/acri-doc-source ## Basic Information - **Project Name**: vitepress构建的文档官网模板 - **Description**: 🥭Vitepress+Vue3构建的文档官网页 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: http://fntop.gitee.io/acri-doc - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2023-12-07 - **Last Updated**: 2025-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Documentation ## README # VitepressDoc 该项目是一个vitepress引擎+Vue3渲染的文档官网页搭建模板 # How to use ? - `git clone https://gitee.com/FnTop/acri-doc-source.git` - if no have yarn ,you can install by npm. eg : `npm install yarn`. - `yarn install` - `yarn dev` - if happen error,you can ignore. eg : `yarn config set ignore-engines true` - `yarn build` for production. and you can test build by `yarn serve` # 目录结构 ```markdown - docs // 文档核心目录 - .vitepress - cache // vitepress项目默认生成 - dist // yarn build 生成的。发布生产时的资源文件 - theme // 首页主题图标样式配置 - style - var.css // 图标渐变色配置核心文件 - index.ts - confing.ts // 文档配置核心文件 - guide // 存放指南对应的所有页面 - index.md - version.md - public // 静态资源目录 - index.md // 文档首页配置页面 - deploy.sh // 发布dist文档内容到gitee - deployall.sh // 发布整个项目到gitee - package-locak.json // 默认生成 - package.json // 默认生成 - README.md // 项目文档 - yarn.lock // 默认生成 ``` # config.ts配置文件 ## 全局配置
配置项说明
浏览器tab logo配置 head: [ ['link', { rel: 'icon', href: '/acri-doc/logo.ico' }] ]
站点配置 base: '/acri-doc/'
是否显示最新更新时间 lastUpdated: true
是否显示代码行号 markdown: { lineNumbers: true // 显示行号 }
主题配置 themeConfig:{}
## themeConfig主题配置
配置项说明
返回顶部内容 returnToTopLabel: '返回顶部'
右侧大纲文本配置 outline: { level: "deep", label: "目录", }
首页社交配置 socialLinks: [{ icon: 'github', link: "https://github.com" }],
上次更新文本配置 lastUpdatedText: '上次更新',
页脚配置 footer: { message: 'Released 1.3.0 ', copyright: 'Copyright © 2023 Acri' }
头部导航配置 nav: [ { text: '首页', link: '/' }, { text: '指南', link: '/guide/', activeMatch: '/guide' } ],
左边导航配置 sidebar: { '/guide/': [ { text: '指南', items: [ { text: '文档', link: '/guide/' }, { text: 'AOP切面', link: '/guide/aop' }, ] } ] }
文档页脚配置 docFooter: { prev: '上一篇', next: '下一篇' }
# 预览