Skip to content

Commit

Permalink
docs: fix import file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Dec 7, 2024
1 parent 9b68b72 commit e882a9a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
17 changes: 8 additions & 9 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "MIT",
"dependencies": {
"vitepress": "^1.5.0",
"vitepress-i18n": "^1.3.0",
"vitepress-sidebar": "^1.29.0",
"vitepress-i18n": "^1.3.1",
"vitepress-sidebar": "^1.30.2",
"vue": "^3.5.13"
}
}
11 changes: 6 additions & 5 deletions docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineConfig, UserConfig } from 'vitepress';
import { withSidebar, VitePressSidebarOptions } from 'vitepress-sidebar';
import { name, homepage } from '../../../package.json';
import { withSidebar } from 'vitepress-sidebar';
import type { VitePressSidebarOptions } from 'vitepress-sidebar/types';
import packageJson from '../../../package.json' with { type: 'json' };
import { withI18n } from 'vitepress-i18n';
import { VitePressI18nOptions } from 'vitepress-i18n/dist/types';
import type { VitePressI18nOptions } from 'vitepress-i18n/types';

const defaultLocale: string = 'en';

Expand Down Expand Up @@ -79,7 +80,7 @@ const vitePressI18nConfigs: VitePressI18nOptions = {
};

const vitePressConfigs: UserConfig = {
title: name.toUpperCase(),
title: packageJson.name.toUpperCase(),
lastUpdated: true,
outDir: '../dist',
cleanUrls: true,
Expand All @@ -90,7 +91,7 @@ const vitePressConfigs: UserConfig = {
['link', { rel: 'shortcut icon', href: '/favicon.ico' }]
],
sitemap: {
hostname: homepage
hostname: packageJson.homepage
},
rewrites: {
'en/:rest*': ':rest*'
Expand Down
4 changes: 2 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
Expand Down

0 comments on commit e882a9a

Please sign in to comment.