Skip to content

Commit a25dfde

Browse files
committed
re-enable syntax highlighting
1 parent 6f5fe74 commit a25dfde

2 files changed

Lines changed: 29 additions & 7 deletions

File tree

docs/docusaurus.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ module.exports = {
114114
},
115115
},
116116
],
117-
// Temporarily disabled due to TypeScript errors
118-
// [
119-
// 'docusaurus-preset-shiki-twoslash',
120-
// {
121-
// themes: ['material-palenight'],
122-
// },
123-
// ],
117+
[
118+
'docusaurus-preset-shiki-twoslash',
119+
{
120+
themes: ['material-palenight'],
121+
},
122+
],
124123
],
125124
}

docs/tsconfig.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"jsx": "react-jsx",
5+
"module": "esnext",
6+
"moduleResolution": "node",
7+
"allowSyntheticDefaultImports": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"strict": false,
11+
"noEmit": true,
12+
"allowJs": true
13+
},
14+
"include": [
15+
"docs/**/*",
16+
"src/**/*"
17+
],
18+
"exclude": [
19+
"node_modules",
20+
"build",
21+
".docusaurus"
22+
]
23+
}

0 commit comments

Comments
 (0)