mirror of
https://github.com/prdlk/leetcode.git
synced 2026-09-17 07:26:27 +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/
|
||||||
/node_modules/
|
.blume/
|
||||||
|
dist/
|
||||||
dist
|
|
||||||
.wrangler
|
|
||||||
.source
|
|
||||||
src/pages.gen.ts
|
|
||||||
|
|||||||
@@ -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",
|
"name": "docs",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "waku dev",
|
"dev": "blume dev",
|
||||||
"build": "waku build",
|
"build": "blume build",
|
||||||
"start": "waku start",
|
"doctor": "blume doctor",
|
||||||
"types:check": "tsc --noEmit",
|
|
||||||
"lint": "biome check",
|
|
||||||
"format": "biome format --write",
|
|
||||||
"deploy": "wrangler deploy"
|
"deploy": "wrangler deploy"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cnfast": "^0.1.0",
|
"blume": "^1.4.3"
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/vite": "^4.3.3",
|
"wrangler": "^4"
|
||||||
"@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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
"name": "leetcode-docs",
|
"name": "leetcode-docs",
|
||||||
"main": "./dist/server/index.js",
|
"main": "worker.js",
|
||||||
"compatibility_date": "2026-08-13",
|
"compatibility_date": "2026-08-14",
|
||||||
"compatibility_flags": ["nodejs_als"],
|
|
||||||
"workers_dev": false,
|
"workers_dev": false,
|
||||||
"preview_urls": true,
|
"preview_urls": true,
|
||||||
"build": {
|
"build": {
|
||||||
// waku's cloudflare build enhancer writes a .wrangler/deploy redirect to its minimal
|
"command": "bun run build",
|
||||||
// generated config (no routes/preview_urls); remove it so this file stays authoritative.
|
|
||||||
"command": "bun run build && rm -rf .wrangler/deploy",
|
|
||||||
"watch_dir": "content"
|
"watch_dir": "content"
|
||||||
},
|
},
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"pattern": "lc.prad.codes",
|
"pattern": "od.prad.codes",
|
||||||
"custom_domain": true
|
"custom_domain": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"assets": {
|
"assets": {
|
||||||
|
"directory": "./dist",
|
||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"directory": "./dist/public",
|
"not_found_handling": "404-page",
|
||||||
"html_handling": "drop-trailing-slash"
|
"run_worker_first": true
|
||||||
},
|
},
|
||||||
"rules": [{ "type": "ESModule", "globs": ["**/*.js", "**/*.mjs"] }],
|
"vars": {
|
||||||
"no_bundle": true
|
"SITE_PASSWORD": "getcracked2026"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user