chore: upgrade Vuepress
This commit is contained in:
@@ -1,19 +1,14 @@
|
|||||||
import { defaultTheme } from '@vuepress/theme-default';
|
import { defaultTheme } from '@vuepress/theme-default';
|
||||||
import { viteBundler } from '@vuepress/bundler-vite';
|
import { viteBundler } from '@vuepress/bundler-vite';
|
||||||
import { defineUserConfig } from 'vuepress';
|
import { defineUserConfig } from 'vuepress';
|
||||||
import { searchProPlugin } from 'vuepress-plugin-search-pro';
|
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch';
|
||||||
|
|
||||||
import head from './head';
|
import head from './head';
|
||||||
|
|
||||||
interface ChildPage {
|
|
||||||
text: string;
|
|
||||||
link: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
lang: 'en-US',
|
lang: 'en-US',
|
||||||
title: "Phundrak's Dotfiles",
|
title: "Phundrak's Dotfiles",
|
||||||
head: head,
|
head: head as any,
|
||||||
description: "Documentation of the GNU/Linux configuration of P'undrak",
|
description: "Documentation of the GNU/Linux configuration of P'undrak",
|
||||||
bundler: viteBundler({}),
|
bundler: viteBundler({}),
|
||||||
markdown: {
|
markdown: {
|
||||||
@@ -25,9 +20,9 @@ export default defineUserConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
searchProPlugin({
|
slimsearchPlugin({
|
||||||
indexContent: true,
|
indexContent: true
|
||||||
}),
|
})
|
||||||
],
|
],
|
||||||
theme: defaultTheme({
|
theme: defaultTheme({
|
||||||
sidebarDepth: 5,
|
sidebarDepth: 5,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
interface SimplifiedHeader {
|
interface SimplifiedHeader {
|
||||||
tag: string;
|
tag: string;
|
||||||
content: [any];
|
content: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const simplifiedHead = [
|
const simplifiedHead:SimplifiedHeader[] = [
|
||||||
{
|
{
|
||||||
tag: 'script',
|
tag: 'script',
|
||||||
content: [
|
content: [
|
||||||
@@ -128,7 +128,7 @@ const simplifiedHead = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let head = [];
|
let head:[string, any, string?][] = [];
|
||||||
simplifiedHead.forEach((tag: SimplifiedHeader) => {
|
simplifiedHead.forEach((tag: SimplifiedHeader) => {
|
||||||
let tagName = tag.tag;
|
let tagName = tag.tag;
|
||||||
tag.content.forEach((element) => {
|
tag.content.forEach((element) => {
|
||||||
|
|||||||
4467
package-lock.json
generated
4467
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -11,14 +11,14 @@
|
|||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.14",
|
"@vuepress/bundler-vite": "2.0.0-rc.26",
|
||||||
"@vuepress/plugin-umami-analytics": "2.0.0-rc.41",
|
"@vuepress/plugin-slimsearch": "^2.0.0-rc.118",
|
||||||
"@vuepress/theme-default": "2.0.0-rc.41",
|
"@vuepress/plugin-umami-analytics": "2.0.0-rc.118",
|
||||||
"vuepress": "2.0.0-rc.14",
|
"@vuepress/theme-default": "2.0.0-rc.118",
|
||||||
"vuepress-plugin-search-pro": "2.0.0-rc.52"
|
"vuepress": "2.0.0-rc.26"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"less": "^4.2.0",
|
"less": "^4.4.2",
|
||||||
"nord": "^0.2.1"
|
"nord": "^0.2.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user