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

57 lines
1.4 KiB
TypeScript
Raw Normal View History

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({
2026-09-25 13:30:06 -04:00
title: "prdlk",
description: "Documentation for my LeetCode solutions",
logo: "./public/logo.svg",
deployment: {
site: "https://lc.prd.lk",
},
github: {
owner: "prdlk",
repo: "leetcode",
},
2026-09-24 15:57:38 -04:00
lastModified: "git",
redirects,
content: {
root: "content",
},
theme: {
fonts: { display: inter, body: inter, mono: plexMono },
},
2026-09-24 15:57:38 -04:00
navigation: {
sidebar: {
display: "flat", // "flat" | "group" | "page"
},
},
});