Chore: remove legacy example

This commit is contained in:
Fuma Nama
2026-03-03 21:26:56 +08:00
parent 82977c3ce0
commit a67b7dc806
15 changed files with 0 additions and 254 deletions
-7
View File
@@ -1,7 +0,0 @@
.DS_Store
/node_modules/
# React Router
/.react-router/
/build/
.source
-13
View File
@@ -1,13 +0,0 @@
import { Outlet } from 'react-router';
import { Layout as ClientLayout } from 'fumapress/routes/root/client';
import './styles.css';
export { ErrorBoundary } from 'fumapress/routes/root/client';
export function Layout({ children }: { children: React.ReactNode }) {
return <ClientLayout>{children}</ClientLayout>;
}
export default function Component() {
return <Outlet />;
}
-9
View File
@@ -1,9 +0,0 @@
import { defineRoutes } from 'fumapress';
export default defineRoutes({
root: {
id: 'root',
path: '',
lazy: () => import('./root'),
},
});
-4
View File
@@ -1,4 +0,0 @@
@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
@source '../node_modules/fumapress/src/**/*';
-32
View File
@@ -1,32 +0,0 @@
---
title: Hello World
description: |
Your first `document`
You'll love it!
---
Hey there! Fumadocs is the docs framework that also works on React Router!
## Heading
Hello World
<Cards>
<Card title="Learn more about React Router" href="https://reactrouter.com" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.dev" />
</Cards>
```ts
console.log('I love React!');
```
### Heading
#### Heading
| Head | Description |
| ------------------------------- | ----------------------------------- |
| `hello` | Hello World |
| very **important** | Hey |
| _Surprisingly_ | Fumadocs |
| very long text that looks weird | hello world hello world hello world |
-4
View File
@@ -1,4 +0,0 @@
{
"icon": "\uD83D\uDCDA",
"root": true
}
-24
View File
@@ -1,24 +0,0 @@
---
title: Test
description: A document to test Fumadocs
---
Hey there!
## Cards
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.dev" />
</Cards>
### CodeBlock
```js
console.log('Hello World');
```
#### List
- Hello
- World
-8
View File
@@ -1,8 +0,0 @@
---
title: Fumadocs
description: You can just be minimal.
---
## Overview
Fumadocs is a docs framework.
-10
View File
@@ -1,10 +0,0 @@
---
title: Home
layout: home
---
Welcome to Fumapress! Open [docs](/docs).
```ts
console.log('Hello World');
```
-33
View File
@@ -1,33 +0,0 @@
{
"name": "example-fumapress",
"private": true,
"type": "module",
"scripts": {
"build": "fumapress build",
"dev": "fumapress dev",
"start": "fumapress preview",
"types:check": "fumapress typegen && tsc --noEmit"
},
"dependencies": {
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"fumapress": "workspace:*",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router": "^7.13.1"
},
"devDependencies": {
"@remix-run/node-fetch-server": "^0.13.0",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"express": "^5.2.1",
"react-router-devtools": "^6.2.0",
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3",
"vite": "^7.3.1"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

-27
View File
@@ -1,27 +0,0 @@
import { createRequestListener } from '@remix-run/node-fetch-server';
import express from 'express';
import build from './dist/rsc/index.js';
const app = express();
app.use(
'/assets',
express.static('dist/client/assets', {
immutable: true,
maxAge: '1y',
}),
);
app.use(express.static('dist/client'));
app.get('/.well-known/appspecific/com.chrome.devtools.json', (_, res) => {
res.status(404);
res.end();
});
app.use(createRequestListener(build));
const PORT = Number.parseInt(process.env.PORT || '3000');
app.listen(PORT, () => {
console.log(`Server listening on port ${PORT} (http://localhost:${PORT})`);
});
-18
View File
@@ -1,18 +0,0 @@
{
"include": ["**/*", "**/.server/**/*", "**/.client/**/*"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["node", "vite/client"],
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"baseUrl": ".",
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
}
}
-7
View File
@@ -1,7 +0,0 @@
import { defineConfig } from 'vite';
import { fumapress } from 'fumapress/vite';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [fumapress(), tailwindcss()],
});
-58
View File
@@ -436,64 +436,6 @@ importers:
specifier: ^5.9.3
version: 5.9.3
examples/fp:
dependencies:
fumadocs-core:
specifier: workspace:*
version: link:../../packages/core
fumadocs-mdx:
specifier: workspace:*
version: link:../../packages/mdx
fumadocs-ui:
specifier: workspace:*
version: link:../../packages/radix-ui
fumapress:
specifier: workspace:*
version: link:../../packages/press
react:
specifier: ^19.2.4
version: 19.2.4
react-dom:
specifier: ^19.2.4
version: 19.2.4([email protected])
react-router:
specifier: ^7.13.1
version: 7.13.1([email protected]([email protected]))([email protected])
devDependencies:
'@remix-run/node-fetch-server':
specifier: ^0.13.0
version: 0.13.0
'@tailwindcss/vite':
specifier: ^4.2.1
version: 4.2.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
'@types/mdx':
specifier: ^2.0.13
version: 2.0.13
'@types/node':
specifier: ^25.3.3
version: 25.3.3
'@types/react':
specifier: ^19.2.14
version: 19.2.14
'@types/react-dom':
specifier: ^19.2.3
version: 19.2.3(@types/[email protected])
express:
specifier: ^5.2.1
version: 5.2.1
react-router-devtools:
specifier: ^6.2.0
version: 6.2.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
tailwindcss:
specifier: ^4.2.1
version: 4.2.1
typescript:
specifier: ^5.9.3
version: 5.9.3
vite:
specifier: ^7.3.1
version: 7.3.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
examples/i18n:
dependencies:
'@orama/tokenizers':