forked from kofal.net/zmk
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:
committed by
Cem Aksoylar
parent
6af22424f1
commit
4a339093ce
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user