chore: import from dist in docs (#1747)

pull/1748/head
Divyansh Singh 2 years ago committed by GitHub
parent ba97814c14
commit 3f692dc587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,8 @@
import { defineConfig } from '../../src/node'
import { version } from '../../package.json'
import { createRequire } from 'module'
import { defineConfig } from 'vitepress'
const require = createRequire(import.meta.url)
const pkg = require('vitepress/package.json')
export default defineConfig({
lang: 'en-US',
@ -57,7 +60,7 @@ function nav() {
{ text: 'Guide', link: '/guide/what-is-vitepress', activeMatch: '/guide/' },
{ text: 'Configs', link: '/config/introduction', activeMatch: '/config/' },
{
text: version,
text: pkg.version,
items: [
{
text: 'Changelog',

@ -1,5 +1,6 @@
{
"private": true,
"type": "module",
"devDependencies": {
"vitepress": "workspace:*"
}

Loading…
Cancel
Save