Files
leetcode/apps/docs/blume.config.ts
T

45 lines
1.3 KiB
TypeScript

import { defineConfig } from "blume";
import redirects from "./redirects";
// Blume's defaults (`inter`, `ibm-plex-mono`) are fetched from fonts.gstatic.com
// on every build, which has timed out on the Pages runner and, fully offline,
// silently ships no fonts at all. The same two families from Fontsource, as
// local files, keep the build network-free. Blume resolves `src` from this
// directory; the workspace links these packages under ./node_modules.
const inter = {
name: "Inter",
variants: [
{ src: "./node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2", weight: "100..900" },
],
};
const plexMono = {
name: "IBM Plex Mono",
variants: [
{ src: "./node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2", weight: 400 },
{ src: "./node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2", weight: 500 },
],
};
export default defineConfig({
title: "Leetcode",
description: "Documentation for LeetCode solutions",
deployment: {
site: "https://prdlk.github.io",
base: "/leetcode",
},
lastModified: "git",
redirects,
content: {
root: "content",
},
theme: {
fonts: { display: inter, body: inter, mono: plexMono },
},
navigation: {
sidebar: {
display: "flat", // "flat" | "group" | "page"
},
},
});