forked from Vaskivskyi/docs-asusrouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vuepress.config.ts
88 lines (77 loc) · 1.88 KB
/
vuepress.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { navbar } from "./navbar";
import { sidebar } from "./sidebar";
import * as path from "path";
import { defaultTheme } from '@vuepress/theme-default';
import { docsearchPlugin } from '@vuepress/plugin-docsearch';
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics';
import { sitemapPlugin } from "vuepress-plugin-sitemap2";
import { mdEnhancePlugin } from "vuepress-plugin-md-enhance";
export const domain = 'https://asusrouter.vaskivskyi.com';
export function getBase() {
let base = "/";
return base;
}
const pagePatterns = ["**/*.md", "!.vuepress", "!node_modules"];
const conf = {
base: getBase(),
title: "AsusRouter",
description: "Monitor and control your AsusWRT-powered router from Home Assistant",
dest: "dist",
public: "public",
temp: ".temp",
cache: ".cache",
pagePatterns,
head: [
["link", {
rel: "manifest",
href: `${ getBase() }site.webmanifest`,
}],
],
theme: defaultTheme({
editLinkText: "📖 Edit this page on GitHub to make it better",
contributors: false,
docsDir: "docs",
docsRepo: "Vaskivskyi/docs-asusrouter",
navbar: navbar,
repo: "Vaskivskyi/ha-asusrouter",
sidebar: sidebar,
sidebarDepth: 2,
themePlugins: {
git: true,
},
}),
debug: false,
plugins: [
[
docsearchPlugin({
apiKey: "69635b7a521270caf9878222c3ec8c44",
indexName: "asusrouter-vaskivskyi",
appId: "PQ7YIUCYH3",
locales: {
"/": {
placeholder: "Search",
},
},
}),
],
[
googleAnalyticsPlugin({
id: "G-DFHSWJ3ELB",
}),
],
[
sitemapPlugin({
hostname: domain,
}),
],
[
path.resolve(__dirname, "./docs/.vuepress/defaultPageClassPlugin.ts"),
],
[
mdEnhancePlugin({
footnote: true,
}),
],
],
}
export default conf;