Skip to content

Commit e9a7a65

Browse files
fix(docs): add Just grammar file and correct Starlight integration
Add missing just.tmLanguage.json grammar file to enable Just syntax highlighting in documentation code blocks. Changes: - Create packages/docs/src/grammars/ directory - Copy just.tmLanguage.json from infra repository - Fix astro.config.ts to use starlight's expressiveCode.shiki.langs instead of top-level markdown.shikiConfig.langs Starlight uses Expressive Code for syntax highlighting, which requires the grammar to be configured under starlight.expressiveCode.shiki.langs.
1 parent 62a2bb4 commit e9a7a65

File tree

2 files changed

+757
-5
lines changed

2 files changed

+757
-5
lines changed

packages/docs/astro.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import justGrammar from "./src/grammars/just.tmLanguage.json";
88

99
// https://astro.build/config
1010
export default defineConfig({
11-
markdown: {
12-
shikiConfig: {
13-
langs: [justGrammar],
14-
},
15-
},
1611
integrations: [
1712
starlight({
1813
title: "typescript-nix-template",
@@ -24,6 +19,11 @@ export default defineConfig({
2419
}),
2520
]
2621
: [],
22+
expressiveCode: {
23+
shiki: {
24+
langs: [justGrammar],
25+
},
26+
},
2727
social: [
2828
{
2929
icon: "github",

0 commit comments

Comments
 (0)