Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {Options as DocsOptions} from "@docusaurus/plugin-content-docs";
import type {Options as BlogOptions} from "@docusaurus/plugin-content-blog";
import type {Options as PageOptions} from "@docusaurus/plugin-content-pages";
import type {Options as IdealImageOptions} from "@docusaurus/plugin-ideal-image";
import devAssetProxy from "./plugins/devAssetProxy";

/* import {announcementStarIcon, announcementGithubIcon, announcementHackerNewsIcon} from "./src/data/announcement-icons"; */

Expand All @@ -14,7 +13,6 @@ const baseUrl = process.env.BASE_URL ?? "/";
const fontAwesomeScript =
process.env.STYLES ?? "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/js/all.min.js";
const isDev = process.env.NODE_ENV !== "production";
const runtimePlugins: PluginConfig[] = isDev ? [[devAssetProxy, {}]] : [];

export default async function createConfigAsync() {
return {
Expand All @@ -30,6 +28,22 @@ export default async function createConfigAsync() {
onBrokenLinks: "throw",
staticDirectories: ["static"],
favicon: "/img/favicon.ico",
headTags: [
{
tagName: "link",
attributes: {
rel: "stylesheet",
href: "/cdn/fonts/hack.css",
},
},
{
tagName: "link",
attributes: {
rel: "stylesheet",
href: "/cdn/fonts/jetbrainsmono.css",
},
},
],
i18n: {defaultLocale: "en", locales: ["en"]},
markdown: {mermaid: true, emoji: true, format: "detect", hooks: {onBrokenMarkdownLinks: "warn"}},
customFields: {fontAwesomeScript},
Expand All @@ -52,13 +66,12 @@ export default async function createConfigAsync() {
swcHtmlMinimizer: true,
lightningCssMinimizer: true,
rspackBundler: true,
rspackPersistentCache: true,
rspackPersistentCache: false, // Disabled for CI/CD stability
ssgWorkerThreads: true,
mdxCrossCompilerCache: true,
},
},
plugins: [
...runtimePlugins,
[
"content-docs",
{
Expand Down
86 changes: 0 additions & 86 deletions functions/_r2.ts

This file was deleted.

3 changes: 0 additions & 3 deletions functions/cdn/[[path]].ts

This file was deleted.

3 changes: 0 additions & 3 deletions functions/img/[[path]].ts

This file was deleted.

8 changes: 0 additions & 8 deletions functions/tsconfig.json

This file was deleted.

Loading
Loading