website/docs: ensure yaml code blocks have language tags (#9240)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-04-12 16:51:50 +02:00
committed by GitHub
parent 7ef14eb86d
commit 6df28758f0
21 changed files with 42 additions and 40 deletions

View File

@ -1,6 +1,6 @@
const fs = require("fs").promises;
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import { themes as prismThemes } from "prism-react-renderer";
module.exports = async function (): Promise<Config> {
const remarkGithub = (await import("remark-github")).default;
@ -82,6 +82,8 @@ module.exports = async function (): Promise<Config> {
indexName: "goauthentik",
},
prism: {
theme: prismThemes.oneLight,
darkTheme: prismThemes.oneDark,
additionalLanguages: ["python", "diff", "json"],
},
},