@knowcode/doc-builder 1.5.15 ā 1.5.17
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/.claude/settings.local.json +2 -1
- package/CHANGELOG.md +28 -0
- package/README.md +103 -35
- package/assets/css/notion-style.css +2 -0
- package/assets/js/main.js +0 -18
- package/cli.js +22 -22
- package/html/README.html +209 -95
- package/html/css/notion-style.css +21 -13
- package/html/documentation-index.html +5 -4
- package/html/guides/authentication-guide.html +10 -10
- package/html/guides/claude-workflow-guide.html +5 -10
- package/html/guides/documentation-standards.html +5 -5
- package/html/guides/google-site-verification-guide.html +5 -4
- package/html/guides/phosphor-icons-guide.html +5 -4
- package/html/guides/seo-guide.html +9 -8
- package/html/guides/seo-optimization-guide.html +5 -4
- package/html/guides/troubleshooting-guide.html +15 -15
- package/html/guides/windows-setup-guide.html +667 -0
- package/html/index.html +209 -95
- package/html/js/main.js +0 -18
- package/html/sitemap.xml +22 -16
- package/html/vercel-cli-setup-guide.html +7 -6
- package/html/vercel-first-time-setup-guide.html +7 -6
- package/lib/core-builder.js +5 -6
- package/lib/deploy.js +6 -6
- package/package.json +1 -1
- package/recordings/mh-ls-22jul.txt +2305 -0
- package/scripts/setup.js +3 -3
- package/Screenshot 2025-07-21 at 11.52.33.png +0 -0
- package/Screenshot 2025-07-21 at 12.14.39.png +0 -0
- package/Screenshot 2025-07-21 at 17.13.17.png +0 -0
- package/Screenshot 2025-07-21 at 17.16.15.png +0 -0
- package/Screenshot 2025-07-22 at 12.14.13.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.5.17] - 2025-07-22
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- CSS table alignment now defaults to top-aligned instead of center-aligned
|
|
12
|
+
- Updated Windows Setup Guide with improved Vercel project setup section
|
|
13
|
+
- Added detailed explanations for each Vercel setup prompt
|
|
14
|
+
- Added comprehensive Vercel project naming requirements and examples
|
|
15
|
+
- Updated deploy.js with clearer project name hint showing URL format
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
- Created comprehensive Windows Setup Guide for Claude Code and doc-builder
|
|
19
|
+
- Added explanation of Claude vs Claude Code differences
|
|
20
|
+
- Updated to clarify GitHub is required for Vercel
|
|
21
|
+
- Added details that Pro/Max plan is required for Claude Code
|
|
22
|
+
|
|
23
|
+
## [1.5.16] - 2025-07-22
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- Simplified Mermaid diagram display by removing unnecessary UI elements
|
|
27
|
+
- Removed "Copy to Mermaid" button from diagram toolbar
|
|
28
|
+
- Removed "Copy SVG" button from diagram toolbar
|
|
29
|
+
- Removed "Diagram" heading from Mermaid diagram wrapper
|
|
30
|
+
- Removed "Mermaid Diagram" text label from toolbar
|
|
31
|
+
|
|
32
|
+
### Improved
|
|
33
|
+
- Cleaner, less cluttered presentation of Mermaid diagrams
|
|
34
|
+
- Full Screen button remains available for better diagram viewing
|
|
35
|
+
|
|
8
36
|
## [1.5.15] - 2025-07-22
|
|
9
37
|
|
|
10
38
|
### Fixed
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Beautiful documentation with the least effort possible. A zero-configuration doc
|
|
|
8
8
|
|
|
9
9
|
### Quick Start
|
|
10
10
|
```bash
|
|
11
|
-
npx @knowcode/doc-builder deploy
|
|
11
|
+
npx @knowcode/doc-builder@latest deploy
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
</div>
|
|
@@ -78,6 +78,56 @@ This aligns perfectly with our mission: beautiful documentation should be access
|
|
|
78
78
|
</tr>
|
|
79
79
|
</table>
|
|
80
80
|
|
|
81
|
+
## š Prerequisites
|
|
82
|
+
|
|
83
|
+
<table>
|
|
84
|
+
<tr>
|
|
85
|
+
<td width="50%">
|
|
86
|
+
|
|
87
|
+
### System Requirements
|
|
88
|
+
|
|
89
|
+
**Node.js** version 14.0 or higher is required to run doc-builder.
|
|
90
|
+
|
|
91
|
+
To check if you have Node.js installed:
|
|
92
|
+
```bash
|
|
93
|
+
node --version
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
If you see a version number (e.g., `v18.17.0`), you're ready to go!
|
|
97
|
+
|
|
98
|
+
</td>
|
|
99
|
+
<td width="50%">
|
|
100
|
+
|
|
101
|
+
### Installing Node.js & npm
|
|
102
|
+
|
|
103
|
+
**š macOS**
|
|
104
|
+
- **Recommended**: [Download from nodejs.org](https://nodejs.org/)
|
|
105
|
+
- **Alternative**: Using Homebrew
|
|
106
|
+
```bash
|
|
107
|
+
brew install node
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**šŖ Windows**
|
|
111
|
+
- **Recommended**: [Download from nodejs.org](https://nodejs.org/)
|
|
112
|
+
- **Alternative**: Using Chocolatey
|
|
113
|
+
```bash
|
|
114
|
+
choco install nodejs
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</td>
|
|
118
|
+
</tr>
|
|
119
|
+
</table>
|
|
120
|
+
|
|
121
|
+
### Quick Installation Links
|
|
122
|
+
|
|
123
|
+
| Platform | Official Installer | Package Manager |
|
|
124
|
+
|----------|-------------------|-----------------|
|
|
125
|
+
| **macOS** | [Download .pkg](https://nodejs.org/en/download/) | `brew install node` |
|
|
126
|
+
| **Windows** | [Download .msi](https://nodejs.org/en/download/) | `choco install nodejs` |
|
|
127
|
+
| **Linux** | [Download options](https://nodejs.org/en/download/) | `apt install nodejs` or `yum install nodejs` |
|
|
128
|
+
|
|
129
|
+
> š” **Note**: npm (Node Package Manager) is included with Node.js installation automatically.
|
|
130
|
+
|
|
81
131
|
## š Getting Started
|
|
82
132
|
|
|
83
133
|
<table>
|
|
@@ -87,16 +137,16 @@ This aligns perfectly with our mission: beautiful documentation should be access
|
|
|
87
137
|
### Option 1: NPX (No Installation)
|
|
88
138
|
```bash
|
|
89
139
|
# Deploy to Vercel
|
|
90
|
-
npx @knowcode/doc-builder deploy
|
|
140
|
+
npx @knowcode/doc-builder@latest deploy
|
|
91
141
|
|
|
92
142
|
# Build static HTML
|
|
93
|
-
npx @knowcode/doc-builder build
|
|
143
|
+
npx @knowcode/doc-builder@latest build
|
|
94
144
|
|
|
95
145
|
# Development server
|
|
96
|
-
npx @knowcode/doc-builder dev
|
|
146
|
+
npx @knowcode/doc-builder@latest dev
|
|
97
147
|
|
|
98
148
|
# Show help
|
|
99
|
-
npx @knowcode/doc-builder
|
|
149
|
+
npx @knowcode/doc-builder@latest
|
|
100
150
|
```
|
|
101
151
|
*Perfect for trying it out!*
|
|
102
152
|
|
|
@@ -106,7 +156,7 @@ npx @knowcode/doc-builder
|
|
|
106
156
|
### Option 2: NPM Install
|
|
107
157
|
```bash
|
|
108
158
|
# Install as dev dependency
|
|
109
|
-
npm install --save-dev @knowcode/doc-builder
|
|
159
|
+
npm install --save-dev @knowcode/doc-builder@latest
|
|
110
160
|
|
|
111
161
|
# Use shorter commands
|
|
112
162
|
doc-builder deploy
|
|
@@ -124,7 +174,7 @@ doc-builder --help
|
|
|
124
174
|
|
|
125
175
|
The deployment process is now simpler than ever:
|
|
126
176
|
|
|
127
|
-
1. Run `npx @knowcode/doc-builder deploy`
|
|
177
|
+
1. Run `npx @knowcode/doc-builder@latest deploy`
|
|
128
178
|
2. Answer a few simple questions (project name, etc.)
|
|
129
179
|
3. Vercel CLI automatically detects and configures everything
|
|
130
180
|
4. Get your live URL in seconds!
|
|
@@ -177,7 +227,7 @@ module.exports = {
|
|
|
177
227
|
|
|
178
228
|
<table>
|
|
179
229
|
<tr>
|
|
180
|
-
<td width="
|
|
230
|
+
<td width="50%">
|
|
181
231
|
|
|
182
232
|
### šļø Core Commands
|
|
183
233
|
| Command | Purpose |
|
|
@@ -187,8 +237,14 @@ module.exports = {
|
|
|
187
237
|
| `deploy` | Deploy to Vercel |
|
|
188
238
|
| `init` | Initialize project |
|
|
189
239
|
|
|
240
|
+
### āļø Config Commands
|
|
241
|
+
| Command | Purpose |
|
|
242
|
+
|---------|---------|
|
|
243
|
+
| `set-production-url` | Set custom URL |
|
|
244
|
+
| `reset-vercel` | Clear settings |
|
|
245
|
+
|
|
190
246
|
</td>
|
|
191
|
-
<td width="
|
|
247
|
+
<td width="50%">
|
|
192
248
|
|
|
193
249
|
### š SEO Commands
|
|
194
250
|
| Command | Purpose |
|
|
@@ -197,14 +253,8 @@ module.exports = {
|
|
|
197
253
|
| `setup-seo` | Configure SEO |
|
|
198
254
|
| `google-verify` | Add verification |
|
|
199
255
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### āļø Config Commands
|
|
204
|
-
| Command | Purpose |
|
|
205
|
-
|---------|---------|
|
|
206
|
-
| `set-production-url` | Set custom URL |
|
|
207
|
-
| `reset-vercel` | Clear settings |
|
|
256
|
+
### š Documentation
|
|
257
|
+
All commands support `--help` for detailed options and examples.
|
|
208
258
|
|
|
209
259
|
</td>
|
|
210
260
|
</tr>
|
|
@@ -356,7 +406,7 @@ When using Claude Code to generate documentation, it typically follows these pat
|
|
|
356
406
|
node --version # Need 14+
|
|
357
407
|
|
|
358
408
|
# Use full package name
|
|
359
|
-
npx @knowcode/doc-builder
|
|
409
|
+
npx @knowcode/doc-builder@latest
|
|
360
410
|
```
|
|
361
411
|
|
|
362
412
|
**"No markdown files found"**
|
|
@@ -367,7 +417,7 @@ npx @knowcode/doc-builder
|
|
|
367
417
|
**Vercel deployment fails**
|
|
368
418
|
```bash
|
|
369
419
|
# Reset Vercel settings
|
|
370
|
-
npx @knowcode/doc-builder reset-vercel
|
|
420
|
+
npx @knowcode/doc-builder@latest reset-vercel
|
|
371
421
|
|
|
372
422
|
# Install Vercel CLI
|
|
373
423
|
npm install -g vercel
|
|
@@ -404,6 +454,14 @@ npx @knowcode/doc-builder@1.5.14
|
|
|
404
454
|
</tr>
|
|
405
455
|
</table>
|
|
406
456
|
|
|
457
|
+
### šŖ Windows Setup
|
|
458
|
+
|
|
459
|
+
Having issues on Windows? Check our comprehensive [Windows Setup Guide](docs/guides/windows-setup-guide.md) that covers:
|
|
460
|
+
- PowerShell execution policy setup
|
|
461
|
+
- Node.js and npm installation
|
|
462
|
+
- Git for Windows configuration
|
|
463
|
+
- Complete troubleshooting steps
|
|
464
|
+
|
|
407
465
|
### š Production URL Issues
|
|
408
466
|
|
|
409
467
|
<details>
|
|
@@ -419,12 +477,12 @@ module.exports = {
|
|
|
419
477
|
|
|
420
478
|
**Option 2: CLI Command**
|
|
421
479
|
```bash
|
|
422
|
-
npx @knowcode/doc-builder set-production-url my-docs.vercel.app
|
|
480
|
+
npx @knowcode/doc-builder@latest set-production-url my-docs.vercel.app
|
|
423
481
|
```
|
|
424
482
|
|
|
425
483
|
**Option 3: Deploy Override**
|
|
426
484
|
```bash
|
|
427
|
-
npx @knowcode/doc-builder deploy --production-url my-docs.vercel.app
|
|
485
|
+
npx @knowcode/doc-builder@latest deploy --production-url my-docs.vercel.app
|
|
428
486
|
```
|
|
429
487
|
</details>
|
|
430
488
|
|
|
@@ -432,22 +490,22 @@ npx @knowcode/doc-builder deploy --production-url my-docs.vercel.app
|
|
|
432
490
|
|
|
433
491
|
<table>
|
|
434
492
|
<tr>
|
|
435
|
-
<td width="
|
|
493
|
+
<td width="50%">
|
|
494
|
+
|
|
495
|
+
### Development Integration
|
|
496
|
+
|
|
497
|
+
**NPM Link (Local Dev)**
|
|
436
498
|
|
|
437
|
-
### NPM Link (Dev)
|
|
438
499
|
```bash
|
|
439
|
-
# In doc-builder
|
|
500
|
+
# In doc-builder directory
|
|
440
501
|
npm link
|
|
441
502
|
|
|
442
503
|
# In your project
|
|
443
504
|
npm link @knowcode/doc-builder
|
|
444
505
|
```
|
|
445
|
-
*For local development*
|
|
446
506
|
|
|
447
|
-
|
|
448
|
-
<td width="33%">
|
|
507
|
+
**File Reference (Monorepos)**
|
|
449
508
|
|
|
450
|
-
### File Reference
|
|
451
509
|
```json
|
|
452
510
|
{
|
|
453
511
|
"devDependencies": {
|
|
@@ -456,22 +514,32 @@ npm link @knowcode/doc-builder
|
|
|
456
514
|
}
|
|
457
515
|
}
|
|
458
516
|
```
|
|
459
|
-
*For monorepos*
|
|
460
517
|
|
|
461
518
|
</td>
|
|
462
|
-
<td width="
|
|
519
|
+
<td width="50%">
|
|
520
|
+
|
|
521
|
+
### Production Integration
|
|
522
|
+
|
|
523
|
+
**NPM Registry (Recommended)**
|
|
524
|
+
|
|
525
|
+
```json
|
|
526
|
+
{
|
|
527
|
+
"devDependencies": {
|
|
528
|
+
"@knowcode/doc-builder": "^1.5.14"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
**Git Repository (Private)**
|
|
463
534
|
|
|
464
|
-
### Git Repository
|
|
465
535
|
```json
|
|
466
536
|
{
|
|
467
537
|
"devDependencies": {
|
|
468
538
|
"@knowcode/doc-builder":
|
|
469
|
-
"git+https://github.com/
|
|
470
|
-
knowcode/doc-builder.git"
|
|
539
|
+
"git+https://github.com/knowcode/doc-builder.git"
|
|
471
540
|
}
|
|
472
541
|
}
|
|
473
542
|
```
|
|
474
|
-
*For private repos*
|
|
475
543
|
|
|
476
544
|
</td>
|
|
477
545
|
</tr>
|
|
@@ -491,4 +559,4 @@ MIT License - See [LICENSE](LICENSE) file for details
|
|
|
491
559
|
|
|
492
560
|
Made with ā¤ļø by the @knowcode team
|
|
493
561
|
|
|
494
|
-
</div>
|
|
562
|
+
</div>
|
|
@@ -682,12 +682,14 @@ th {
|
|
|
682
682
|
background: var(--color-bg-secondary);
|
|
683
683
|
border-bottom: 1px solid var(--color-border-default);
|
|
684
684
|
color: var(--color-text-primary);
|
|
685
|
+
vertical-align: top;
|
|
685
686
|
}
|
|
686
687
|
|
|
687
688
|
td {
|
|
688
689
|
padding: var(--space-3) var(--space-4);
|
|
689
690
|
border-bottom: 1px solid var(--color-border-default);
|
|
690
691
|
color: var(--color-text-primary);
|
|
692
|
+
vertical-align: top;
|
|
691
693
|
}
|
|
692
694
|
|
|
693
695
|
tr:last-child td {
|
package/assets/js/main.js
CHANGED
|
@@ -79,9 +79,6 @@ function initializeMermaidFullScreen() {
|
|
|
79
79
|
const toolbar = document.createElement('div');
|
|
80
80
|
toolbar.className = 'mermaid-toolbar';
|
|
81
81
|
|
|
82
|
-
const title = document.createElement('div');
|
|
83
|
-
title.textContent = 'Mermaid Diagram';
|
|
84
|
-
|
|
85
82
|
const actions = document.createElement('div');
|
|
86
83
|
actions.className = 'mermaid-actions';
|
|
87
84
|
|
|
@@ -91,23 +88,8 @@ function initializeMermaidFullScreen() {
|
|
|
91
88
|
fullScreenBtn.innerHTML = '<i class="fas fa-expand"></i> Full Screen';
|
|
92
89
|
fullScreenBtn.addEventListener('click', () => openMermaidFullScreen(mermaidDiv, index));
|
|
93
90
|
|
|
94
|
-
// Copy SVG button
|
|
95
|
-
const copyBtn = document.createElement('button');
|
|
96
|
-
copyBtn.className = 'mermaid-btn';
|
|
97
|
-
copyBtn.innerHTML = '<i class="fas fa-copy"></i> Copy SVG';
|
|
98
|
-
copyBtn.addEventListener('click', () => copyMermaidSVG(mermaidDiv));
|
|
99
|
-
|
|
100
|
-
// Copy Mermaid source button
|
|
101
|
-
const copyMermaidBtn = document.createElement('button');
|
|
102
|
-
copyMermaidBtn.className = 'mermaid-btn';
|
|
103
|
-
copyMermaidBtn.innerHTML = '<i class="fas fa-code"></i> Copy Mermaid';
|
|
104
|
-
copyMermaidBtn.addEventListener('click', () => copyMermaidSource(mermaidDiv));
|
|
105
|
-
|
|
106
91
|
actions.appendChild(fullScreenBtn);
|
|
107
|
-
actions.appendChild(copyBtn);
|
|
108
|
-
actions.appendChild(copyMermaidBtn);
|
|
109
92
|
|
|
110
|
-
toolbar.appendChild(title);
|
|
111
93
|
toolbar.appendChild(actions);
|
|
112
94
|
|
|
113
95
|
// Create wrapper for the diagram
|
package/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ program
|
|
|
24
24
|
.addHelpText('before', `
|
|
25
25
|
${chalk.cyan('š @knowcode/doc-builder')} - Transform your markdown into beautiful documentation sites
|
|
26
26
|
|
|
27
|
-
${chalk.bgGreen.black(' TL;DR ')} ${chalk.green('Just run:')} ${chalk.cyan.bold('npx @knowcode/doc-builder deploy')} ${chalk.green('ā Your docs are live on Vercel!')}
|
|
27
|
+
${chalk.bgGreen.black(' TL;DR ')} ${chalk.green('Just run:')} ${chalk.cyan.bold('npx @knowcode/doc-builder@latest deploy')} ${chalk.green('ā Your docs are live on Vercel!')}
|
|
28
28
|
|
|
29
29
|
${chalk.gray('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā')}
|
|
30
30
|
|
|
@@ -47,18 +47,18 @@ ${chalk.yellow('Quick Start:')}
|
|
|
47
47
|
${chalk.gray('$')} echo "# My Documentation" > docs/README.md
|
|
48
48
|
|
|
49
49
|
${chalk.cyan('2. Build and deploy:')}
|
|
50
|
-
${chalk.gray('$')} npx @knowcode/doc-builder
|
|
51
|
-
${chalk.gray('$')} npx @knowcode/doc-builder deploy
|
|
52
|
-
${chalk.gray('$')} npx @knowcode/doc-builder build
|
|
50
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest ${chalk.gray('# Show help and available commands')}
|
|
51
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest deploy ${chalk.gray('# Build and deploy to production')}
|
|
52
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest build ${chalk.gray('# Build HTML files only')}
|
|
53
53
|
|
|
54
54
|
${chalk.yellow('Troubleshooting npx cache issues:')}
|
|
55
55
|
${chalk.red('If you see an old version after updating:')}
|
|
56
56
|
${chalk.gray('$')} npx clear-npx-cache ${chalk.gray('# Clear the npx cache')}
|
|
57
57
|
${chalk.gray('$')} npx @knowcode/doc-builder@latest ${chalk.gray('# Force latest version')}
|
|
58
|
-
${chalk.gray('$')} npx @knowcode/doc-builder dev
|
|
58
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest dev ${chalk.gray('# Start development server')}
|
|
59
59
|
|
|
60
60
|
${chalk.yellow('No docs folder yet?')}
|
|
61
|
-
${chalk.gray('$')} npx @knowcode/doc-builder init --example ${chalk.gray('# Create example docs')}
|
|
61
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest init --example ${chalk.gray('# Create example docs')}
|
|
62
62
|
`);
|
|
63
63
|
|
|
64
64
|
// Build command
|
|
@@ -537,7 +537,7 @@ ${chalk.yellow('First-time Vercel Setup:')}
|
|
|
537
537
|
${chalk.gray(' This will open your browser to authenticate')}
|
|
538
538
|
|
|
539
539
|
${chalk.cyan('3. Run doc-builder deploy:')}
|
|
540
|
-
${chalk.gray('$')} npx @knowcode/doc-builder deploy
|
|
540
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest deploy
|
|
541
541
|
|
|
542
542
|
You'll be asked several questions:
|
|
543
543
|
|
|
@@ -584,17 +584,17 @@ ${chalk.yellow('First-time Vercel Setup:')}
|
|
|
584
584
|
${chalk.yellow('Deployment Behavior:')}
|
|
585
585
|
${chalk.green.bold('šÆ DEFAULT: All deployments go to PRODUCTION')}
|
|
586
586
|
|
|
587
|
-
${chalk.gray('$')} npx @knowcode/doc-builder ${chalk.gray('# ā Shows help (v1.3.0+)')}
|
|
588
|
-
${chalk.gray('$')} npx @knowcode/doc-builder deploy ${chalk.gray('# ā yourdocs.vercel.app')}
|
|
589
|
-
${chalk.gray('$')} npx @knowcode/doc-builder deploy --no-prod ${chalk.gray('# ā preview URL only')}
|
|
587
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest ${chalk.gray('# ā Shows help (v1.3.0+)')}
|
|
588
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest deploy ${chalk.gray('# ā yourdocs.vercel.app')}
|
|
589
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest deploy --no-prod ${chalk.gray('# ā preview URL only')}
|
|
590
590
|
|
|
591
591
|
${chalk.yellow('When All Else Fails - Delete and Start Fresh:')}
|
|
592
592
|
Sometimes the cleanest solution is to delete the Vercel project:
|
|
593
593
|
|
|
594
594
|
1. Go to your project settings on Vercel
|
|
595
595
|
2. Scroll to bottom and click ${chalk.red('"Delete Project"')}
|
|
596
|
-
3. Run: ${chalk.gray('npx @knowcode/doc-builder reset-vercel')}
|
|
597
|
-
4. Run: ${chalk.gray('npx @knowcode/doc-builder deploy')}
|
|
596
|
+
3. Run: ${chalk.gray('npx @knowcode/doc-builder@latest reset-vercel')}
|
|
597
|
+
4. Run: ${chalk.gray('npx @knowcode/doc-builder@latest deploy')}
|
|
598
598
|
5. Create a NEW project with correct settings
|
|
599
599
|
|
|
600
600
|
This removes all conflicting configurations!
|
|
@@ -636,8 +636,8 @@ ${chalk.yellow('Troubleshooting:')}
|
|
|
636
636
|
${chalk.yellow('The Vercel project was deleted but local config remains.')}
|
|
637
637
|
|
|
638
638
|
${chalk.green('Fix:')}
|
|
639
|
-
${chalk.gray('$')} npx @knowcode/doc-builder reset-vercel
|
|
640
|
-
${chalk.gray('$')} npx @knowcode/doc-builder deploy
|
|
639
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest reset-vercel
|
|
640
|
+
${chalk.gray('$')} npx @knowcode/doc-builder@latest deploy
|
|
641
641
|
|
|
642
642
|
This removes old project references and starts fresh
|
|
643
643
|
`)
|
|
@@ -658,7 +658,7 @@ ${chalk.yellow('Troubleshooting:')}
|
|
|
658
658
|
console.log(chalk.gray(' yarn global add vercel'));
|
|
659
659
|
console.log(chalk.gray(' brew install vercel # macOS\n'));
|
|
660
660
|
console.log(chalk.yellow('Then run deployment again:'));
|
|
661
|
-
console.log(chalk.gray(' npx @knowcode/doc-builder deploy\n'));
|
|
661
|
+
console.log(chalk.gray(' npx @knowcode/doc-builder@latest deploy\n'));
|
|
662
662
|
process.exit(1);
|
|
663
663
|
}
|
|
664
664
|
|
|
@@ -742,7 +742,7 @@ ${chalk.yellow('Troubleshooting:')}
|
|
|
742
742
|
console.log(chalk.cyan(` ${deployUrl}`));
|
|
743
743
|
console.log();
|
|
744
744
|
console.log(chalk.gray('To deploy to production, run:'));
|
|
745
|
-
console.log(chalk.gray(' npx @knowcode/doc-builder deploy'));
|
|
745
|
+
console.log(chalk.gray(' npx @knowcode/doc-builder@latest deploy'));
|
|
746
746
|
}
|
|
747
747
|
console.log();
|
|
748
748
|
|
|
@@ -787,7 +787,7 @@ ${chalk.yellow('When to use:')}
|
|
|
787
787
|
fs.removeSync(vercelPath);
|
|
788
788
|
console.log(chalk.green('ā
Vercel configuration reset!'));
|
|
789
789
|
console.log(chalk.gray('\nNow run deployment again:'));
|
|
790
|
-
console.log(chalk.cyan(' npx @knowcode/doc-builder deploy'));
|
|
790
|
+
console.log(chalk.cyan(' npx @knowcode/doc-builder@latest deploy'));
|
|
791
791
|
console.log(chalk.gray('\nThis time:'));
|
|
792
792
|
console.log(chalk.gray('⢠Create a NEW project (not username/html)'));
|
|
793
793
|
console.log(chalk.gray('⢠Use a descriptive name like "my-docs"'));
|
|
@@ -822,7 +822,7 @@ ${chalk.yellow('What you\'ll configure:')}
|
|
|
822
822
|
⢠Open Graph image
|
|
823
823
|
|
|
824
824
|
${chalk.yellow('After setup:')}
|
|
825
|
-
⢠Run ${chalk.cyan('npx @knowcode/doc-builder build')} to generate with SEO
|
|
825
|
+
⢠Run ${chalk.cyan('npx @knowcode/doc-builder@latest build')} to generate with SEO
|
|
826
826
|
⢠Check meta tags in generated HTML files
|
|
827
827
|
⢠Submit sitemap.xml to search engines
|
|
828
828
|
`)
|
|
@@ -972,7 +972,7 @@ ${chalk.yellow('After setup:')}
|
|
|
972
972
|
if (answers.ogImage) {
|
|
973
973
|
console.log(chalk.gray(`- Add an image at ${answers.ogImage} (1200x630px) for social previews`));
|
|
974
974
|
}
|
|
975
|
-
console.log(chalk.gray('- Run \'npx @knowcode/doc-builder build\' to generate with SEO'));
|
|
975
|
+
console.log(chalk.gray('- Run \'npx @knowcode/doc-builder@latest build\' to generate with SEO'));
|
|
976
976
|
console.log(chalk.gray('- Check your SEO at: https://metatags.io'));
|
|
977
977
|
|
|
978
978
|
} catch (error) {
|
|
@@ -1036,8 +1036,8 @@ ${chalk.yellow('What gets created:')}
|
|
|
1036
1036
|
|
|
1037
1037
|
// Create example files
|
|
1038
1038
|
const exampleFiles = {
|
|
1039
|
-
'README.md': `# Welcome to Your Documentation\n\nThis is an example documentation site created with @knowcode/doc-builder.\n\n## Features\n\n- š Write in Markdown\n- šØ Beautiful Notion-inspired design\n- š Mermaid diagram support\n- š Dark mode\n- š Deploy to Vercel\n\n## Getting Started\n\n1. Edit this file and add your content\n2. Create new markdown files\n3. Run \`npx @knowcode/doc-builder\` to build and deploy\n\n## Example Diagram\n\n\`\`\`mermaid\ngraph TD\n A[Write Docs] --> B[Build]\n B --> C[Deploy]\n C --> D[Share]\n\`\`\`\n`,
|
|
1040
|
-
'getting-started.md': `# Getting Started\n\n**Generated**: ${new Date().toISOString().split('T')[0]}\n**Status**: Draft\n**Verified**: ā\n\n## Overview\n\nThis guide will help you get started with your documentation.\n\n## Installation\n\nNo installation required! Just use:\n\n\`\`\`bash\nnpx @knowcode/doc-builder\n\`\`\`\n\n## Writing Documentation\n\n1. Create markdown files in the \`docs\` folder\n2. Use folders to organize your content\n3. Add front matter for metadata\n\n## Building\n\nTo build your documentation:\n\n\`\`\`bash\nnpx @knowcode/doc-builder build\n\`\`\`\n\n## Deployment\n\nDeploy to Vercel:\n\n\`\`\`bash\nnpx @knowcode/doc-builder deploy\n\`\`\`\n`,
|
|
1039
|
+
'README.md': `# Welcome to Your Documentation\n\nThis is an example documentation site created with @knowcode/doc-builder.\n\n## Features\n\n- š Write in Markdown\n- šØ Beautiful Notion-inspired design\n- š Mermaid diagram support\n- š Dark mode\n- š Deploy to Vercel\n\n## Getting Started\n\n1. Edit this file and add your content\n2. Create new markdown files\n3. Run \`npx @knowcode/doc-builder@latest\` to build and deploy\n\n## Example Diagram\n\n\`\`\`mermaid\ngraph TD\n A[Write Docs] --> B[Build]\n B --> C[Deploy]\n C --> D[Share]\n\`\`\`\n`,
|
|
1040
|
+
'getting-started.md': `# Getting Started\n\n**Generated**: ${new Date().toISOString().split('T')[0]}\n**Status**: Draft\n**Verified**: ā\n\n## Overview\n\nThis guide will help you get started with your documentation.\n\n## Installation\n\nNo installation required! Just use:\n\n\`\`\`bash\nnpx @knowcode/doc-builder@latest\n\`\`\`\n\n## Writing Documentation\n\n1. Create markdown files in the \`docs\` folder\n2. Use folders to organize your content\n3. Add front matter for metadata\n\n## Building\n\nTo build your documentation:\n\n\`\`\`bash\nnpx @knowcode/doc-builder@latest build\n\`\`\`\n\n## Deployment\n\nDeploy to Vercel:\n\n\`\`\`bash\nnpx @knowcode/doc-builder@latest deploy\n\`\`\`\n`,
|
|
1041
1041
|
'guides/configuration.md': `# Configuration Guide\n\n**Generated**: ${new Date().toISOString().split('T')[0]}\n**Status**: Draft\n**Verified**: ā\n\n## Overview\n\n@knowcode/doc-builder works with zero configuration, but you can customize it.\n\n## Configuration File\n\nCreate \`doc-builder.config.js\`:\n\n\`\`\`javascript\nmodule.exports = {\n siteName: 'My Documentation',\n siteDescription: 'Documentation for my project',\n \n features: {\n authentication: false,\n changelog: true,\n mermaid: true,\n darkMode: true\n }\n};\n\`\`\`\n\n## Options\n\n### Site Information\n\n- \`siteName\`: Your documentation site name\n- \`siteDescription\`: Brief description\n\n### Directories\n\n- \`docsDir\`: Input directory (default: 'docs')\n- \`outputDir\`: Output directory (default: 'html')\n\n### Features\n\n- \`authentication\`: Enable password protection\n- \`changelog\`: Generate changelog automatically\n- \`mermaid\`: Support for diagrams\n- \`darkMode\`: Dark theme support\n`
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
@@ -1057,7 +1057,7 @@ ${chalk.yellow('What gets created:')}
|
|
|
1057
1057
|
console.log(chalk.cyan('\\nš Example documentation created in docs/ folder'));
|
|
1058
1058
|
console.log(chalk.gray('\\nNext steps:'));
|
|
1059
1059
|
console.log(chalk.gray('1. Edit the example files to add your content'));
|
|
1060
|
-
console.log(chalk.gray('2. Run `npx @knowcode/doc-builder` to build and deploy'));
|
|
1060
|
+
console.log(chalk.gray('2. Run `npx @knowcode/doc-builder@latest` to build and deploy'));
|
|
1061
1061
|
} else {
|
|
1062
1062
|
console.log(chalk.yellow('ā ļø docs/ directory already exists'));
|
|
1063
1063
|
}
|