-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yanghang
committed
Sep 22, 2024
1 parent
4813541
commit 33576a6
Showing
188 changed files
with
12,516 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 当前最新版本 | ||
|
||
目前正在构建中,更小的体积,更高更自由的扩展 | ||
|
||
|
||
# 小技巧 | ||
@vue.monu | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import {defineConfig} from 'vitepress' | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "Vue-Bag-Admin", | ||
description: "旨在让开发者能够以最小的成本完成开发降低重复工作", | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{text: '🐻首页️', link: '/'}, | ||
{text: '演示', link: '/markdown-examples'} | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: '入门指南', | ||
items: [ | ||
{text: '介绍', link: '/guide/intro'}, | ||
{text: '入门指南', link: '/guide/started'}, | ||
{text: '发布部署', link: '/guide/deploy'} | ||
] | ||
}, | ||
{ | ||
text: '开始使用', | ||
items: [ | ||
{text: '安装', link: '/guide/install'}, | ||
{text: '快速开始', link: '/guide/start'}, | ||
{ | ||
text: '插件列表', | ||
items: [ | ||
{text: '路由插件', link: '/plugins/router'}, | ||
{text: '布局插件', link: '/plugins/layout'}, | ||
{text: '多语言插件', link: '/plugins/language'}, | ||
{text: '图标插件', link: '/plugins/icon'}, | ||
{text: 'API插件', link: '/plugins/api'}, | ||
{text: '进度条插件', link: '/plugins/progress'}, | ||
] | ||
}, | ||
{text: '路由布局', link: '/guide/router'}, | ||
{text: '全局扩展', link: '/guide/global'}, | ||
{text: '表单组件', link: '/guide/comp'}, | ||
{text: 'Css原子化', link: '/guide/css'}, | ||
{text: 'Pinia状态管理', link: '/guide/pinia'}, | ||
] | ||
}, | ||
{ | ||
text: '高级用法', | ||
items: [ | ||
{text: '插件开发', link: '/plugins/exploit'}, | ||
{text: '自动导入', link: '/usage/import'}, | ||
{text: 'Vite插件', link: '/usage/vite'}, | ||
] | ||
}, | ||
{ | ||
text: 'Strapi', | ||
items: [ | ||
{text: 'API服务', link: '/strapi/install'}, | ||
] | ||
}, | ||
], | ||
|
||
socialLinks: [ | ||
{icon: 'instagram', link: 'https://github.com/vuejs/vitepress'} | ||
], | ||
// 设置搜索框的样式 | ||
search: { | ||
provider: "local", | ||
options: { | ||
translations: { | ||
button: { | ||
buttonText: "搜索文档", | ||
buttonAriaLabel: "搜索文档", | ||
}, | ||
modal: { | ||
noResultsText: "无法找到相关结果", | ||
resetButtonTitle: "清除查询条件", | ||
footer: { | ||
selectText: "选择", | ||
navigateText: "切换", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Theme from 'vitepress/theme' | ||
import './style/var.css' | ||
|
||
export default { | ||
...Theme | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
:root { | ||
--vp-c-brand: #00e6ff; | ||
--vp-c-brand-light: #00e6ffd4; | ||
--vp-c-brand-lighter: #a0d911; | ||
--vp-c-brand-lightest: #bcc0ff; | ||
--vp-c-brand-dark: #00e5ffd4; | ||
--vp-c-brand-darker: #00e5ffd4; | ||
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08); | ||
/* 标题 */ | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: linear-gradient( 135deg, #00e6ff 10%, #a0d911 100%); | ||
|
||
/* 图标背景 */ | ||
--vp-home-hero-image-background-image: linear-gradient( 135deg, #00e6ff 10%, #a0d911 100%); | ||
--vp-home-hero-image-filter: blur(180px); | ||
} | ||
|
||
.custom-block.tip { | ||
border-color: var(--vp-c-brand); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# Runtime API Examples | ||
|
||
This page demonstrates usage of some of the runtime APIs provided by VitePress. | ||
|
||
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files: | ||
|
||
```md | ||
<script setup> | ||
import { useData } from 'vitepress' | ||
|
||
const { theme, page, frontmatter } = useData() | ||
</script> | ||
|
||
## Results | ||
|
||
### Theme Data | ||
<pre>{{ theme }}</pre> | ||
|
||
### Page Data | ||
<pre>{{ page }}</pre> | ||
|
||
### Page Frontmatter | ||
<pre>{{ frontmatter }}</pre> | ||
``` | ||
|
||
<script setup> | ||
import { useData } from 'vitepress' | ||
|
||
const { site, theme, page, frontmatter } = useData() | ||
</script> | ||
|
||
## Results | ||
|
||
### Theme Data | ||
<pre>{{ theme }}</pre> | ||
|
||
### Page Data | ||
<pre>{{ page }}</pre> | ||
|
||
### Page Frontmatter | ||
<pre>{{ frontmatter }}</pre> | ||
|
||
## More | ||
|
||
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). |
Oops, something went wrong.