mirror of
https://github.com/prdlk/leetcode.git
synced 2026-11-02 13:12:44 +00:00
66 lines
1.7 KiB
TypeScript
66 lines
1.7 KiB
TypeScript
import { defineConfig } from "blume";
|
|
import { filesystem, githubReleases } from "blume/sources";
|
|
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: "prdlk",
|
|
description: "Documentation for my LeetCode solutions",
|
|
logo: "./public/logo.svg",
|
|
deployment: {
|
|
site: "https://lc.prd.lk",
|
|
},
|
|
github: {
|
|
owner: "prdlk",
|
|
repo: "leetcode",
|
|
},
|
|
lastModified: "git",
|
|
redirects,
|
|
content: {
|
|
sources: [
|
|
filesystem({ root: "content" }),
|
|
githubReleases({
|
|
prefix: "changelog",
|
|
owner: "prdlk",
|
|
repo: "leetcode",
|
|
}),
|
|
],
|
|
},
|
|
theme: {
|
|
fonts: { display: inter, body: inter, mono: plexMono },
|
|
},
|
|
navigation: {
|
|
sidebar: {
|
|
display: "flat", // "flat" | "group" | "page"
|
|
},
|
|
tabs: [{ label: "Changelog", path: "/changelog" }],
|
|
},
|
|
});
|