Skip to content

Commit f91da48

Browse files
committed
chore: upgrade vuepress plugins fix doc search navigation by enter key
1 parent cc34cf5 commit f91da48

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

.vuepress/config.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
const path = require('path');
2-
const { gitPlugin } = require('@vuepress/plugin-git');
3-
const { feedPlugin } = require('vuepress-plugin-feed2');
4-
const { defaultTheme } = require('@vuepress/theme-default');
5-
const { sitemapPlugin } = require('vuepress-plugin-sitemap2');
6-
const { docsearchPlugin } = require('@vuepress/plugin-docsearch');
7-
const { backToTopPlugin } = require('@vuepress/plugin-back-to-top');
8-
const { mediumZoomPlugin } = require('@vuepress/plugin-medium-zoom');
1+
import path from 'path';
2+
import { defineUserConfig } from '@vuepress/cli';
3+
import { gitPlugin } from '@vuepress/plugin-git';
4+
import { feedPlugin } from 'vuepress-plugin-feed2';
5+
import { defaultTheme } from '@vuepress/theme-default';
6+
import { sitemapPlugin } from 'vuepress-plugin-sitemap2';
7+
import { docsearchPlugin } from '@vuepress/plugin-docsearch';
8+
import { backToTopPlugin } from '@vuepress/plugin-back-to-top';
9+
import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom';
910

1011
const compareDate = (dateA, dateB) => {
1112
if (!dateA || !(dateA instanceof Date)) return 1;
@@ -14,7 +15,7 @@ const compareDate = (dateA, dateB) => {
1415
return dateB.getTime() - dateA.getTime();
1516
};
1617

17-
module.exports = {
18+
export default defineUserConfig({
1819
locales: {
1920
'/': {
2021
lang: 'English',
@@ -527,4 +528,4 @@ module.exports = {
527528
`export default ${JSON.stringify(app.pages.map(({ data }) => data))}`
528529
);
529530
},
530-
};
531+
});

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "nushell.github.io",
3-
"version": "0.0.1",
3+
"version": "0.0.0",
44
"description": "The Nushell website (nushell.sh)",
55
"repository": "github:nushell/nushell.github.io",
6+
"type": "module",
67
"scripts": {
78
"dev": "vuepress dev",
89
"build": "vuepress build",
@@ -11,17 +12,17 @@
1112
},
1213
"license": "MIT",
1314
"devDependencies": {
14-
"@vuepress/plugin-git": "^2.0.0-beta.49",
15-
"@vuepress/plugin-back-to-top": "^2.0.0-beta.49",
16-
"@vuepress/plugin-docsearch": "^2.0.0-beta.49",
17-
"@vuepress/plugin-medium-zoom": "^2.0.0-beta.49",
18-
"@vuepress/theme-default": "^2.0.0-beta.49",
15+
"@vuepress/plugin-git": "^2.0.0-beta.50",
16+
"@vuepress/plugin-back-to-top": "^2.0.0-beta.50",
17+
"@vuepress/plugin-docsearch": "^2.0.0-beta.50",
18+
"@vuepress/plugin-medium-zoom": "^2.0.0-beta.50",
19+
"@vuepress/theme-default": "^2.0.0-beta.50",
1920
"husky": "^8.0.1",
2021
"lint-staged": "^13.0.3",
2122
"prettier": "^2.7.1",
22-
"vuepress": "^2.0.0-beta.48",
23-
"vuepress-plugin-feed2": "^2.0.0-beta.86",
24-
"vuepress-plugin-sitemap2": "^2.0.0-beta.86"
23+
"vuepress": "^2.0.0-beta.50",
24+
"vuepress-plugin-feed2": "^2.0.0-beta.91",
25+
"vuepress-plugin-sitemap2": "^2.0.0-beta.91"
2526
},
2627
"lint-staged": {
2728
"**/*": "prettier --write --ignore-unknown"

0 commit comments

Comments
 (0)