/
config.ts
71 lines (62 loc) · 1.52 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { defineUserConfig } from "@vuepress/cli";
import { defaultTheme } from "@vuepress/theme-default";
import { componentsPlugin } from "vuepress-plugin-components";
const base = <"/" | `/${string}/`>process.env.BASE || "/";
export default defineUserConfig({
base,
title: "Components Lib",
description: "Components library for VuePress2",
theme: defaultTheme({
logo: "/logo.svg",
repo: "vuepress-theme-hope/vuepress-theme-hope/tree/main/demo/components/",
navbar: ["/", "/demo/"],
sidebar: [
"/demo/",
"/demo/badge",
"/demo/bilibili",
"/demo/codepen",
"/demo/fonticon",
"/demo/pdf",
"/demo/stackblitz",
"/demo/videoplayer",
"/demo/youtube",
],
themePlugins: {
backToTop: false,
},
}),
plugins: [
componentsPlugin({
addThis: "ra-5f829c59e6c6bc9a",
backToTop: true,
components: [
"Badge",
"BiliBili",
"CodePen",
"FontIcon",
"PDF",
"StackBlitz",
"VideoPlayer",
"YouTube",
],
iconAssets: "iconfont",
notice: {
locales: {
"/": {
title: "Notice Title",
content: "Notice Content",
actions: [
{
text: "Primary Action",
link: "https://vuepress-theme-hope.github.io/",
type: "primary",
},
{ text: "Default Action" },
],
},
},
fullscreen: true,
},
}),
],
});