chore: Switch to pnpm and create individual package for docs

This commit is contained in:
Jiaxin Peng
2025-10-31 13:46:31 +00:00
parent 770061e826
commit 7282fc6955
6 changed files with 3989 additions and 2469 deletions

View File

@@ -39,7 +39,7 @@ const vitePressOptions = {
const commonSidebarOptions = { const commonSidebarOptions = {
documentRootPath: '/docs', documentRootPath: '/',
useTitleFromFrontmatter: true, useTitleFromFrontmatter: true,
frontmatterTitleFieldName: 'title', frontmatterTitleFieldName: 'title',
collapsed: true, collapsed: true,

17
docs/package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "obsidian-to-notionnext-docs",
"private": true,
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"devDependencies": {
"vitepress": "^2.0.0-alpha.12",
"vitepress-sidebar": "^1.33.0",
"vue": "^3.5.22"
}
}

1756
docs/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -7,10 +7,7 @@
"scripts": { "scripts": {
"dev": "node esbuild.config.mjs", "dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json", "version": "node version-bump.mjs && git add manifest.json versions.json"
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
}, },
"keywords": [], "keywords": [],
"author": "Jiaxin PENG", "author": "Jiaxin PENG",
@@ -24,10 +21,7 @@
"esbuild": "0.19.5", "esbuild": "0.19.5",
"obsidian": "^1.6.6", "obsidian": "^1.6.6",
"tslib": "2.6.2", "tslib": "2.6.2",
"typescript": "5.2.2", "typescript": "5.2.2"
"vitepress": "^2.0.0-alpha.12",
"vitepress-sidebar": "^1.33.0",
"vue": "^3.5.22"
}, },
"dependencies": { "dependencies": {
"@jxpeng98/martian": "^1.3.1", "@jxpeng98/martian": "^1.3.1",

2213
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

2460
yarn.lock

File diff suppressed because it is too large Load Diff