create-bunspace 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +137 -6
- package/dist/templates/fumadocs/.env.example +49 -0
- package/dist/templates/fumadocs/.github/workflows/deploy.yml +89 -0
- package/dist/templates/fumadocs/CLAUDE.md +164 -0
- package/dist/templates/fumadocs/LICENSE +21 -0
- package/dist/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +269 -0
- package/dist/templates/fumadocs/README.md +319 -0
- package/dist/templates/fumadocs/biome.json +41 -0
- package/dist/templates/fumadocs/bun.lock +883 -0
- package/dist/templates/fumadocs/content-template/docs/getting-started/index.mdx +92 -0
- package/dist/templates/fumadocs/content-template/docs/getting-started/installation.mdx +168 -0
- package/dist/templates/fumadocs/content-template/docs/getting-started/quick-start.mdx +168 -0
- package/dist/templates/fumadocs/content-template/docs/index.mdx +70 -0
- package/dist/templates/fumadocs/content-template/en/docs/getting-started/index.mdx +92 -0
- package/dist/templates/fumadocs/content-template/en/docs/getting-started/installation.mdx +168 -0
- package/dist/templates/fumadocs/content-template/en/docs/getting-started/quick-start.mdx +168 -0
- package/dist/templates/fumadocs/content-template/en/docs/index.mdx +69 -0
- package/dist/templates/fumadocs/messages/en.json +14 -0
- package/dist/templates/fumadocs/messages/es.json +14 -0
- package/dist/templates/fumadocs/next.config.mjs +35 -0
- package/dist/templates/fumadocs/oxlint.json +14 -0
- package/dist/templates/fumadocs/package.json +35 -0
- package/dist/templates/fumadocs/postcss.config.mjs +5 -0
- package/dist/templates/fumadocs/source.config.ts +31 -0
- package/dist/templates/fumadocs/src/app/(home)/layout.tsx +6 -0
- package/dist/templates/fumadocs/src/app/(home)/page.tsx +132 -0
- package/dist/templates/fumadocs/src/app/api/search/route.ts +9 -0
- package/dist/templates/fumadocs/src/app/docs/[[...slug]]/page.tsx +62 -0
- package/dist/templates/fumadocs/src/app/docs/layout.tsx +11 -0
- package/dist/templates/fumadocs/src/app/en/docs/[[...slug]]/page.tsx +61 -0
- package/dist/templates/fumadocs/src/app/en/docs/layout.tsx +11 -0
- package/dist/templates/fumadocs/src/app/global.css +3 -0
- package/dist/templates/fumadocs/src/app/layout.tsx +47 -0
- package/dist/templates/fumadocs/src/app/llms-full.txt/route.ts +10 -0
- package/dist/templates/fumadocs/src/app/og/docs/[...slug]/route.tsx +27 -0
- package/dist/templates/fumadocs/src/components/language-selector.tsx +56 -0
- package/dist/templates/fumadocs/src/components/markdown-actions.tsx +61 -0
- package/dist/templates/fumadocs/src/config/site.config.ts +115 -0
- package/dist/templates/fumadocs/src/lib/layout.shared.tsx +23 -0
- package/dist/templates/fumadocs/src/lib/source.ts +91 -0
- package/dist/templates/fumadocs/src/mdx-components.tsx +14 -0
- package/dist/templates/fumadocs/tsconfig.json +46 -0
- package/package.json +1 -1
- package/templates/fumadocs/.env.example +49 -0
- package/templates/fumadocs/.github/workflows/deploy.yml +89 -0
- package/templates/fumadocs/CLAUDE.md +164 -0
- package/templates/fumadocs/LICENSE +21 -0
- package/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +269 -0
- package/templates/fumadocs/README.md +319 -0
- package/templates/fumadocs/biome.json +41 -0
- package/templates/fumadocs/bun.lock +883 -0
- package/templates/fumadocs/content-template/docs/getting-started/index.mdx +92 -0
- package/templates/fumadocs/content-template/docs/getting-started/installation.mdx +168 -0
- package/templates/fumadocs/content-template/docs/getting-started/quick-start.mdx +168 -0
- package/templates/fumadocs/content-template/docs/index.mdx +70 -0
- package/templates/fumadocs/content-template/en/docs/getting-started/index.mdx +92 -0
- package/templates/fumadocs/content-template/en/docs/getting-started/installation.mdx +168 -0
- package/templates/fumadocs/content-template/en/docs/getting-started/quick-start.mdx +168 -0
- package/templates/fumadocs/content-template/en/docs/index.mdx +69 -0
- package/templates/fumadocs/messages/en.json +14 -0
- package/templates/fumadocs/messages/es.json +14 -0
- package/templates/fumadocs/next.config.mjs +35 -0
- package/templates/fumadocs/oxlint.json +14 -0
- package/templates/fumadocs/package.json +35 -0
- package/templates/fumadocs/postcss.config.mjs +5 -0
- package/templates/fumadocs/source.config.ts +31 -0
- package/templates/fumadocs/src/app/(home)/layout.tsx +6 -0
- package/templates/fumadocs/src/app/(home)/page.tsx +132 -0
- package/templates/fumadocs/src/app/api/search/route.ts +9 -0
- package/templates/fumadocs/src/app/docs/[[...slug]]/page.tsx +62 -0
- package/templates/fumadocs/src/app/docs/layout.tsx +11 -0
- package/templates/fumadocs/src/app/en/docs/[[...slug]]/page.tsx +61 -0
- package/templates/fumadocs/src/app/en/docs/layout.tsx +11 -0
- package/templates/fumadocs/src/app/global.css +3 -0
- package/templates/fumadocs/src/app/layout.tsx +47 -0
- package/templates/fumadocs/src/app/llms-full.txt/route.ts +10 -0
- package/templates/fumadocs/src/app/og/docs/[...slug]/route.tsx +27 -0
- package/templates/fumadocs/src/components/language-selector.tsx +56 -0
- package/templates/fumadocs/src/components/markdown-actions.tsx +61 -0
- package/templates/fumadocs/src/config/site.config.ts +115 -0
- package/templates/fumadocs/src/lib/layout.shared.tsx +23 -0
- package/templates/fumadocs/src/lib/source.ts +91 -0
- package/templates/fumadocs/src/mdx-components.tsx +14 -0
- package/templates/fumadocs/tsconfig.json +46 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Installation
|
|
3
|
+
description: 'Installation and configuration of {{PROJECT_NAME}}'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Callout, Steps, Tabs, Tab } from 'fumadocs-ui/components';
|
|
7
|
+
import { Terminal, FileCode } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
# Installation
|
|
10
|
+
|
|
11
|
+
Complete installation guide for {{PROJECT_NAME}}.
|
|
12
|
+
|
|
13
|
+
## Installation Options
|
|
14
|
+
|
|
15
|
+
<Tabs items={['Using mks-scaffolder', 'Manual', 'GitHub Clone']}>
|
|
16
|
+
<Tab value="Using mks-scaffolder">
|
|
17
|
+
<Steps>
|
|
18
|
+
### Create a new project
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
bunx mks-scaffolder create my-project --template fumadocs
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Answer the interactive questions:
|
|
25
|
+
- **Project name**: `my-project`
|
|
26
|
+
- **Description**: Your project description
|
|
27
|
+
- **Author**: Your name
|
|
28
|
+
- **Base path**: `/my-project` (for GitHub Pages)
|
|
29
|
+
|
|
30
|
+
### Enter the directory
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
cd my-project
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Install dependencies and start
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
bun install
|
|
40
|
+
bun run dev
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
</Steps>
|
|
44
|
+
</Tab>
|
|
45
|
+
|
|
46
|
+
<Tab value="Manual">
|
|
47
|
+
<Steps>
|
|
48
|
+
### Create the project
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
mkdir my-project && cd my-project
|
|
52
|
+
bun init -y
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Install dependencies
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
bun add next fumadocs-ui fumadocs-mdx next-intl lucide-react
|
|
59
|
+
bun add -d @types/node @types/react @types/react-dom
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Copy template files
|
|
63
|
+
|
|
64
|
+
Copy the content from `mks-fumadocs-template/` to your project.
|
|
65
|
+
|
|
66
|
+
### Configure .env.local
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
PROJECT_NAME=My Project
|
|
70
|
+
DESCRIPTION=Description
|
|
71
|
+
AUTHOR=Your Name
|
|
72
|
+
BASE_PATH=/my-project
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
</Steps>
|
|
76
|
+
</Tab>
|
|
77
|
+
|
|
78
|
+
<Tab value="GitHub Clone">
|
|
79
|
+
<Steps>
|
|
80
|
+
### Clone the repository
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
git clone https://github.com/{{GITHUB_REPO}}.git my-project
|
|
84
|
+
cd my-project
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Install dependencies
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
bun install
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Configure the project
|
|
94
|
+
|
|
95
|
+
Edit `.env.local` with your values.
|
|
96
|
+
|
|
97
|
+
</Steps>
|
|
98
|
+
</Tab>
|
|
99
|
+
</Tabs>
|
|
100
|
+
|
|
101
|
+
## Verification
|
|
102
|
+
|
|
103
|
+
<Callout type="success">
|
|
104
|
+
To verify everything works correctly, run:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
bun run build
|
|
108
|
+
bun run start
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
You should see the documentation at <code>http://localhost:3000</code>
|
|
112
|
+
</Callout>
|
|
113
|
+
|
|
114
|
+
## Environment Variables
|
|
115
|
+
|
|
116
|
+
Create a `.env.local` file in the project root:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Project information
|
|
120
|
+
PROJECT_NAME=My Project
|
|
121
|
+
DESCRIPTION=My project description
|
|
122
|
+
AUTHOR=Your Name
|
|
123
|
+
KEYWORDS=docs,documentation
|
|
124
|
+
|
|
125
|
+
# Deployment
|
|
126
|
+
BASE_PATH=/my-project
|
|
127
|
+
NEXT_PUBLIC_SITE_URL=https://your-username.github.io/my-project
|
|
128
|
+
|
|
129
|
+
# i18n
|
|
130
|
+
DEFAULT_LOCALE=en
|
|
131
|
+
NEXT_PUBLIC_SUPPORTED_LOCALES=en,es
|
|
132
|
+
|
|
133
|
+
# URLs
|
|
134
|
+
TRAILING_SLASH=true
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
<Callout type="warning">
|
|
138
|
+
<strong>Important</strong>: The <code>.env.local</code> file should not be committed to git. Make sure it's in your <code>.gitignore</code>.
|
|
139
|
+
</Callout>
|
|
140
|
+
|
|
141
|
+
## Troubleshooting
|
|
142
|
+
|
|
143
|
+
### Dependency errors
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Clean cache and reinstall
|
|
147
|
+
rm -rf node_modules bun.lockb
|
|
148
|
+
bun install
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Build error
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Clean .next and rebuild
|
|
155
|
+
rm -rf .next out
|
|
156
|
+
bun run build
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Port in use
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# Use a different port
|
|
163
|
+
bun run dev --port 3001
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Next Step
|
|
167
|
+
|
|
168
|
+
Once installed, see [Quick Start](/en/docs/getting-started/quick-start) to start writing your documentation.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Quick Start
|
|
3
|
+
description: 'Get started quickly with {{PROJECT_NAME}}'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Callout, Steps } from 'fumadocs-ui/components';
|
|
7
|
+
import { FileEdit, Globe, CheckCircle2 } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
# Quick Start
|
|
10
|
+
|
|
11
|
+
Start writing your documentation in minutes.
|
|
12
|
+
|
|
13
|
+
<Steps>
|
|
14
|
+
### 1. Copy the template content
|
|
15
|
+
|
|
16
|
+
The template includes a `content-template/` directory with examples. Copy it to `content/`:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cp -r content-template/* content/
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 2. Edit your first pages
|
|
23
|
+
|
|
24
|
+
Navigate to `content/docs/` and edit the `.mdx` files:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Suggested structure
|
|
28
|
+
content/
|
|
29
|
+
├── docs/
|
|
30
|
+
│ ├── index.mdx # Main page
|
|
31
|
+
│ └── getting-started/
|
|
32
|
+
│ ├── index.mdx # Introduction
|
|
33
|
+
│ ├── installation.mdx # Installation
|
|
34
|
+
│ └── quick-start.mdx # This page
|
|
35
|
+
└── en/docs/ # English version
|
|
36
|
+
└── (same structure)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Start the server
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
bun run dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Open [http://localhost:3000](http://localhost:3000).
|
|
46
|
+
|
|
47
|
+
### 4. Customize configuration
|
|
48
|
+
|
|
49
|
+
Edit `.env.local` with your information:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
PROJECT_NAME=My Project
|
|
53
|
+
DESCRIPTION=My amazing documentation
|
|
54
|
+
AUTHOR=Your Name
|
|
55
|
+
BASE_PATH=/my-project
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
</Steps>
|
|
59
|
+
|
|
60
|
+
## Writing in MDX
|
|
61
|
+
|
|
62
|
+
Fumadocs uses **MDX**, which allows you to use React components directly in your markdown.
|
|
63
|
+
|
|
64
|
+
<Callout type="info">
|
|
65
|
+
MDX is markdown with superpowers. You can import and use React components.
|
|
66
|
+
</Callout>
|
|
67
|
+
|
|
68
|
+
### Basic example
|
|
69
|
+
|
|
70
|
+
```mdx
|
|
71
|
+
---
|
|
72
|
+
title: My Page
|
|
73
|
+
description: Page description
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
import { Callout } from 'fumadocs-ui/components';
|
|
77
|
+
import { Info } from 'lucide-react';
|
|
78
|
+
|
|
79
|
+
# Title
|
|
80
|
+
|
|
81
|
+
Normal markdown content.
|
|
82
|
+
|
|
83
|
+
<Callout type="info" icon={<Info />}>
|
|
84
|
+
This is a callout using a React component.
|
|
85
|
+
</Callout>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Available components
|
|
89
|
+
|
|
90
|
+
Fumadocs UI includes many components:
|
|
91
|
+
|
|
92
|
+
- **Callout** - Highlighted notes
|
|
93
|
+
- **Steps** - Numbered steps
|
|
94
|
+
- **Tabs** - Content tabs
|
|
95
|
+
- **FileTree** - File trees
|
|
96
|
+
- **Preview** - Code preview
|
|
97
|
+
|
|
98
|
+
See [Fumadocs UI Documentation](https://fumadocs.vercel.app/ui) for more.
|
|
99
|
+
|
|
100
|
+
## Adding a new page
|
|
101
|
+
|
|
102
|
+
<Steps>
|
|
103
|
+
### 1. Create the file
|
|
104
|
+
|
|
105
|
+
In `content/docs/` or `content/en/docs/`:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Spanish
|
|
109
|
+
touch content/docs/mi-tema/index.mdx
|
|
110
|
+
|
|
111
|
+
# English
|
|
112
|
+
touch content/en/docs/my-topic/index.mdx
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 2. Add frontmatter
|
|
116
|
+
|
|
117
|
+
```mdx
|
|
118
|
+
---
|
|
119
|
+
title: My New Topic
|
|
120
|
+
description: Topic description
|
|
121
|
+
---
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### 3. Write the content
|
|
125
|
+
|
|
126
|
+
```mdx
|
|
127
|
+
# My New Topic
|
|
128
|
+
|
|
129
|
+
Content here...
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### 4. Verify
|
|
133
|
+
|
|
134
|
+
The browser updates automatically.
|
|
135
|
+
|
|
136
|
+
</Steps>
|
|
137
|
+
|
|
138
|
+
## Initial Checklist
|
|
139
|
+
|
|
140
|
+
<Callout type="success">
|
|
141
|
+
<CheckCircle2 className="w-4 h-4 inline mr-2" />
|
|
142
|
+
Installation completed
|
|
143
|
+
</Callout>
|
|
144
|
+
|
|
145
|
+
<Callout type="success">
|
|
146
|
+
<CheckCircle2 className="w-4 h-4 inline mr-2" />
|
|
147
|
+
Development server running
|
|
148
|
+
</Callout>
|
|
149
|
+
|
|
150
|
+
<Callout type="success">
|
|
151
|
+
<CheckCircle2 className="w-4 h-4 inline mr-2" />
|
|
152
|
+
First page edited
|
|
153
|
+
</Callout>
|
|
154
|
+
|
|
155
|
+
<Callout type="success">
|
|
156
|
+
<CheckCircle2 className="w-4 h-4 inline mr-2" />
|
|
157
|
+
Configuration customized
|
|
158
|
+
</Callout>
|
|
159
|
+
|
|
160
|
+
## Next Steps
|
|
161
|
+
|
|
162
|
+
- **[Features](/en/docs/features)** - Discover more components
|
|
163
|
+
- **[Configuration](/en/docs/configuration)** - Customize your site
|
|
164
|
+
- **[Deployment](/en/docs/deployment)** - Publish your documentation
|
|
165
|
+
|
|
166
|
+
<Callout type="tip">
|
|
167
|
+
<strong>Tip</strong>: Use the files in <code>content-template/</code> as reference and then delete them when you've created your own content.
|
|
168
|
+
</Callout>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Welcome
|
|
3
|
+
description: 'Welcome to {{PROJECT_NAME}} - {{DESCRIPTION}}'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Callout, Steps } from 'fumadocs-ui/components';
|
|
7
|
+
import { FileCode, Terminal } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
# Welcome to {{PROJECT_NAME}}
|
|
10
|
+
|
|
11
|
+
<Callout type="info">
|
|
12
|
+
This is a Fumadocs template. Replace this content with your own documentation.
|
|
13
|
+
</Callout>
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
This template includes:
|
|
18
|
+
|
|
19
|
+
- **Bilingual support** - Spanish and English ready to use
|
|
20
|
+
- **Integrated search** - Instant content search
|
|
21
|
+
- **Dark/light theme** - Automatic switching based on system preference
|
|
22
|
+
- **Full MDX** - Use React components in your markdown
|
|
23
|
+
- **GitHub Pages ready** - Configured for static deployment
|
|
24
|
+
|
|
25
|
+
## Getting Started
|
|
26
|
+
|
|
27
|
+
<Steps>
|
|
28
|
+
### Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Copy content-template/ content to content/
|
|
32
|
+
cp -r content-template/* content/
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Development
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
bun install
|
|
39
|
+
bun run dev
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Open [http://localhost:3000](http://localhost:3000) to view your documentation.
|
|
43
|
+
|
|
44
|
+
### Build
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
bun run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Static files are generated in `out/`.
|
|
51
|
+
|
|
52
|
+
## Configuration
|
|
53
|
+
|
|
54
|
+
Edit environment variables in `.env.local`:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
PROJECT_NAME=My Project
|
|
58
|
+
DESCRIPTION=Description of my project
|
|
59
|
+
AUTHOR=Your Name
|
|
60
|
+
BASE_PATH=/my-project
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
<Callout type="warning">
|
|
64
|
+
Remember to configure <code>BASE_PATH</code> if deploying to GitHub Pages with a custom repository name.
|
|
65
|
+
</Callout>
|
|
66
|
+
|
|
67
|
+
## Next Step
|
|
68
|
+
|
|
69
|
+
See the [Introduction](/en/docs/getting-started) section for more details.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nav": {
|
|
3
|
+
"gettingStarted": "Getting Started",
|
|
4
|
+
"coreConcepts": "Core Concepts",
|
|
5
|
+
"libraryReference": "Library Reference",
|
|
6
|
+
"cliReference": "CLI Reference",
|
|
7
|
+
"guides": "Guides"
|
|
8
|
+
},
|
|
9
|
+
"actions": {
|
|
10
|
+
"copyMarkdown": "Copy as Markdown",
|
|
11
|
+
"openMarkdown": "Open as Markdown",
|
|
12
|
+
"copied": "Copied!"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nav": {
|
|
3
|
+
"gettingStarted": "Introducción",
|
|
4
|
+
"coreConcepts": "Conceptos Clave",
|
|
5
|
+
"libraryReference": "Referencia de Biblioteca",
|
|
6
|
+
"cliReference": "Referencia de CLI",
|
|
7
|
+
"guides": "Guías"
|
|
8
|
+
},
|
|
9
|
+
"actions": {
|
|
10
|
+
"copyMarkdown": "Copiar como Markdown",
|
|
11
|
+
"openMarkdown": "Abrir como Markdown",
|
|
12
|
+
"copied": "¡Copiado!"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createMDX } from 'fumadocs-mdx/next';
|
|
2
|
+
|
|
3
|
+
const withMDX = createMDX();
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Base path for deployment (e.g., '/repo-name' for GitHub Pages).
|
|
7
|
+
* Leave empty for root domain deployment.
|
|
8
|
+
*/
|
|
9
|
+
const basePath = process.env.BASE_PATH || '';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Next.js configuration for Fumadocs template.
|
|
13
|
+
*
|
|
14
|
+
* Uses environment variables to support flexible deployment options:
|
|
15
|
+
* - BASE_PATH: For GitHub Pages or subdirectory deployment
|
|
16
|
+
* - TRAILING_SLASH: Enable/disable trailing slash URLs
|
|
17
|
+
*
|
|
18
|
+
* @see {@link https://nextjs.org/docs/app/api-reference/next-config-js Next.js Config}
|
|
19
|
+
* @type {import('next').NextConfig}
|
|
20
|
+
*/
|
|
21
|
+
const config = {
|
|
22
|
+
reactStrictMode: true,
|
|
23
|
+
|
|
24
|
+
// Deployment configuration
|
|
25
|
+
basePath,
|
|
26
|
+
output: 'export',
|
|
27
|
+
images: {
|
|
28
|
+
unoptimized: true,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
// URL configuration
|
|
32
|
+
trailingSlash: process.env.TRAILING_SLASH === 'true' || basePath !== '',
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default withMDX(config);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"categories": {
|
|
3
|
+
"correctness": "warn",
|
|
4
|
+
"suspicious": "warn",
|
|
5
|
+
"perf": "warn",
|
|
6
|
+
"style": "warn",
|
|
7
|
+
"restriction": "off"
|
|
8
|
+
},
|
|
9
|
+
"env": {
|
|
10
|
+
"node": true,
|
|
11
|
+
"es2021": true
|
|
12
|
+
},
|
|
13
|
+
"ignore": ["node_modules", "dist", "build", ".turbo", "coverage"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "telegram-bot-manager-docs",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "next build",
|
|
7
|
+
"dev": "next dev",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"types:check": "fumadocs-mdx && next typegen && tsc --noEmit",
|
|
10
|
+
"postinstall": "fumadocs-mdx",
|
|
11
|
+
"lint": "biome check",
|
|
12
|
+
"format": "biome format --write"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"fumadocs-core": "16.4.4",
|
|
16
|
+
"fumadocs-mdx": "14.2.4",
|
|
17
|
+
"fumadocs-ui": "16.4.4",
|
|
18
|
+
"lucide-react": "^0.562.0",
|
|
19
|
+
"next": "16.1.1",
|
|
20
|
+
"next-intl": "^4.7.0",
|
|
21
|
+
"react": "^19.2.3",
|
|
22
|
+
"react-dom": "^19.2.3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
26
|
+
"@types/mdx": "^2.0.13",
|
|
27
|
+
"@types/node": "^24.10.2",
|
|
28
|
+
"@types/react": "^19.2.7",
|
|
29
|
+
"@types/react-dom": "^19.2.3",
|
|
30
|
+
"postcss": "^8.5.6",
|
|
31
|
+
"tailwindcss": "^4.1.18",
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"@biomejs/biome": "^2.3.11"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from 'fumadocs-mdx/config';
|
|
2
|
+
|
|
3
|
+
export const docs = defineDocs({
|
|
4
|
+
dir: 'content/docs',
|
|
5
|
+
docs: {
|
|
6
|
+
schema: frontmatterSchema,
|
|
7
|
+
postprocess: {
|
|
8
|
+
includeProcessedMarkdown: true,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
meta: {
|
|
12
|
+
schema: metaSchema,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const docsEn = defineDocs({
|
|
17
|
+
dir: 'content/en/docs',
|
|
18
|
+
docs: {
|
|
19
|
+
schema: frontmatterSchema,
|
|
20
|
+
postprocess: {
|
|
21
|
+
includeProcessedMarkdown: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
meta: {
|
|
25
|
+
schema: metaSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export default defineConfig({
|
|
30
|
+
mdxOptions: {},
|
|
31
|
+
});
|