mirror of
https://github.com/prdlk/leetcode.git
synced 2026-09-16 23:16:26 +00:00
feat(config): switch docs to Blume and adjust Wrangler config
This commit is contained in:
+3
-7
@@ -1,7 +1,3 @@
|
||||
.DS_Store
|
||||
/node_modules/
|
||||
|
||||
dist
|
||||
.wrangler
|
||||
.source
|
||||
src/pages.gen.ts
|
||||
node_modules/
|
||||
.blume/
|
||||
dist/
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from "blume";
|
||||
|
||||
export default defineConfig({
|
||||
title: "Odyssey",
|
||||
logo: "https://avatars.githubusercontent.com/u/3804558?s=64&v=4",
|
||||
description: "Documentation powered by Blume.",
|
||||
content: {
|
||||
root: "content",
|
||||
},
|
||||
deployment: {
|
||||
site: "https://od.prad.codes",
|
||||
},
|
||||
navigation: {
|
||||
tabs: [
|
||||
{ label: "Coding", path: "/coding" },
|
||||
{ label: "System Design", path: "/system-design" },
|
||||
],
|
||||
},
|
||||
});
|
||||
+1281
-259
File diff suppressed because it is too large
Load Diff
+5
-27
@@ -2,38 +2,16 @@
|
||||
"name": "docs",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"dev": "waku dev",
|
||||
"build": "waku build",
|
||||
"start": "waku start",
|
||||
"types:check": "tsc --noEmit",
|
||||
"lint": "biome check",
|
||||
"format": "biome format --write",
|
||||
"dev": "blume dev",
|
||||
"build": "blume build",
|
||||
"doctor": "blume doctor",
|
||||
"deploy": "wrangler deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
"cnfast": "^0.1.0",
|
||||
"fumadocs-core": "16.14.4",
|
||||
"fumadocs-mdx": "15.2.3",
|
||||
"fumadocs-ui": "npm:@fumadocs/base-ui@16.14.4",
|
||||
"lucide-react": "^1.31.0",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8",
|
||||
"react-server-dom-webpack": "^19.2.8",
|
||||
"takumi-js": "^2.7.2",
|
||||
"waku": "1.0.0-beta.9"
|
||||
"blume": "^1.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/node": "^26.2.0",
|
||||
"@types/react": "^19.2.18",
|
||||
"@types/react-dom": "^19.2.4",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"typescript": "^6.0.3",
|
||||
"vite": "^8.2.1",
|
||||
"wrangler": "^4",
|
||||
"@biomejs/biome": "^2.5.8"
|
||||
"wrangler": "^4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"lib": ["dom", "dom.iterable", "ES2022"],
|
||||
"types": ["vite", "vite/client"],
|
||||
"jsx": "react-jsx",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"noEmit": true,
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import { defineConfig } from 'waku/config';
|
||||
import { fumadocsMdx } from 'fumadocs-mdx/vite';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
unstable_adapter: 'waku/adapters/cloudflare',
|
||||
vite: {
|
||||
resolve: {
|
||||
tsconfigPaths: true,
|
||||
dedupe: ['waku'],
|
||||
},
|
||||
|
||||
plugins: [tailwindcss(), fumadocsMdx()],
|
||||
},
|
||||
});
|
||||
+10
-11
@@ -1,28 +1,27 @@
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "leetcode-docs",
|
||||
"main": "./dist/server/index.js",
|
||||
"compatibility_date": "2026-08-13",
|
||||
"compatibility_flags": ["nodejs_als"],
|
||||
"main": "worker.js",
|
||||
"compatibility_date": "2026-08-14",
|
||||
"workers_dev": false,
|
||||
"preview_urls": true,
|
||||
"build": {
|
||||
// waku's cloudflare build enhancer writes a .wrangler/deploy redirect to its minimal
|
||||
// generated config (no routes/preview_urls); remove it so this file stays authoritative.
|
||||
"command": "bun run build && rm -rf .wrangler/deploy",
|
||||
"command": "bun run build",
|
||||
"watch_dir": "content"
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"pattern": "lc.prad.codes",
|
||||
"pattern": "od.prad.codes",
|
||||
"custom_domain": true
|
||||
}
|
||||
],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
"binding": "ASSETS",
|
||||
"directory": "./dist/public",
|
||||
"html_handling": "drop-trailing-slash"
|
||||
"not_found_handling": "404-page",
|
||||
"run_worker_first": true
|
||||
},
|
||||
"rules": [{ "type": "ESModule", "globs": ["**/*.js", "**/*.mjs"] }],
|
||||
"no_bundle": true
|
||||
"vars": {
|
||||
"SITE_PASSWORD": "getcracked2026"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user