chore(deps): update Vuepress

This commit is contained in:
Lucien Cartier-Tilet 2024-01-28 05:33:11 +01:00
parent 2d1e17f03b
commit 04ad590c24
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
5 changed files with 18 additions and 15 deletions

View File

@ -17,12 +17,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: borales/actions-yarn@v4.2.0
with:
cmd: install --frozen-lockfile
- uses: borales/actions-yarn@v4.2.0
with:
cmd: docs:build
- run: corepack enable
- run: yarn install --frozen-lockfile
- run: yarn build
- name: "Deploy to remote server"
uses: appleboy/scp-action@v0.1.4
with:

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules
.cache
/docs/**/*.md
/docs/.vuepress/dist/
/.yarn/

3
.yarnrc.yml Normal file
View File

@ -0,0 +1,3 @@
enableMessageNames: false
nodeLinker: node-modules

View File

@ -1,5 +1,7 @@
import { defineUserConfig, defaultTheme } from 'vuepress';
import { removeHtmlExtensionPlugin } from 'vuepress-plugin-remove-html-extension';
import { defaultTheme } from '@vuepress/theme-default';
import { viteBundler } from '@vuepress/bundler-vite';
import { defineUserConfig } from 'vuepress';
import head from './head';
interface ChildPage {
@ -109,6 +111,7 @@ export default defineUserConfig({
title: "Phundrak's Dotfiles",
head: head,
description: "Documentation of the GNU/Linux configuration of P'undrak",
bundler: viteBundler({}),
markdown: {
html: false,
linkify: true,
@ -117,7 +120,6 @@ export default defineUserConfig({
level: [1, 2, 3, 4, 5],
},
},
plugins: [removeHtmlExtensionPlugin()],
theme: defaultTheme({
sidebarDepth: 5,
repo: 'https://labs.phundrak.com/phundrak/config.phundrak.com',

View File

@ -4,8 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
"dev": "vuepress dev docs",
"build": "vuepress build docs"
},
"repository": {
"type": "git",
@ -14,9 +14,9 @@
"author": "Lucien Cartier-Tilet <lucien@phundrak.com>",
"license": "AGPL-3.0",
"devDependencies": {
"vuepress": "2.0.0-beta.63"
"@vuepress/bundler-vite": "^2.0.0-rc.2",
"@vuepress/theme-default": "^2.0.0-rc.2",
"vuepress": "2.0.0-rc.2",
},
"dependencies": {
"vuepress-plugin-remove-html-extension": "^0.1.0"
}
"packageManager": "yarn@4.0.2"
}