Skip to content

Commit

Permalink
Merge pull request #79 from trolologuy/migrate-to-v2
Browse files Browse the repository at this point in the history
Migrate to v2
  • Loading branch information
trolologuy authored Oct 24, 2024
2 parents 61b9b58 + f35106b commit a312ed4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { defineUserConfig } from 'vuepress'
import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from '@vuepress/theme-default'
import { activeHeaderLinksPlugin } from '@vuepress/plugin-active-header-links'
import { backToTopPlugin } from '@vuepress/plugin-back-to-top'
import { nprogressPlugin } from '@vuepress/plugin-nprogress'
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { linksCheckPlugin } from '@vuepress/plugin-links-check'

export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
title: 'Useful Tools',
base: "/useful-tools/",
theme: defaultTheme({
repo: 'trolologuy/useful-tools',
docsDir: 'docs',
sidebar: 'heading',
}),
plugins: [
activeHeaderLinksPlugin({
sidebarLinkSelector: '.sidebar-link',
headerAnchorSelector: '.header-anchor'
}),
docsearchPlugin({
apiKey: '5b665c1ca2a775d036f6783485c4b41d',
indexName: 'trolologuy_useful-tools'
}),
backToTopPlugin(),
nprogressPlugin(),
linksCheckPlugin({
dev: true,
build: "error"
}),
],
})
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@vuepress/plugin-active-header-links": "^2.0.0-rc.55",
"@vuepress/plugin-back-to-top": "^2.0.0-rc.56",
"@vuepress/plugin-nprogress": "^2.0.0-rc.56",
"@vuepress/theme-default": "^2.0.0-rc.56",
"@vuepress/plugin-docsearch": "^2.0.0-rc.56",
"@vuepress/plugin-links-check": "^2.0.0-rc.56",
"@vuepress/plugin-nprogress": "^2.0.0-rc.56",
"@vuepress/theme-default": "^2.0.0-rc.56",
"sass-embedded": "^1.80.4",
"vue": "^3.5.0",
"vuepress": "^2.0.0-rc.18"
Expand Down

0 comments on commit a312ed4

Please sign in to comment.