force touch of shiki

This commit is contained in:
Jonathan Summers-Muir committed 2022-12-09 01:33:37 +08:00
1 parent 1c5b0300e2
commit 18fd4ef46f
1 file changed
+6
@@ -7,6 +7,8 @@ import { flattenSections } from '~/lib/helpers'
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
import handleRefStaticProps from '~/lib/mdx/handleRefStaticProps'
import * as shiki from 'shiki'
const sections = flattenSections(clientLibsCommonSections)
export default function JSReference(props) {
@@ -14,6 +16,10 @@ export default function JSReference(props) {
}
export async function getStaticProps({ params }: { params: { slug: string[] } }) {
const forceShiki = await shiki.getHighlighter({
theme: 'github-light',
})
return handleRefStaticProps(sections, params, '/js', '/javascript')
}