Skip to content

Commit d21bfff

Browse files
committed
Update Docusaurus to latest version to resolve issue with shiki import
1 parent dac354f commit d21bfff

File tree

5 files changed

+4696
-2812
lines changed

5 files changed

+4696
-2812
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
11
This is the source repo for the [Talon wiki](https://talon.wiki), a community maintained wiki for [Talon voice](https://talonvoice.com/). For information on how to contribute, see our [Contributing](https://talon.wiki/CONTRIBUTING/) documentation.
2-
3-
4-
5-
Syntax Highlighting for talon files is from [talon.tmLanguage.json](./talon.tmLanguage.json) https://github.com/mrob95/vscode-TalonScript and is licensed under the MIT License.

docusaurus.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { Config } from "@docusaurus/types";
22
import type * as Preset from "@docusaurus/preset-classic";
33
import rehypeShiki, { RehypeShikiOptions } from "@shikijs/rehype";
4-
import {ShikiTransformer} from "shiki";
5-
import talonLanguage from "./talon.tmLanguage.json" ;
4+
import {BundledLanguage, bundledLanguages, ShikiTransformer} from "shiki";
5+
// import talonLanguage from "./talon.tmLanguage.json" ;
66
import { transformerColorizedBrackets } from '@shikijs/colorized-brackets'
7+
import {transformerNotationHighlight} from "@shikijs/transformers"
78

89

910
const config: Config = {
@@ -56,7 +57,7 @@ const config: Config = {
5657
transformers: [
5758
transformerColorizedBrackets() as unknown as ShikiTransformer,
5859
],
59-
langs: ["python", /* other languages */talonLanguage],
60+
langs: Object.keys(bundledLanguages) as BundledLanguage[]
6061
} satisfies RehypeShikiOptions,
6162
],
6263
],

0 commit comments

Comments
 (0)