Skip to content

Commit 069d669

Browse files
committed
feat(docs): Scaffold new fumadocs documentation
1 parent 129f2ed commit 069d669

29 files changed

Lines changed: 735 additions & 47 deletions

.changeset/huge-wolves-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'docs': major
3+
---
4+
5+
Scaffold new standalone inkathon documentation under https://docs.inkathon.xyz

.changeset/plain-ducks-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-inkathon-app': patch
3+
---
4+
5+
Remove new `docs` monorepo package

bun.lock

Lines changed: 387 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

create-inkathon-app/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"@inquirer/prompts": "^7.8.0",
3333
"commander": "^14.0.0",
3434
"picocolors": "^1.1.1",
35-
"semver": "^7.6.3",
36-
"snakecase-keys": "^8.1.0",
35+
"semver": "^7.7.2",
36+
"snakecase-keys": "^9.0.2",
3737
"yocto-spinner": "^1.0.0"
3838
},
3939
"devDependencies": {
40-
"@types/node": "^22.17.0",
41-
"@types/semver": "^7.5.8",
40+
"@types/node": "^22.0.0",
41+
"@types/semver": "^7.7.0",
4242
"typescript": "^5.9.2"
4343
},
4444
"keywords": [

create-inkathon-app/src/cleanup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readdir, rm } from "node:fs/promises"
22
import { join } from "node:path"
33

4-
const DIRECTORIES_TO_REMOVE = [".changeset", ".github", "create-inkathon-app"]
4+
const DIRECTORIES_TO_REMOVE = [".changeset", ".github", "create-inkathon-app", "docs"]
55

66
async function cleanupDirectories(projectPath: string): Promise<void> {
77
for (const dir of DIRECTORIES_TO_REMOVE) {

create-inkathon-app/src/template.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ async function updatePackageJson(filePath: string, isRoot: boolean, name?: strin
2424
const pkg = JSON.parse(content)
2525

2626
if (isRoot) {
27-
// Update the name of the package only for root
28-
if (name) {
29-
pkg.name = name
30-
}
27+
// Update the name of the package
28+
if (!name) throw new Error("Project name is required for root package.json")
29+
pkg.name = name
3130

32-
// Remove create-inkathon-app from workspaces
33-
if (pkg.workspaces && Array.isArray(pkg.workspaces)) {
34-
pkg.workspaces = pkg.workspaces.filter((ws: string) => ws !== "create-inkathon-app")
35-
}
31+
// Only keep `frontend` & `contracts` workspaces
32+
pkg.workspaces = ["frontend", "contracts"]
3633

3734
// Clean up changeset-related items from root package.json
3835
if (pkg.scripts) {

docs/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# deps
2+
/node_modules
3+
4+
# generated content
5+
.contentlayer
6+
.content-collections
7+
.source
8+
9+
# test & build
10+
/coverage
11+
/.next/
12+
/out/
13+
/build
14+
*.tsbuildinfo
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
/.pnp
20+
.pnp.js
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# others
26+
.env*.local
27+
.vercel
28+
next-env.d.ts

docs/.prettierignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node_modules
2+
package-lock.json
3+
pnpm-lock.yaml
4+
bun.lockb
5+
bun.lock
6+
yarn.lock
7+
8+
LICENSE
9+
10+
*.ts
11+
*.js
12+
*.tsx
13+
*.jsx
14+
*.cjs
15+
*.mjs
16+
*.json
17+
*.jsonc
18+
*.html

docs/.prettierrc.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const prettierConfig = {
2+
semi: false,
3+
singleQuote: true,
4+
trailingComma: "all",
5+
printWidth: 100,
6+
tabWidth: 2,
7+
useTabs: false,
8+
plugins: [],
9+
}
10+
11+
export default prettierConfig

docs/content/docs/index.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Hello World
3+
description: Your first document
4+
---
5+
6+
Welcome to the docs! You can start writing documents in `/content/docs`.
7+
8+
## What is Next?
9+
10+
<Cards>
11+
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
12+
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
13+
</Cards>

0 commit comments

Comments
 (0)