Skip to content

Commit

Permalink
added custom syntax highlighting for C3 (only the base)
Browse files Browse the repository at this point in the history
  • Loading branch information
onrirr committed Jan 31, 2024
1 parent c7eb48b commit 13ccf90
Show file tree
Hide file tree
Showing 3 changed files with 16,434 additions and 1 deletion.
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import starlight from "@astrojs/starlight";
import fs from "node:fs";

// https://astro.build/config
export default defineConfig({
Expand All @@ -12,6 +13,11 @@ export default defineConfig({
}),
starlight({
title: "The C3 Handbook",
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
},
},
}),
],
});
Loading

0 comments on commit 13ccf90

Please sign in to comment.