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.
This commit is contained in:
Joel Spadin
2023-10-06 22:02:23 -05:00
committed by Cem Aksoylar
parent 6af22424f1
commit 4a339093ce
6 changed files with 269 additions and 0 deletions

View File

@@ -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",