aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/docusaurus.config.js
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2023-10-06 22:02:23 -0500
committerCem Aksoylar <[email protected]>2023-10-09 15:19:24 -0700
commit4a339093cebd9e89e531f78dc218907a292cbb1b (patch)
tree0f8ab2e27e4129bb230fb1a05085c251da67ad26 /docs/docusaurus.config.js
parent6af22424f1a7cdbe1845ffab96cae8aa9ed9c5d9 (diff)
downloadzmk-4a339093cebd9e89e531f78dc218907a292cbb1b.tar.gz
zmk-4a339093cebd9e89e531f78dc218907a292cbb1b.zip
docs: Add highlighting for devicetree and kconfig
Added syntax highlighting for devicetree and kconfig files. The PrismJS project is not accepting contributions right now as they work on a version 2 of the library, so the new language files are added directly here. Also enabled syntax highlighting for various languages that are used in the docs but aren't enabled in Docusaurus by default.
Diffstat (limited to 'docs/docusaurus.config.js')
-rw-r--r--docs/docusaurus.config.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js
index e039d3691f..701b5b997b 100644
--- a/docs/docusaurus.config.js
+++ b/docs/docusaurus.config.js
@@ -1,4 +1,6 @@
const path = require("path");
+const theme = require("./src/theme/prism/themes/github");
+const darkTheme = require("./src/theme/prism/themes/github-dark-dimmed");
module.exports = {
title: "ZMK Firmware",
@@ -20,6 +22,19 @@ module.exports = {
colorMode: {
respectPrefersColorScheme: true,
},
+ prism: {
+ additionalLanguages: [
+ "bash",
+ "c",
+ "cmake",
+ "ini",
+ "linker-script",
+ "log",
+ "powershell",
+ ],
+ theme,
+ darkTheme,
+ },
// sidebarCollapsible: false,
navbar: {
title: "ZMK Firmware",