Skip to content

Commit

Permalink
chore: bump docs to vitepress v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan committed Apr 4, 2024
1 parent 284eae9 commit 9ddd3af
Show file tree
Hide file tree
Showing 5 changed files with 1,317 additions and 103 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"tslib": "^2.6.2",
"tsup": "^8.0.2",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite": "^5.2.8",
"vitest": "^1.3.1",
"vue": "^3.3.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"devDependencies": {
"@iconify-json/logos": "^1.1.34",
"unocss": "^0.55.3",
"vitepress": "^1.0.0-rc.10",
"unocss": "^0.58.9",
"vitepress": "^1.0.2",
"vue": "^3.3.4"
}
}
11 changes: 5 additions & 6 deletions packages/docs/src/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { readFileSync } from 'node:fs'
import { defineConfig } from 'vitepress'
import UnoCSS from 'unocss/vite'

const __dirname = fileURLToPath(new URL('.', import.meta.url))
const vineGrammar = JSON.parse(
readFileSync(join(__dirname, './vine-ts.tmLanguage.json'), 'utf-8'),
)

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand Down Expand Up @@ -105,12 +109,6 @@ export default defineConfig({
},
languages: [
{
id: 'vue-vine',
scopeName: 'source.vue-vine',
path: join(
__dirname,
'./vine-ts.tmLanguage.json',
),
embeddedLangs: [
'vue-html',
'css',
Expand All @@ -119,6 +117,7 @@ export default defineConfig({
'less',
'stylus',
],
...vineGrammar,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/.vitepress/vine-ts.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vue-vine-ts",
"name": "vue-vine",
"scopeName": "source.vue-vine",
"patterns": [
{
Expand Down
Loading

0 comments on commit 9ddd3af

Please sign in to comment.