added more syntax highlighting

This commit is contained in:
2024-02-08 14:27:49 +01:00
parent b7d5a80d99
commit c0af25af83
14 changed files with 2013 additions and 2198 deletions

View File

@@ -4,8 +4,8 @@ import Layout from "../layouts/Layout.astro";
import { Icon } from "astro-icon/components";
import "../styles/sidebar.scss";
const title = frontmatter.title + " | Docs";
const unsortedDocs = await Astro.glob("../pages/docs/*/*.mdx");
const docs = unsortedDocs.sort((a, b) =>
const unsortedDocs = await Astro.glob("../pages/docs/*/*.{md,mdx}");
const docs = unsortedDocs.sort((a) =>
a.url === "/docs/" + a.frontmatter.repo ? -1 : 1
);
---