Skip to content

Commit 52e6010

Browse files
committed
Press: make a framework on Waku
1 parent 2e346c1 commit 52e6010

28 files changed

Lines changed: 737 additions & 3 deletions

examples/press/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
/node_modules/
3+
4+
dist
5+
.source
6+
src/pages.gen.ts
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Hello World
3+
description: Your favourite docs framework.
4+
icon: Rocket
5+
---
6+
7+
Hey there! Fumadocs is a docs framework that works on Waku!
8+
9+
## Heading
10+
11+
Hello World!
12+
13+
<Cards>
14+
<Card title="Learn more about Waku" href="https://waku.gg" />
15+
<Card title="Learn more about Fumadocs" href="https://fumadocs.dev" />
16+
</Cards>
17+
18+
### CodeBlock
19+
20+
```ts
21+
console.log('Hello World');
22+
```
23+
24+
#### Table
25+
26+
| Head | Description |
27+
| ------------------------------- | ----------------------------------- |
28+
| `hello` | Hello World |
29+
| very **important** | Hey |
30+
| _Surprisingly_ | Fumadocs |
31+
| very long text that looks weird | hello world hello world hello world |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Test
3+
description: This is another page
4+
---
5+
6+
Hello World again!
7+
8+
## Installation
9+
10+
```npm
11+
npm i fumadocs-core fumadocs-ui
12+
```

examples/press/package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "example-press",
3+
"private": true,
4+
"type": "module",
5+
"sideEffects": false,
6+
"scripts": {
7+
"dev": "waku dev",
8+
"build": "waku build",
9+
"start": "waku start",
10+
"types:check": "fumadocs-mdx && tsc --noEmit"
11+
},
12+
"dependencies": {
13+
"@fumapress/core": "workspace:*",
14+
"react": "^19.2.5",
15+
"react-dom": "^19.2.5",
16+
"react-server-dom-webpack": "^19.2.5",
17+
"waku": "1.0.0-alpha.9"
18+
},
19+
"devDependencies": {
20+
"@tailwindcss/vite": "^4.2.4",
21+
"@types/mdx": "^2.0.13",
22+
"@types/node": "^25.6.0",
23+
"@types/react": "^19.2.14",
24+
"@types/react-dom": "^19.2.3",
25+
"tailwindcss": "^4.2.4",
26+
"typescript": "^6.0.3",
27+
"vite": "^8.0.10"
28+
}
29+
}

examples/press/src/root.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './styles/globals.css';
2+
import RootLayout from '@fumapress/core/layouts/root';
3+
4+
export default RootLayout;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'tailwindcss';
2+
@import '@fumapress/core/css/preset.css';

examples/press/src/waku.server.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createRouter } from '@fumapress/core';
2+
import adapter from 'waku/adapters/default';
3+
import RootLayout from './root';
4+
5+
const router = createRouter({
6+
root: RootLayout,
7+
});
8+
9+
export default adapter(router.createPages());

examples/press/tsconfig.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"lib": ["dom", "dom.iterable", "ES2022"],
5+
"types": ["vite", "vite/client"],
6+
"jsx": "react-jsx",
7+
"module": "ESNext",
8+
"moduleResolution": "bundler",
9+
"resolveJsonModule": true,
10+
"allowJs": true,
11+
"checkJs": true,
12+
"esModuleInterop": true,
13+
"forceConsistentCasingInFileNames": true,
14+
"strict": true,
15+
"skipLibCheck": true,
16+
"noUncheckedIndexedAccess": true,
17+
"noEmit": true,
18+
"paths": {
19+
"@/*": ["./src/*"]
20+
}
21+
},
22+
"exclude": ["node_modules", "dist"]
23+
}

examples/press/waku.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import tailwindcss from '@tailwindcss/vite';
2+
import { defineConfig } from '@fumapress/core/vite';
3+
4+
export default defineConfig({
5+
vite: {
6+
plugins: [tailwindcss()],
7+
},
8+
});

packages/press-core/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
css/generated.css

0 commit comments

Comments
 (0)