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 - uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 18.x
- uses: borales/actions-yarn@v4.2.0 - run: corepack enable
with: - run: yarn install --frozen-lockfile
cmd: install --frozen-lockfile - run: yarn build
- uses: borales/actions-yarn@v4.2.0
with:
cmd: docs:build
- name: "Deploy to remote server" - name: "Deploy to remote server"
uses: appleboy/scp-action@v0.1.4 uses: appleboy/scp-action@v0.1.4
with: with:

1
.gitignore vendored
View File

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

View File

@ -4,8 +4,8 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"docs:dev": "vuepress dev docs", "dev": "vuepress dev docs",
"docs:build": "vuepress build docs" "build": "vuepress build docs"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -14,9 +14,9 @@
"author": "Lucien Cartier-Tilet <lucien@phundrak.com>", "author": "Lucien Cartier-Tilet <lucien@phundrak.com>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"devDependencies": { "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": { "packageManager": "yarn@4.0.2"
"vuepress-plugin-remove-html-extension": "^0.1.0"
}
} }