@knowcode/doc-builder 1.9.30 → 1.10.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.
Files changed (198) hide show
  1. package/lib/core-builder.js +164 -174
  2. package/lib/emoji-mapper.js +27 -12
  3. package/package.json +12 -2
  4. package/.claude/settings.local.json +0 -56
  5. package/CACHE-BUSTING-GUIDE.md +0 -82
  6. package/CLAUDE.md +0 -86
  7. package/CONTRIBUTING.md +0 -148
  8. package/GITHUB_SETUP.md +0 -203
  9. package/RELEASE-NOTES-1.7.5.md +0 -64
  10. package/Screenshot 2025-07-22 at 19.51.21.png +0 -0
  11. package/Screenshot 2025-07-26 at 17.06.49.png +0 -0
  12. package/add-user-clive.sql +0 -35
  13. package/add-user-lindsay-fixed.sql +0 -85
  14. package/add-user-lindsay.sql +0 -68
  15. package/add-user-pmorgan.sql +0 -35
  16. package/add-user-robbie.sql +0 -35
  17. package/add-wru-users.sql +0 -105
  18. package/debug-login.sql +0 -30
  19. package/doc-builder.config.js +0 -126
  20. package/doc-builder.config.js.backup.1753793768283 +0 -47
  21. package/doc-builder.config.js.backup.1753803964423 +0 -114
  22. package/doc-builder.config.js.backup.1753945707032 +0 -115
  23. package/doc-builder.config.js.backup.1754059241330 +0 -115
  24. package/doc-builder.config.js.backup.1754119567787 +0 -123
  25. package/doc-builder.config.js.backup.1754120048862 +0 -124
  26. package/doc-builder.config.js.backup.1754120529913 +0 -124
  27. package/doc-builder.config.js.backup.1754218469785 +0 -124
  28. package/doc-builder.config.js.backup.1754384764054 +0 -124
  29. package/doc-builder.config.js.backup.1754567425847 +0 -124
  30. package/doc-builder.config.js.backup.1754568137859 +0 -126
  31. package/doc-builder.config.js.backup.1754569388252 +0 -126
  32. package/doc-builder.config.js.backup.1754576694123 +0 -126
  33. package/doc-builder.config.js.backup.1755031374829 +0 -126
  34. package/doc-builder.config.js.backup.1755034500990 +0 -126
  35. package/doc-builder.config.js.backup.1755034809236 +0 -126
  36. package/grant-access.sql +0 -15
  37. package/html/11.png +0 -0
  38. package/html/404.html +0 -115
  39. package/html/README.html +0 -522
  40. package/html/Screenshot 2025-08-12 at 21.35.07.png +0 -0
  41. package/html/about-doc-builder.html +0 -491
  42. package/html/auth.js +0 -157
  43. package/html/claude-workflow-guide.html +0 -525
  44. package/html/css/notion-style.css +0 -2502
  45. package/html/documentation-index.html +0 -471
  46. package/html/guides/authentication-default-change.html +0 -370
  47. package/html/guides/authentication-guide.html +0 -509
  48. package/html/guides/cache-control-anti-pattern.html +0 -361
  49. package/html/guides/claude-workflow-guide.html +0 -1074
  50. package/html/guides/configuration-guide.html +0 -472
  51. package/html/guides/document-standards.html +0 -518
  52. package/html/guides/documentation-standards.html +0 -694
  53. package/html/guides/html-embedding-guide.html +0 -461
  54. package/html/guides/image-modal-guide.html +0 -515
  55. package/html/guides/next-steps-walkthrough.html +0 -638
  56. package/html/guides/phosphor-icons-guide.html +0 -584
  57. package/html/guides/private-directory-authentication-troubleshooting.html +0 -555
  58. package/html/guides/private-directory-authentication.html +0 -541
  59. package/html/guides/public-site-deployment.html +0 -431
  60. package/html/guides/search-engine-verification-guide.html +0 -542
  61. package/html/guides/seo-guide.html +0 -661
  62. package/html/guides/seo-optimization-guide.html +0 -887
  63. package/html/guides/supabase-auth-implementation-plan.html +0 -543
  64. package/html/guides/supabase-auth-integration-plan.html +0 -671
  65. package/html/guides/supabase-auth-setup-guide.html +0 -498
  66. package/html/guides/supabase-authentication-complete-guide.html +0 -866
  67. package/html/guides/troubleshooting-guide.html +0 -633
  68. package/html/guides/vercel-deployment-auth-setup.html +0 -337
  69. package/html/guides/windows-setup-guide.html +0 -859
  70. package/html/image-modal-test.html +0 -318
  71. package/html/index.html +0 -522
  72. package/html/js/auth.js +0 -157
  73. package/html/js/main.js +0 -1754
  74. package/html/launch/README.html +0 -297
  75. package/html/launch/bubble-plugin-specification.html +0 -933
  76. package/html/launch/go-to-market-strategy.html +0 -663
  77. package/html/launch/launch-announcements.html +0 -593
  78. package/html/login.html +0 -102
  79. package/html/logout.html +0 -18
  80. package/html/private/cache-control-anti-pattern.html +0 -429
  81. package/html/private/launch/README.html +0 -371
  82. package/html/private/launch/auth-cleanup-summary.html +0 -361
  83. package/html/private/launch/bubble-plugin-specification.html +0 -1007
  84. package/html/private/launch/go-to-market-strategy.html +0 -737
  85. package/html/private/launch/launch-announcements.html +0 -667
  86. package/html/private/launch/vercel-deployment-auth-setup.html +0 -417
  87. package/html/private/next-steps-walkthrough.html +0 -679
  88. package/html/private/supabase-auth-implementation-completed.html +0 -454
  89. package/html/private/supabase-auth-implementation-plan.html +0 -594
  90. package/html/private/supabase-auth-integration-plan.html +0 -704
  91. package/html/private/supabase-auth-setup-guide.html +0 -555
  92. package/html/private/test-private-doc.html +0 -302
  93. package/html/private/user-management-tooling.html +0 -601
  94. package/html/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
  95. package/html/prompts/beautiful-documentation-design.html +0 -784
  96. package/html/prompts/markdown-document-standards.html +0 -422
  97. package/html/prompts/project-rename-strategy-sasha-publish.html +0 -530
  98. package/html/robots.txt +0 -9
  99. package/html/sitemap.xml +0 -357
  100. package/html/test-questions/how-does-it-work%3F.html +0 -294
  101. package/html/test-questions/step-1%3A%20getting-started.html +0 -289
  102. package/html/test-questions/what-is-the-purpose.html +0 -293
  103. package/html/test-status.html +0 -281
  104. package/html/vercel-cli-setup-guide.html +0 -495
  105. package/html/vercel-first-time-setup-guide.html +0 -454
  106. package/html/vercel.json +0 -29
  107. package/html-static/11.png +0 -0
  108. package/html-static/404.html +0 -115
  109. package/html-static/README.html +0 -609
  110. package/html-static/Screenshot 2025-08-12 at 21.35.07.png +0 -0
  111. package/html-static/about-doc-builder.html +0 -578
  112. package/html-static/css/notion-style.css +0 -2502
  113. package/html-static/documentation-index.html +0 -558
  114. package/html-static/guides/authentication-default-change.html +0 -457
  115. package/html-static/guides/authentication-guide.html +0 -596
  116. package/html-static/guides/claude-workflow-guide.html +0 -1161
  117. package/html-static/guides/configuration-guide.html +0 -559
  118. package/html-static/guides/documentation-standards.html +0 -781
  119. package/html-static/guides/html-embedding-guide.html +0 -548
  120. package/html-static/guides/image-modal-guide.html +0 -602
  121. package/html-static/guides/phosphor-icons-guide.html +0 -671
  122. package/html-static/guides/private-directory-authentication-troubleshooting.html +0 -642
  123. package/html-static/guides/private-directory-authentication.html +0 -628
  124. package/html-static/guides/public-site-deployment.html +0 -518
  125. package/html-static/guides/search-engine-verification-guide.html +0 -629
  126. package/html-static/guides/seo-guide.html +0 -748
  127. package/html-static/guides/seo-optimization-guide.html +0 -974
  128. package/html-static/guides/supabase-authentication-complete-guide.html +0 -953
  129. package/html-static/guides/troubleshooting-guide.html +0 -720
  130. package/html-static/guides/windows-setup-guide.html +0 -946
  131. package/html-static/image-modal-test.html +0 -405
  132. package/html-static/index.html +0 -609
  133. package/html-static/js/main.js +0 -1754
  134. package/html-static/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
  135. package/html-static/prompts/beautiful-documentation-design.html +0 -871
  136. package/html-static/prompts/markdown-document-standards.html +0 -509
  137. package/html-static/prompts/project-rename-strategy-sasha-publish.html +0 -617
  138. package/html-static/robots.txt +0 -5
  139. package/html-static/sitemap.xml +0 -195
  140. package/html-static/test-questions/how-does-it-work%3F.html +0 -381
  141. package/html-static/test-questions/step-1%3A%20getting-started.html +0 -376
  142. package/html-static/test-questions/what-is-the-purpose.html +0 -380
  143. package/html-static/vercel-cli-setup-guide.html +0 -582
  144. package/html-static/vercel-first-time-setup-guide.html +0 -541
  145. package/manage-users.sql +0 -191
  146. package/migrate-to-domain-auth.sql +0 -47
  147. package/package/CACHE-BUSTING-GUIDE.md +0 -82
  148. package/package/CHANGELOG.md +0 -902
  149. package/package/README.md +0 -248
  150. package/package/assets/css/notion-style.css +0 -2211
  151. package/package/assets/js/auth.js +0 -67
  152. package/package/assets/js/main.js +0 -1565
  153. package/package/cli.js +0 -764
  154. package/package/index.js +0 -38
  155. package/package/knowcode-doc-builder-1.3.15.tgz +0 -0
  156. package/package/lib/builder.js +0 -32
  157. package/package/lib/config.js +0 -278
  158. package/package/lib/core-builder.js +0 -957
  159. package/package/lib/deploy.js +0 -497
  160. package/package/lib/dev-server.js +0 -96
  161. package/package/package.json +0 -34
  162. package/package/scripts/npx-runner.js +0 -27
  163. package/package/scripts/setup.js +0 -56
  164. package/package/test-cache-bust.sh +0 -43
  165. package/public-config.js +0 -22
  166. package/public-html/404.html +0 -115
  167. package/public-html/README.html +0 -149
  168. package/public-html/css/notion-style.css +0 -2036
  169. package/public-html/index.html +0 -149
  170. package/public-html/js/auth.js +0 -67
  171. package/public-html/js/main.js +0 -1485
  172. package/quick-test-commands.md +0 -40
  173. package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
  174. package/recordings/mh-ls-22jul.txt +0 -2305
  175. package/screenshot.png +0 -0
  176. package/scripts/Screenshot 2025-07-23 at 15.39.41.png +0 -0
  177. package/setup-database-v2.sql +0 -53
  178. package/setup-database.sql +0 -41
  179. package/test-auth-config.js +0 -17
  180. package/test-cache-bust.sh +0 -43
  181. package/test-docs/README.md +0 -39
  182. package/test-html/404.html +0 -115
  183. package/test-html/README.html +0 -172
  184. package/test-html/auth.js +0 -97
  185. package/test-html/css/notion-style.css +0 -2036
  186. package/test-html/index.html +0 -172
  187. package/test-html/js/auth.js +0 -97
  188. package/test-html/js/main.js +0 -1485
  189. package/test-html/login.html +0 -102
  190. package/test-html/logout.html +0 -18
  191. package/update-domain.sql +0 -9
  192. package/user-access-view.sql +0 -49
  193. package/user-management/README.md +0 -301
  194. package/user-management/add-users.sh +0 -776
  195. package/user-management/create-user.js +0 -65
  196. package/user-management/users.txt +0 -15
  197. package/view-all-users.sql +0 -40
  198. package/wru-auth-config.js +0 -17
package/package/README.md DELETED
@@ -1,248 +0,0 @@
1
- # @knowcode/doc-builder
2
-
3
- A zero-configuration documentation builder for markdown-based sites with Vercel deployment support.
4
-
5
- ## What It Does
6
-
7
- @knowcode/doc-builder transforms your markdown files into beautiful, static documentation websites. It:
8
-
9
- - **Scans** your markdown files and automatically generates navigation
10
- - **Converts** markdown to HTML with syntax highlighting and diagram support
11
- - **Styles** everything with a clean, Notion-inspired theme
12
- - **Deploys** to Vercel with a single command - no configuration needed
13
- - **Provides** optional features like authentication, dark mode, and changelog generation
14
-
15
- Perfect for project documentation, API references, knowledge bases, or any content written in markdown.
16
-
17
- ## Features
18
-
19
- - 🚀 **Zero Configuration** - Works out of the box with sensible defaults
20
- - 📝 **Markdown Support** - Write docs in markdown with full GitHub Flavored Markdown support
21
- - 🎨 **Beautiful Default Theme** - Clean, responsive design inspired by Notion
22
- - 🔐 **Optional Authentication** - Password-protect your documentation
23
- - 📊 **Mermaid Diagrams** - Built-in support for diagrams and charts
24
- - 🌙 **Dark Mode** - Automatic dark mode support
25
- - 🔄 **Live Reload** - Development server with hot reloading
26
- - ☁️ **Vercel Integration** - One-command deployment to Vercel
27
- - 📦 **Self-Contained** - No configuration or setup required
28
-
29
- ## Quick Start
30
-
31
- No installation needed! Just run:
32
-
33
- ```bash
34
- # Build and deploy to Vercel
35
- npx @knowcode/doc-builder deploy
36
-
37
- # Other available commands:
38
- npx @knowcode/doc-builder build # Build HTML files only
39
- npx @knowcode/doc-builder dev # Start development server
40
- npx @knowcode/doc-builder # Show help (default behavior)
41
- ```
42
-
43
- ## Installation (Optional)
44
-
45
- For faster execution and offline use:
46
-
47
- ```bash
48
- npm install --save-dev @knowcode/doc-builder
49
- ```
50
-
51
- Then use shorter commands:
52
- ```bash
53
- doc-builder build
54
- doc-builder dev
55
- doc-builder deploy
56
- ```
57
-
58
- ## First-Time Vercel Deployment
59
-
60
- When deploying for the first time, doc-builder will:
61
-
62
- 1. Check if Vercel CLI is installed
63
- 2. Guide you through project setup
64
- 3. Create `vercel.json` configuration
65
- 4. Link your project to Vercel
66
- 5. Show important reminders about Vercel settings
67
-
68
- ### Important Vercel Settings
69
-
70
- After deployment, go to your Vercel dashboard:
71
-
72
- 1. Navigate to **Project Settings > General**
73
- 2. Under **Security**, find **Deployment Protection**
74
- 3. Set to **Disabled** for public access
75
- 4. Or configure authentication for private docs
76
-
77
- ## Configuration
78
-
79
- Create `doc-builder.config.js` in your project root:
80
-
81
- ```javascript
82
- module.exports = {
83
- // Directories
84
- docsDir: 'docs',
85
- outputDir: 'html',
86
-
87
- // Site info
88
- siteName: 'My Documentation',
89
- siteDescription: 'Documentation for my project',
90
-
91
- // Features
92
- features: {
93
- authentication: true,
94
- changelog: true,
95
- mermaid: true,
96
- darkMode: true
97
- },
98
-
99
- // Authentication
100
- auth: {
101
- username: 'admin',
102
- password: 'secret'
103
- }
104
- };
105
- ```
106
-
107
- ## Presets
108
-
109
- Use the `notion-inspired` preset for a clean, modern documentation style:
110
-
111
- ```bash
112
- npx @knowcode/doc-builder build --preset notion-inspired
113
- ```
114
-
115
- ## Commands
116
-
117
- ### build
118
- Build the documentation site to static HTML:
119
- ```bash
120
- doc-builder build [options]
121
-
122
- Options:
123
- -c, --config <path> Path to config file (default: "doc-builder.config.js")
124
- -i, --input <dir> Input directory containing markdown files (default: docs)
125
- -o, --output <dir> Output directory for HTML files (default: html)
126
- --preset <preset> Use a preset configuration (available: cybersolstice)
127
- --legacy Use legacy mode for backward compatibility
128
- --no-auth Disable authentication even if configured
129
- --no-changelog Disable automatic changelog generation
130
-
131
- Examples:
132
- doc-builder build # Build with defaults
133
- doc-builder build --input docs --output dist
134
- doc-builder build --preset notion-inspired # Use Notion-inspired preset
135
- doc-builder build --config my-config.js # Use custom config
136
- ```
137
-
138
- ### dev
139
- Start development server with live reload:
140
- ```bash
141
- doc-builder dev [options]
142
-
143
- Options:
144
- -c, --config <path> Path to config file (default: "doc-builder.config.js")
145
- -p, --port <port> Port to run dev server on (default: 3000)
146
- -h, --host <host> Host to bind to (default: localhost)
147
- --no-open Don't open browser automatically
148
-
149
- Examples:
150
- doc-builder dev # Start on http://localhost:3000
151
- doc-builder dev --port 8080 # Use custom port
152
- doc-builder dev --host 0.0.0.0 # Allow external connections
153
- ```
154
-
155
- ### deploy
156
- Deploy documentation to Vercel (requires Vercel CLI):
157
- ```bash
158
- doc-builder deploy [options]
159
-
160
- Options:
161
- -c, --config <path> Path to config file (default: "doc-builder.config.js")
162
- --prod Deploy to production (default: preview deployment)
163
- --no-build Skip building before deployment
164
- --force Force deployment without confirmation
165
-
166
- Examples:
167
- doc-builder deploy # Deploy preview to Vercel
168
- doc-builder deploy --prod # Deploy to production
169
- doc-builder deploy --no-build # Deploy existing build
170
-
171
- First-time setup:
172
- The tool will guide you through:
173
- 1. Installing Vercel CLI (if needed)
174
- 2. Creating a new Vercel project
175
- 3. Configuring deployment settings
176
-
177
- Important: After deployment, disable Vercel Authentication in project settings for public docs.
178
- ```
179
-
180
- ### init
181
- Initialize doc-builder in your project:
182
- ```bash
183
- doc-builder init [options]
184
-
185
- Options:
186
- --config Create configuration file
187
- --example Create example documentation structure
188
-
189
- Examples:
190
- doc-builder init --config # Create doc-builder.config.js
191
- doc-builder init --example # Create example docs folder
192
- ```
193
-
194
- ## Project Structure
195
-
196
- Your project should follow this structure:
197
-
198
- ```
199
- my-project/
200
- ├── docs/ # Markdown files
201
- │ ├── README.md
202
- │ ├── guide/
203
- │ └── api/
204
- ├── doc-builder.config.js # Configuration (optional)
205
- └── package.json
206
- ```
207
-
208
- ## Using in Other Projects
209
-
210
- ### Option 1: NPM Link (Development)
211
-
212
- While developing the doc-builder:
213
-
214
- ```bash
215
- # In doc-builder directory
216
- npm link
217
-
218
- # In your other project
219
- npm link @knowcode/doc-builder
220
- ```
221
-
222
- ### Option 2: File Reference
223
-
224
- In your project's `package.json`:
225
-
226
- ```json
227
- {
228
- "devDependencies": {
229
- "@knowcode/doc-builder": "file:../path/to/doc-builder"
230
- }
231
- }
232
- ```
233
-
234
- ### Option 3: Git Repository
235
-
236
- Once published:
237
-
238
- ```json
239
- {
240
- "devDependencies": {
241
- "@knowcode/doc-builder": "git+https://github.com/knowcode/doc-builder.git"
242
- }
243
- }
244
- ```
245
-
246
- ## License
247
-
248
- MIT