@knowcode/doc-builder 1.9.30 → 1.9.31
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/package.json +12 -2
- package/.claude/settings.local.json +0 -56
- package/CACHE-BUSTING-GUIDE.md +0 -82
- package/CLAUDE.md +0 -86
- package/CONTRIBUTING.md +0 -148
- package/GITHUB_SETUP.md +0 -203
- package/RELEASE-NOTES-1.7.5.md +0 -64
- package/Screenshot 2025-07-22 at 19.51.21.png +0 -0
- package/Screenshot 2025-07-26 at 17.06.49.png +0 -0
- package/add-user-clive.sql +0 -35
- package/add-user-lindsay-fixed.sql +0 -85
- package/add-user-lindsay.sql +0 -68
- package/add-user-pmorgan.sql +0 -35
- package/add-user-robbie.sql +0 -35
- package/add-wru-users.sql +0 -105
- package/debug-login.sql +0 -30
- package/doc-builder.config.js +0 -126
- package/doc-builder.config.js.backup.1753793768283 +0 -47
- package/doc-builder.config.js.backup.1753803964423 +0 -114
- package/doc-builder.config.js.backup.1753945707032 +0 -115
- package/doc-builder.config.js.backup.1754059241330 +0 -115
- package/doc-builder.config.js.backup.1754119567787 +0 -123
- package/doc-builder.config.js.backup.1754120048862 +0 -124
- package/doc-builder.config.js.backup.1754120529913 +0 -124
- package/doc-builder.config.js.backup.1754218469785 +0 -124
- package/doc-builder.config.js.backup.1754384764054 +0 -124
- package/doc-builder.config.js.backup.1754567425847 +0 -124
- package/doc-builder.config.js.backup.1754568137859 +0 -126
- package/doc-builder.config.js.backup.1754569388252 +0 -126
- package/doc-builder.config.js.backup.1754576694123 +0 -126
- package/doc-builder.config.js.backup.1755031374829 +0 -126
- package/doc-builder.config.js.backup.1755034500990 +0 -126
- package/doc-builder.config.js.backup.1755034809236 +0 -126
- package/grant-access.sql +0 -15
- package/html/11.png +0 -0
- package/html/404.html +0 -115
- package/html/README.html +0 -522
- package/html/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html/about-doc-builder.html +0 -491
- package/html/auth.js +0 -157
- package/html/claude-workflow-guide.html +0 -525
- package/html/css/notion-style.css +0 -2502
- package/html/documentation-index.html +0 -471
- package/html/guides/authentication-default-change.html +0 -370
- package/html/guides/authentication-guide.html +0 -509
- package/html/guides/cache-control-anti-pattern.html +0 -361
- package/html/guides/claude-workflow-guide.html +0 -1074
- package/html/guides/configuration-guide.html +0 -472
- package/html/guides/document-standards.html +0 -518
- package/html/guides/documentation-standards.html +0 -694
- package/html/guides/html-embedding-guide.html +0 -461
- package/html/guides/image-modal-guide.html +0 -515
- package/html/guides/next-steps-walkthrough.html +0 -638
- package/html/guides/phosphor-icons-guide.html +0 -584
- package/html/guides/private-directory-authentication-troubleshooting.html +0 -555
- package/html/guides/private-directory-authentication.html +0 -541
- package/html/guides/public-site-deployment.html +0 -431
- package/html/guides/search-engine-verification-guide.html +0 -542
- package/html/guides/seo-guide.html +0 -661
- package/html/guides/seo-optimization-guide.html +0 -887
- package/html/guides/supabase-auth-implementation-plan.html +0 -543
- package/html/guides/supabase-auth-integration-plan.html +0 -671
- package/html/guides/supabase-auth-setup-guide.html +0 -498
- package/html/guides/supabase-authentication-complete-guide.html +0 -866
- package/html/guides/troubleshooting-guide.html +0 -633
- package/html/guides/vercel-deployment-auth-setup.html +0 -337
- package/html/guides/windows-setup-guide.html +0 -859
- package/html/image-modal-test.html +0 -318
- package/html/index.html +0 -522
- package/html/js/auth.js +0 -157
- package/html/js/main.js +0 -1754
- package/html/launch/README.html +0 -297
- package/html/launch/bubble-plugin-specification.html +0 -933
- package/html/launch/go-to-market-strategy.html +0 -663
- package/html/launch/launch-announcements.html +0 -593
- package/html/login.html +0 -102
- package/html/logout.html +0 -18
- package/html/private/cache-control-anti-pattern.html +0 -429
- package/html/private/launch/README.html +0 -371
- package/html/private/launch/auth-cleanup-summary.html +0 -361
- package/html/private/launch/bubble-plugin-specification.html +0 -1007
- package/html/private/launch/go-to-market-strategy.html +0 -737
- package/html/private/launch/launch-announcements.html +0 -667
- package/html/private/launch/vercel-deployment-auth-setup.html +0 -417
- package/html/private/next-steps-walkthrough.html +0 -679
- package/html/private/supabase-auth-implementation-completed.html +0 -454
- package/html/private/supabase-auth-implementation-plan.html +0 -594
- package/html/private/supabase-auth-integration-plan.html +0 -704
- package/html/private/supabase-auth-setup-guide.html +0 -555
- package/html/private/test-private-doc.html +0 -302
- package/html/private/user-management-tooling.html +0 -601
- package/html/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html/prompts/beautiful-documentation-design.html +0 -784
- package/html/prompts/markdown-document-standards.html +0 -422
- package/html/prompts/project-rename-strategy-sasha-publish.html +0 -530
- package/html/robots.txt +0 -9
- package/html/sitemap.xml +0 -357
- package/html/test-questions/how-does-it-work%3F.html +0 -294
- package/html/test-questions/step-1%3A%20getting-started.html +0 -289
- package/html/test-questions/what-is-the-purpose.html +0 -293
- package/html/test-status.html +0 -281
- package/html/vercel-cli-setup-guide.html +0 -495
- package/html/vercel-first-time-setup-guide.html +0 -454
- package/html/vercel.json +0 -29
- package/html-static/11.png +0 -0
- package/html-static/404.html +0 -115
- package/html-static/README.html +0 -609
- package/html-static/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html-static/about-doc-builder.html +0 -578
- package/html-static/css/notion-style.css +0 -2502
- package/html-static/documentation-index.html +0 -558
- package/html-static/guides/authentication-default-change.html +0 -457
- package/html-static/guides/authentication-guide.html +0 -596
- package/html-static/guides/claude-workflow-guide.html +0 -1161
- package/html-static/guides/configuration-guide.html +0 -559
- package/html-static/guides/documentation-standards.html +0 -781
- package/html-static/guides/html-embedding-guide.html +0 -548
- package/html-static/guides/image-modal-guide.html +0 -602
- package/html-static/guides/phosphor-icons-guide.html +0 -671
- package/html-static/guides/private-directory-authentication-troubleshooting.html +0 -642
- package/html-static/guides/private-directory-authentication.html +0 -628
- package/html-static/guides/public-site-deployment.html +0 -518
- package/html-static/guides/search-engine-verification-guide.html +0 -629
- package/html-static/guides/seo-guide.html +0 -748
- package/html-static/guides/seo-optimization-guide.html +0 -974
- package/html-static/guides/supabase-authentication-complete-guide.html +0 -953
- package/html-static/guides/troubleshooting-guide.html +0 -720
- package/html-static/guides/windows-setup-guide.html +0 -946
- package/html-static/image-modal-test.html +0 -405
- package/html-static/index.html +0 -609
- package/html-static/js/main.js +0 -1754
- package/html-static/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html-static/prompts/beautiful-documentation-design.html +0 -871
- package/html-static/prompts/markdown-document-standards.html +0 -509
- package/html-static/prompts/project-rename-strategy-sasha-publish.html +0 -617
- package/html-static/robots.txt +0 -5
- package/html-static/sitemap.xml +0 -195
- package/html-static/test-questions/how-does-it-work%3F.html +0 -381
- package/html-static/test-questions/step-1%3A%20getting-started.html +0 -376
- package/html-static/test-questions/what-is-the-purpose.html +0 -380
- package/html-static/vercel-cli-setup-guide.html +0 -582
- package/html-static/vercel-first-time-setup-guide.html +0 -541
- package/manage-users.sql +0 -191
- package/migrate-to-domain-auth.sql +0 -47
- package/package/CACHE-BUSTING-GUIDE.md +0 -82
- package/package/CHANGELOG.md +0 -902
- package/package/README.md +0 -248
- package/package/assets/css/notion-style.css +0 -2211
- package/package/assets/js/auth.js +0 -67
- package/package/assets/js/main.js +0 -1565
- package/package/cli.js +0 -764
- package/package/index.js +0 -38
- package/package/knowcode-doc-builder-1.3.15.tgz +0 -0
- package/package/lib/builder.js +0 -32
- package/package/lib/config.js +0 -278
- package/package/lib/core-builder.js +0 -957
- package/package/lib/deploy.js +0 -497
- package/package/lib/dev-server.js +0 -96
- package/package/package.json +0 -34
- package/package/scripts/npx-runner.js +0 -27
- package/package/scripts/setup.js +0 -56
- package/package/test-cache-bust.sh +0 -43
- package/public-config.js +0 -22
- package/public-html/404.html +0 -115
- package/public-html/README.html +0 -149
- package/public-html/css/notion-style.css +0 -2036
- package/public-html/index.html +0 -149
- package/public-html/js/auth.js +0 -67
- package/public-html/js/main.js +0 -1485
- package/quick-test-commands.md +0 -40
- package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
- package/recordings/mh-ls-22jul.txt +0 -2305
- package/screenshot.png +0 -0
- package/scripts/Screenshot 2025-07-23 at 15.39.41.png +0 -0
- package/setup-database-v2.sql +0 -53
- package/setup-database.sql +0 -41
- package/test-auth-config.js +0 -17
- package/test-cache-bust.sh +0 -43
- package/test-docs/README.md +0 -39
- package/test-html/404.html +0 -115
- package/test-html/README.html +0 -172
- package/test-html/auth.js +0 -97
- package/test-html/css/notion-style.css +0 -2036
- package/test-html/index.html +0 -172
- package/test-html/js/auth.js +0 -97
- package/test-html/js/main.js +0 -1485
- package/test-html/login.html +0 -102
- package/test-html/logout.html +0 -18
- package/update-domain.sql +0 -9
- package/user-access-view.sql +0 -49
- package/user-management/README.md +0 -301
- package/user-management/add-users.sh +0 -776
- package/user-management/create-user.js +0 -65
- package/user-management/users.txt +0 -15
- package/view-all-users.sql +0 -40
- package/wru-auth-config.js +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knowcode/doc-builder",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.31",
|
|
4
4
|
"description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/wapdat/doc-builder#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@knowcode/doc-builder": "^1.4.21",
|
|
33
32
|
"@supabase/supabase-js": "^2.39.0",
|
|
34
33
|
"chalk": "^4.1.2",
|
|
35
34
|
"commander": "^11.0.0",
|
|
@@ -40,6 +39,17 @@
|
|
|
40
39
|
"prompts": "^2.4.2",
|
|
41
40
|
"semver": "^7.7.2"
|
|
42
41
|
},
|
|
42
|
+
"files": [
|
|
43
|
+
"cli.js",
|
|
44
|
+
"index.js",
|
|
45
|
+
"lib/**/*",
|
|
46
|
+
"assets/**/*",
|
|
47
|
+
"scripts/**/*",
|
|
48
|
+
"templates/**/*",
|
|
49
|
+
"README.md",
|
|
50
|
+
"LICENSE",
|
|
51
|
+
"CHANGELOG.md"
|
|
52
|
+
],
|
|
43
53
|
"engines": {
|
|
44
54
|
"node": ">=14.0.0"
|
|
45
55
|
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(node:*)",
|
|
5
|
-
"Bash(git add:*)",
|
|
6
|
-
"Bash(git commit:*)",
|
|
7
|
-
"Bash(npm version:*)",
|
|
8
|
-
"Bash(npm pack)",
|
|
9
|
-
"Bash(cat:*)",
|
|
10
|
-
"Bash(rm:*)",
|
|
11
|
-
"Bash(npm publish:*)",
|
|
12
|
-
"Bash(git tag:*)",
|
|
13
|
-
"Bash(git push:*)",
|
|
14
|
-
"Bash(git pull:*)",
|
|
15
|
-
"Bash(git rebase:*)",
|
|
16
|
-
"Bash(npm info:*)",
|
|
17
|
-
"Bash(npx:*)",
|
|
18
|
-
"Bash(grep:*)",
|
|
19
|
-
"Bash(npm cache clean:*)",
|
|
20
|
-
"Bash(ls:*)",
|
|
21
|
-
"Bash(npm run build:*)",
|
|
22
|
-
"Bash(npm view:*)",
|
|
23
|
-
"Bash(npm:*)",
|
|
24
|
-
"Bash(vercel project:*)",
|
|
25
|
-
"Bash(vercel alias:*)",
|
|
26
|
-
"Bash(find:*)",
|
|
27
|
-
"Bash(diff:*)",
|
|
28
|
-
"Bash(git log:*)",
|
|
29
|
-
"Bash(mkdir:*)",
|
|
30
|
-
"Bash(cp:*)",
|
|
31
|
-
"Bash(./publish.sh)",
|
|
32
|
-
"Bash(mv:*)",
|
|
33
|
-
"WebFetch(domain:convert-to-markdown.vercel.app)",
|
|
34
|
-
"Bash(pkill:*)",
|
|
35
|
-
"Bash(curl:*)",
|
|
36
|
-
"Bash(./cli.js build:*)",
|
|
37
|
-
"Bash(./cli.js deploy:*)",
|
|
38
|
-
"Bash(./add-users.sh:*)",
|
|
39
|
-
"Bash(python3:*)",
|
|
40
|
-
"Bash(chmod:*)",
|
|
41
|
-
"Bash(supabase auth:*)",
|
|
42
|
-
"Bash(supabase:*)",
|
|
43
|
-
"Bash(DEBUG=1 ./user-management/add-users.sh add wru-bid-analysis.vercel.app lindsay@knowcode.tech)",
|
|
44
|
-
"Bash(./user-management/add-users.sh:*)",
|
|
45
|
-
"Bash(DEBUG=1 ./add-users.sh add wru-bid-analysis.vercel.app lindsay@knowcode.tech)",
|
|
46
|
-
"Bash(brew upgrade:*)",
|
|
47
|
-
"Bash(psql:*)",
|
|
48
|
-
"Bash(open /Users/lindsaysmith/Documents/lambda1.nosync/doc-builder/html/image-modal-test.html)",
|
|
49
|
-
"WebFetch(domain:nudge-campaign.vercel.app)",
|
|
50
|
-
"WebFetch(domain:mermaid.js.org)",
|
|
51
|
-
"Bash(open html/test-mermaid-enhanced.html)",
|
|
52
|
-
"Bash(open:*)"
|
|
53
|
-
],
|
|
54
|
-
"deny": []
|
|
55
|
-
}
|
|
56
|
-
}
|
package/CACHE-BUSTING-GUIDE.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Cache Busting Guide for @knowcode/doc-builder
|
|
2
|
-
|
|
3
|
-
If you're not seeing updates after upgrading to a new version, it's likely due to caching. Follow these steps:
|
|
4
|
-
|
|
5
|
-
## 1. Clean Everything Locally
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Remove old build artifacts
|
|
9
|
-
rm -rf html/
|
|
10
|
-
|
|
11
|
-
# Clear npm cache
|
|
12
|
-
npm cache clean --force
|
|
13
|
-
|
|
14
|
-
# Remove node_modules and reinstall
|
|
15
|
-
rm -rf node_modules
|
|
16
|
-
npm install
|
|
17
|
-
|
|
18
|
-
# Make sure you have the latest version
|
|
19
|
-
npm install @knowcode/doc-builder@latest
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## 2. Rebuild with Fresh Files
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Build fresh documentation
|
|
26
|
-
npx @knowcode/doc-builder build
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## 3. Deploy with Force Flag
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# Force Vercel to ignore cache
|
|
33
|
-
vercel --prod --force
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## 4. Clear Browser Cache
|
|
37
|
-
|
|
38
|
-
- **Chrome/Edge**: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
|
|
39
|
-
- **Firefox**: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
|
|
40
|
-
- **Safari**: Cmd+Option+R
|
|
41
|
-
- Or use Incognito/Private browsing mode
|
|
42
|
-
|
|
43
|
-
## 5. Clear Vercel/CDN Cache (if applicable)
|
|
44
|
-
|
|
45
|
-
If using Vercel:
|
|
46
|
-
1. Go to your project dashboard
|
|
47
|
-
2. Settings → Functions → Purge Cache
|
|
48
|
-
3. Or redeploy with a different domain temporarily
|
|
49
|
-
|
|
50
|
-
## 6. Add Cache Busting to Your Build
|
|
51
|
-
|
|
52
|
-
Edit your `doc-builder.config.js` to add version query strings:
|
|
53
|
-
|
|
54
|
-
```javascript
|
|
55
|
-
module.exports = {
|
|
56
|
-
// ... other config
|
|
57
|
-
cacheBust: true, // This will add ?v=timestamp to CSS/JS files
|
|
58
|
-
};
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Common Issues
|
|
62
|
-
|
|
63
|
-
- **"I updated but nothing changed"** - It's cache. Follow all steps above.
|
|
64
|
-
- **"Tooltips still don't work"** - Clear browser cache and check console for errors
|
|
65
|
-
- **"Spacing is still wrong"** - The CSS is cached. Hard refresh the page.
|
|
66
|
-
|
|
67
|
-
## Verify You Have The Right Version
|
|
68
|
-
|
|
69
|
-
Check the version in your package.json:
|
|
70
|
-
```bash
|
|
71
|
-
npm list @knowcode/doc-builder
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Should show: `@knowcode/doc-builder@1.3.13` or higher.
|
|
75
|
-
|
|
76
|
-
## Still Not Working?
|
|
77
|
-
|
|
78
|
-
1. Open browser DevTools
|
|
79
|
-
2. Go to Network tab
|
|
80
|
-
3. Check "Disable cache" checkbox
|
|
81
|
-
4. Refresh the page
|
|
82
|
-
5. Look at the CSS/JS files being loaded - they should not show "(from cache)"
|
package/CLAUDE.md
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md - @knowcode/doc-builder
|
|
2
|
-
|
|
3
|
-
This file provides comprehensive guidance for Claude Code when working with the @knowcode/doc-builder project - a Notion-inspired documentation generator that converts markdown files to beautiful static HTML sites with Vercel deployment support.
|
|
4
|
-
|
|
5
|
-
## Project Overview
|
|
6
|
-
|
|
7
|
-
**Name**: @knowcode/doc-builder
|
|
8
|
-
**Version**: 1.4.3
|
|
9
|
-
**Purpose**: Transform markdown documentation into beautiful, searchable static HTML sites with a Notion-inspired design
|
|
10
|
-
**NPM Package**: Published at https://www.npmjs.com/package/@knowcode/doc-builder
|
|
11
|
-
**GitHub Repository**: https://github.com/wapdat/doc-builder
|
|
12
|
-
|
|
13
|
-
### Key Features
|
|
14
|
-
- 📝 **Markdown to HTML conversion** with syntax highlighting and mermaid diagram support
|
|
15
|
-
- 🎨 **Notion-inspired design** with dark mode support
|
|
16
|
-
- 🚀 **One-command Vercel deployment** with zero configuration
|
|
17
|
-
- 🔍 **Auto-generated navigation** from folder structure
|
|
18
|
-
- 🔐 **Optional authentication** for private documentation
|
|
19
|
-
- 📊 **Mermaid diagram support** out of the box
|
|
20
|
-
- 📱 **Fully responsive** design
|
|
21
|
-
- 🔧 **Zero configuration** - works with sensible defaults
|
|
22
|
-
|
|
23
|
-
## Emoji to Icon Mapping
|
|
24
|
-
|
|
25
|
-
The project includes automatic emoji to Phosphor icon conversion in markdown files. To add new emoji mappings:
|
|
26
|
-
|
|
27
|
-
### Adding New Emoji Mappings
|
|
28
|
-
|
|
29
|
-
1. **Location**: Edit `lib/emoji-mapper.js`
|
|
30
|
-
2. **Structure**: Add entries to the `emojiToPhosphor` object
|
|
31
|
-
3. **Format**: `'🏷️': '<i class="ph ph-tag" aria-label="tag"></i>'`
|
|
32
|
-
|
|
33
|
-
### Guidelines for New Mappings
|
|
34
|
-
|
|
35
|
-
- **Categorization**: Place emojis in appropriate sections (UI & Design, Actions & Navigation, etc.)
|
|
36
|
-
- **Icon Selection**: Use appropriate Phosphor icons from https://phosphoricons.com
|
|
37
|
-
- **Aria Labels**: Include descriptive aria-label attributes for accessibility
|
|
38
|
-
- **Semantic Matching**: Choose icons that best represent the emoji's meaning
|
|
39
|
-
|
|
40
|
-
### Example Addition
|
|
41
|
-
|
|
42
|
-
```javascript
|
|
43
|
-
// In the UI & Design section
|
|
44
|
-
'🏷️': '<i class="ph ph-tag" aria-label="tag"></i>',
|
|
45
|
-
'👁️': '<i class="ph ph-eye" aria-label="view"></i>',
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Available Phosphor Icon Weights
|
|
49
|
-
|
|
50
|
-
The system supports different icon weights via configuration:
|
|
51
|
-
- `regular` (default)
|
|
52
|
-
- `thin`
|
|
53
|
-
- `light`
|
|
54
|
-
- `bold`
|
|
55
|
-
- `fill`
|
|
56
|
-
- `duotone`
|
|
57
|
-
|
|
58
|
-
## Documentation Guidelines
|
|
59
|
-
|
|
60
|
-
- For this project documentation, do not include in each document:
|
|
61
|
-
- Generated timestamp
|
|
62
|
-
- Status field
|
|
63
|
-
- Verification status
|
|
64
|
-
- We do not want these metadata fields in the project documentation
|
|
65
|
-
|
|
66
|
-
## NPM Publishing
|
|
67
|
-
|
|
68
|
-
### Easy Publishing Workflow
|
|
69
|
-
|
|
70
|
-
The simple way to publish to npm:
|
|
71
|
-
|
|
72
|
-
1. **Update version** in `package.json`
|
|
73
|
-
2. **Commit changes**: `git add . && git commit -m "feat: description"`
|
|
74
|
-
3. **Publish**: `npm publish`
|
|
75
|
-
|
|
76
|
-
### Prerequisites
|
|
77
|
-
|
|
78
|
-
- Logged into npm: `npm whoami`
|
|
79
|
-
- Version not already published
|
|
80
|
-
- Working directory clean
|
|
81
|
-
|
|
82
|
-
### Notes
|
|
83
|
-
|
|
84
|
-
- Use `npm publish` directly instead of the interactive script
|
|
85
|
-
- No need for complex automation - npm handles everything
|
|
86
|
-
- Package automatically includes all necessary files via package.json
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# Contributing to Doc Builder
|
|
2
|
-
|
|
3
|
-
First off, thank you for considering contributing to Doc Builder! It's people like you that make Doc Builder such a great tool.
|
|
4
|
-
|
|
5
|
-
## Code of Conduct
|
|
6
|
-
|
|
7
|
-
By participating in this project, you are expected to uphold our [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
8
|
-
|
|
9
|
-
## How Can I Contribute?
|
|
10
|
-
|
|
11
|
-
### Reporting Bugs
|
|
12
|
-
|
|
13
|
-
Before creating bug reports, please check existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
|
|
14
|
-
|
|
15
|
-
* **Use a clear and descriptive title**
|
|
16
|
-
* **Describe the exact steps to reproduce the problem**
|
|
17
|
-
* **Provide specific examples to demonstrate the steps**
|
|
18
|
-
* **Describe the behavior you observed and expected**
|
|
19
|
-
* **Include screenshots if relevant**
|
|
20
|
-
* **Include your environment details** (OS, Node.js version, npm version)
|
|
21
|
-
|
|
22
|
-
### Suggesting Enhancements
|
|
23
|
-
|
|
24
|
-
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
|
|
25
|
-
|
|
26
|
-
* **Use a clear and descriptive title**
|
|
27
|
-
* **Provide a detailed description of the suggested enhancement**
|
|
28
|
-
* **Provide specific examples to demonstrate how it would work**
|
|
29
|
-
* **Describe the current behavior and expected behavior**
|
|
30
|
-
* **Explain why this enhancement would be useful**
|
|
31
|
-
|
|
32
|
-
### Your First Code Contribution
|
|
33
|
-
|
|
34
|
-
Unsure where to begin? You can start by looking through these issues:
|
|
35
|
-
|
|
36
|
-
* `good first issue` - issues which should only require a few lines of code
|
|
37
|
-
* `help wanted` - issues which need extra attention
|
|
38
|
-
|
|
39
|
-
### Pull Requests
|
|
40
|
-
|
|
41
|
-
1. Fork the repo and create your branch from `main`
|
|
42
|
-
2. If you've added code that should be tested, add tests
|
|
43
|
-
3. If you've changed APIs, update the documentation
|
|
44
|
-
4. Ensure the test suite passes
|
|
45
|
-
5. Make sure your code follows the existing style
|
|
46
|
-
6. Issue that pull request!
|
|
47
|
-
|
|
48
|
-
## Development Process
|
|
49
|
-
|
|
50
|
-
1. **Setup your environment**
|
|
51
|
-
```bash
|
|
52
|
-
git clone https://github.com/YOUR_USERNAME/doc-builder.git
|
|
53
|
-
cd doc-builder
|
|
54
|
-
npm install
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
2. **Create a branch**
|
|
58
|
-
```bash
|
|
59
|
-
git checkout -b feature/your-feature-name
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
3. **Make your changes**
|
|
63
|
-
- Write code
|
|
64
|
-
- Add tests if applicable
|
|
65
|
-
- Update documentation
|
|
66
|
-
|
|
67
|
-
4. **Test your changes**
|
|
68
|
-
```bash
|
|
69
|
-
npm test
|
|
70
|
-
npm run build
|
|
71
|
-
npm run dev
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
5. **Commit your changes**
|
|
75
|
-
```bash
|
|
76
|
-
git add .
|
|
77
|
-
git commit -m "feat: add amazing feature"
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
We follow [Conventional Commits](https://www.conventionalcommits.org/):
|
|
81
|
-
- `feat:` new feature
|
|
82
|
-
- `fix:` bug fix
|
|
83
|
-
- `docs:` documentation changes
|
|
84
|
-
- `style:` formatting, missing semicolons, etc
|
|
85
|
-
- `refactor:` code change that neither fixes a bug nor adds a feature
|
|
86
|
-
- `test:` adding missing tests
|
|
87
|
-
- `chore:` maintain
|
|
88
|
-
|
|
89
|
-
6. **Push to your fork**
|
|
90
|
-
```bash
|
|
91
|
-
git push origin feature/your-feature-name
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
7. **Open a Pull Request**
|
|
95
|
-
|
|
96
|
-
## Style Guide
|
|
97
|
-
|
|
98
|
-
### JavaScript Style Guide
|
|
99
|
-
|
|
100
|
-
* Use ES6+ features where appropriate
|
|
101
|
-
* 2 spaces for indentation
|
|
102
|
-
* Use semicolons
|
|
103
|
-
* Use `const` and `let`, avoid `var`
|
|
104
|
-
* Use meaningful variable names
|
|
105
|
-
* Add comments for complex logic
|
|
106
|
-
|
|
107
|
-
### Documentation Style Guide
|
|
108
|
-
|
|
109
|
-
* Use Markdown for all documentation
|
|
110
|
-
* Include code examples where relevant
|
|
111
|
-
* Keep line length to 80 characters where possible
|
|
112
|
-
* Use present tense ("Add feature" not "Added feature")
|
|
113
|
-
|
|
114
|
-
## Testing
|
|
115
|
-
|
|
116
|
-
* Write tests for new features
|
|
117
|
-
* Ensure all tests pass before submitting PR
|
|
118
|
-
* Aim for high code coverage
|
|
119
|
-
* Test edge cases
|
|
120
|
-
|
|
121
|
-
## Project Structure
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
doc-builder/
|
|
125
|
-
├── assets/ # Static assets
|
|
126
|
-
├── lib/ # Core library code
|
|
127
|
-
├── scripts/ # Build and utility scripts
|
|
128
|
-
├── templates/ # HTML templates
|
|
129
|
-
├── test/ # Test files
|
|
130
|
-
├── docs/ # Documentation
|
|
131
|
-
└── cli.js # CLI entry point
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Release Process
|
|
135
|
-
|
|
136
|
-
Maintainers will handle releases, but for reference:
|
|
137
|
-
|
|
138
|
-
1. Update version in `package.json`
|
|
139
|
-
2. Update `CHANGELOG.md`
|
|
140
|
-
3. Commit changes
|
|
141
|
-
4. Tag release
|
|
142
|
-
5. Push to npm
|
|
143
|
-
|
|
144
|
-
## Questions?
|
|
145
|
-
|
|
146
|
-
Feel free to open an issue with your question or reach out to the maintainers.
|
|
147
|
-
|
|
148
|
-
Thank you for contributing! 🎉
|
package/GITHUB_SETUP.md
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
# GitHub Repository Setup Instructions
|
|
2
|
-
|
|
3
|
-
This guide will walk you through setting up the doc-builder project on GitHub.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
- GitHub account
|
|
8
|
-
- Git installed locally
|
|
9
|
-
- Command line access
|
|
10
|
-
|
|
11
|
-
## Step 1: Create GitHub Repository
|
|
12
|
-
|
|
13
|
-
1. Go to https://github.com/new
|
|
14
|
-
2. Repository settings:
|
|
15
|
-
- **Repository name**: `doc-builder`
|
|
16
|
-
- **Description**: `Transform markdown into beautiful documentation sites with one-command Vercel deployment`
|
|
17
|
-
- **Public** repository (for open source)
|
|
18
|
-
- **DO NOT** initialize with README, .gitignore, or license (we already have these)
|
|
19
|
-
|
|
20
|
-
3. Click "Create repository"
|
|
21
|
-
|
|
22
|
-
## Step 2: Update Local Git Configuration
|
|
23
|
-
|
|
24
|
-
First, let's check the current remote:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
git remote -v
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
You'll see it points to a local directory. We need to change this to GitHub.
|
|
31
|
-
|
|
32
|
-
## Step 3: Add GitHub as Remote
|
|
33
|
-
|
|
34
|
-
Since your repository is at https://github.com/wapdat/doc-builder:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
# Remove the existing remote
|
|
38
|
-
git remote remove origin
|
|
39
|
-
|
|
40
|
-
# Add GitHub as the new origin
|
|
41
|
-
git remote add origin https://github.com/wapdat/doc-builder.git
|
|
42
|
-
|
|
43
|
-
# Verify the change
|
|
44
|
-
git remote -v
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Step 4: Push to GitHub
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
# Push all branches and tags
|
|
51
|
-
git push -u origin main
|
|
52
|
-
git push --tags
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Step 5: Configure Repository Settings
|
|
56
|
-
|
|
57
|
-
On GitHub, go to Settings and configure:
|
|
58
|
-
|
|
59
|
-
### General Settings
|
|
60
|
-
- **Features**: Enable Issues, Projects, and Discussions
|
|
61
|
-
- **Pull Requests**: Allow merge commits, squash merging, and rebase merging
|
|
62
|
-
|
|
63
|
-
### Branch Protection (Settings → Branches)
|
|
64
|
-
For the `main` branch:
|
|
65
|
-
- [ ] Require pull request reviews before merging
|
|
66
|
-
- [ ] Dismiss stale pull request approvals
|
|
67
|
-
- [ ] Require status checks to pass
|
|
68
|
-
- [ ] Include administrators
|
|
69
|
-
|
|
70
|
-
### Pages (optional, for documentation)
|
|
71
|
-
- Source: Deploy from a branch
|
|
72
|
-
- Branch: main
|
|
73
|
-
- Folder: /docs
|
|
74
|
-
|
|
75
|
-
### Topics
|
|
76
|
-
Add these topics to help people discover your project:
|
|
77
|
-
- `documentation`
|
|
78
|
-
- `markdown`
|
|
79
|
-
- `static-site-generator`
|
|
80
|
-
- `vercel`
|
|
81
|
-
- `notion`
|
|
82
|
-
- `developer-tools`
|
|
83
|
-
- `nodejs`
|
|
84
|
-
- `npm-package`
|
|
85
|
-
|
|
86
|
-
## Step 6: Add Badges to README
|
|
87
|
-
|
|
88
|
-
Update your README.md to include GitHub badges:
|
|
89
|
-
|
|
90
|
-
```markdown
|
|
91
|
-
[](https://www.npmjs.com/package/@knowcode/doc-builder)
|
|
92
|
-
[](https://opensource.org/licenses/MIT)
|
|
93
|
-
[](https://github.com/wapdat/doc-builder/stargazers)
|
|
94
|
-
[](https://github.com/wapdat/doc-builder/issues)
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Step 7: Create Initial Release
|
|
98
|
-
|
|
99
|
-
1. Go to https://github.com/wapdat/doc-builder/releases
|
|
100
|
-
2. Click "Create a new release"
|
|
101
|
-
3. Tag version: `v1.5.21`
|
|
102
|
-
4. Release title: `v1.5.21 - Stable Release`
|
|
103
|
-
5. Description:
|
|
104
|
-
```markdown
|
|
105
|
-
## Doc Builder v1.5.21
|
|
106
|
-
|
|
107
|
-
First public release of Doc Builder on GitHub!
|
|
108
|
-
|
|
109
|
-
### Features
|
|
110
|
-
- ✨ Notion-inspired design
|
|
111
|
-
- 🚀 One-command Vercel deployment
|
|
112
|
-
- 🔍 Built-in search functionality
|
|
113
|
-
- 🌓 Dark mode support
|
|
114
|
-
- 📊 Mermaid diagram integration
|
|
115
|
-
- 🔐 Password protection option
|
|
116
|
-
|
|
117
|
-
### Installation
|
|
118
|
-
```bash
|
|
119
|
-
npm install -g @knowcode/doc-builder
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Quick Start
|
|
123
|
-
```bash
|
|
124
|
-
npx @knowcode/doc-builder@latest deploy
|
|
125
|
-
```
|
|
126
|
-
```
|
|
127
|
-
6. Click "Publish release"
|
|
128
|
-
|
|
129
|
-
## Step 8: Set Up GitHub Actions (Optional)
|
|
130
|
-
|
|
131
|
-
Create `.github/workflows/npm-publish.yml`:
|
|
132
|
-
|
|
133
|
-
```yaml
|
|
134
|
-
name: Publish to NPM
|
|
135
|
-
|
|
136
|
-
on:
|
|
137
|
-
release:
|
|
138
|
-
types: [created]
|
|
139
|
-
|
|
140
|
-
jobs:
|
|
141
|
-
publish:
|
|
142
|
-
runs-on: ubuntu-latest
|
|
143
|
-
steps:
|
|
144
|
-
- uses: actions/checkout@v4
|
|
145
|
-
- uses: actions/setup-node@v4
|
|
146
|
-
with:
|
|
147
|
-
node-version: '20'
|
|
148
|
-
registry-url: 'https://registry.npmjs.org'
|
|
149
|
-
- run: npm ci
|
|
150
|
-
- run: npm test
|
|
151
|
-
- run: npm publish
|
|
152
|
-
env:
|
|
153
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
To use this:
|
|
157
|
-
1. Get npm token from https://www.npmjs.com/settings/YOUR_NPM_USERNAME/tokens
|
|
158
|
-
2. Add as secret in GitHub: Settings → Secrets → Actions → New repository secret
|
|
159
|
-
3. Name: `NPM_TOKEN`
|
|
160
|
-
|
|
161
|
-
## Step 9: Update Package.json
|
|
162
|
-
|
|
163
|
-
Add GitHub repository info to package.json:
|
|
164
|
-
|
|
165
|
-
```json
|
|
166
|
-
"repository": {
|
|
167
|
-
"type": "git",
|
|
168
|
-
"url": "git+https://github.com/wapdat/doc-builder.git"
|
|
169
|
-
},
|
|
170
|
-
"bugs": {
|
|
171
|
-
"url": "https://github.com/wapdat/doc-builder/issues"
|
|
172
|
-
},
|
|
173
|
-
"homepage": "https://github.com/wapdat/doc-builder#readme"
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
## Step 10: Announce the Repository
|
|
177
|
-
|
|
178
|
-
Once everything is set up:
|
|
179
|
-
|
|
180
|
-
1. Update the demo site to link to GitHub
|
|
181
|
-
2. Update npm package to include repository link
|
|
182
|
-
3. Share on social media
|
|
183
|
-
4. Submit to awesome lists
|
|
184
|
-
5. Post in relevant communities
|
|
185
|
-
|
|
186
|
-
## Maintenance Tips
|
|
187
|
-
|
|
188
|
-
- Respond to issues promptly
|
|
189
|
-
- Review pull requests within a week
|
|
190
|
-
- Keep dependencies updated
|
|
191
|
-
- Tag releases consistently
|
|
192
|
-
- Maintain a clear roadmap
|
|
193
|
-
- Acknowledge contributors
|
|
194
|
-
|
|
195
|
-
## Next Steps
|
|
196
|
-
|
|
197
|
-
1. [ ] Create a GitHub Project board for roadmap
|
|
198
|
-
2. [ ] Set up GitHub Discussions for community
|
|
199
|
-
3. [ ] Add GitHub Sponsors if desired
|
|
200
|
-
4. [ ] Create GitHub Wiki for extended docs
|
|
201
|
-
5. [ ] Set up automated testing with GitHub Actions
|
|
202
|
-
|
|
203
|
-
The repository is configured for https://github.com/wapdat/doc-builder
|
package/RELEASE-NOTES-1.7.5.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Release Notes - v1.7.5
|
|
2
|
-
|
|
3
|
-
## 🎉 Major Change: Authentication is Now Optional by Default!
|
|
4
|
-
|
|
5
|
-
Starting with v1.7.5, @knowcode/doc-builder defaults to creating **public documentation sites** without authentication. This aligns with the most common use case and makes it even easier to get started.
|
|
6
|
-
|
|
7
|
-
### What's New
|
|
8
|
-
|
|
9
|
-
#### 🔓 No Authentication by Default
|
|
10
|
-
- Documentation sites are now public by default
|
|
11
|
-
- No configuration needed for public docs
|
|
12
|
-
- Authentication must be explicitly enabled when needed
|
|
13
|
-
|
|
14
|
-
#### 🚀 New CLI Flags
|
|
15
|
-
- `--no-auth` flag for both build and deploy commands
|
|
16
|
-
- Override any authentication settings in your config
|
|
17
|
-
- Perfect for quick public deployments
|
|
18
|
-
|
|
19
|
-
### Examples
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# Deploy public documentation (default behavior)
|
|
23
|
-
npx @knowcode/doc-builder deploy
|
|
24
|
-
|
|
25
|
-
# Force public deployment even if config has auth
|
|
26
|
-
npx @knowcode/doc-builder deploy --no-auth
|
|
27
|
-
|
|
28
|
-
# Enable authentication in config
|
|
29
|
-
# doc-builder.config.js
|
|
30
|
-
module.exports = {
|
|
31
|
-
features: {
|
|
32
|
-
authentication: 'supabase' // Explicitly enable
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Migration Guide
|
|
38
|
-
|
|
39
|
-
#### If you want PUBLIC documentation:
|
|
40
|
-
No changes needed! Your sites are now public by default.
|
|
41
|
-
|
|
42
|
-
#### If you want PRIVATE documentation:
|
|
43
|
-
Add this to your config:
|
|
44
|
-
```javascript
|
|
45
|
-
features: {
|
|
46
|
-
authentication: 'supabase'
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Why This Change?
|
|
51
|
-
|
|
52
|
-
- Most documentation should be publicly accessible
|
|
53
|
-
- Reduces friction for new users
|
|
54
|
-
- Makes the tool more intuitive
|
|
55
|
-
- Authentication becomes an intentional choice
|
|
56
|
-
|
|
57
|
-
### Full Changelog
|
|
58
|
-
|
|
59
|
-
- **Changed**: Authentication disabled by default in all configurations
|
|
60
|
-
- **Added**: `--no-auth` flags for build and deploy commands
|
|
61
|
-
- **Improved**: Simplified configuration prompts
|
|
62
|
-
- **Docs**: Added public site deployment guide
|
|
63
|
-
|
|
64
|
-
This is a breaking change, but one that makes the tool simpler and more aligned with common use cases.
|
|
Binary file
|
|
Binary file
|