Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/cap-js/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
renejeglinsky committed Feb 13, 2024
2 parents 4cfe7c6 + a485aa2 commit b48fd3f
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 238 deletions.
4 changes: 2 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UserConfig, DefaultTheme } from 'vitepress'
import type { LanguageInput, IRawGrammar } from 'shikiji'
import type { LanguageInput, RawGrammar } from 'shiki'
import { join, resolve } from 'node:path'
import { promises as fs } from 'node:fs'
import { URL } from 'node:url'
Expand Down Expand Up @@ -77,7 +77,7 @@ const menu = sidebar()
const nav = nav4(menu) as DefaultTheme.NavItem[]
const loadSyntax = async (file:string, name:string, alias:string=name):Promise<LanguageInput> => {
const src = await fs.readFile(join(__dirname, file))
const grammar:IRawGrammar = JSON.parse(src.toString())
const grammar:RawGrammar = JSON.parse(src.toString())
return { name, aliases: [name, alias], ...grammar }
}

Expand Down
Loading

0 comments on commit b48fd3f

Please sign in to comment.