@knowcode/doc-builder 1.9.10 → 1.9.12

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 (49) hide show
  1. package/README.md +54 -9
  2. package/doc-builder.config.js +1 -1
  3. package/doc-builder.config.js.backup.1753945707032 +115 -0
  4. package/html/README.html +39 -28
  5. package/html/auth.js +17 -7
  6. package/html/documentation-index.html +14 -5
  7. package/html/guides/authentication-default-change.html +7 -3
  8. package/html/guides/authentication-guide.html +35 -15
  9. package/html/guides/claude-workflow-guide.html +14 -10
  10. package/html/guides/configuration-guide.html +443 -0
  11. package/html/guides/documentation-standards.html +11 -7
  12. package/html/guides/html-embedding-guide.html +17 -13
  13. package/html/guides/image-modal-guide.html +9 -5
  14. package/html/guides/phosphor-icons-guide.html +27 -23
  15. package/html/guides/private-directory-authentication-troubleshooting.html +21 -17
  16. package/html/guides/private-directory-authentication.html +7 -3
  17. package/html/guides/public-site-deployment.html +7 -3
  18. package/html/guides/search-engine-verification-guide.html +7 -3
  19. package/html/guides/seo-guide.html +7 -3
  20. package/html/guides/seo-optimization-guide.html +35 -31
  21. package/html/guides/supabase-authentication-complete-guide.html +860 -0
  22. package/html/guides/troubleshooting-guide.html +18 -14
  23. package/html/guides/windows-setup-guide.html +38 -34
  24. package/html/image-modal-test.html +7 -3
  25. package/html/index.html +39 -28
  26. package/html/js/auth.js +17 -7
  27. package/html/private/cache-control-anti-pattern.html +12 -8
  28. package/html/private/launch/README.html +15 -11
  29. package/html/private/launch/auth-cleanup-summary.html +24 -20
  30. package/html/private/launch/bubble-plugin-specification.html +7 -3
  31. package/html/private/launch/go-to-market-strategy.html +9 -5
  32. package/html/private/launch/launch-announcements.html +23 -19
  33. package/html/private/launch/vercel-deployment-auth-setup.html +9 -5
  34. package/html/private/next-steps-walkthrough.html +14 -10
  35. package/html/private/supabase-auth-implementation-completed.html +20 -16
  36. package/html/private/supabase-auth-implementation-plan.html +13 -9
  37. package/html/private/supabase-auth-integration-plan.html +19 -15
  38. package/html/private/supabase-auth-setup-guide.html +16 -12
  39. package/html/private/test-private-doc.html +7 -3
  40. package/html/private/user-management-tooling.html +7 -3
  41. package/html/prompts/beautiful-documentation-design.html +778 -0
  42. package/html/prompts/markdown-document-standards.html +11 -7
  43. package/html/sitemap.xml +69 -51
  44. package/html/vercel-cli-setup-guide.html +10 -6
  45. package/html/vercel-first-time-setup-guide.html +7 -3
  46. package/lib/core-builder.js +27 -8
  47. package/lib/emoji-mapper.js +3 -0
  48. package/lib/seo.js +2 -0
  49. package/package.json +1 -1
package/README.md CHANGED
@@ -230,22 +230,67 @@ module.exports = {
230
230
  };
231
231
  ```
232
232
 
233
- ### 🔐 Authentication Setup
233
+ ### 🔐 Supabase Authentication
234
234
 
235
- For secure documentation sites, use Supabase authentication:
235
+ Secure your documentation with enterprise-grade authentication powered by **Supabase**. Built-in credentials mean zero configuration required!
236
236
 
237
+ #### ✨ Authentication Features
238
+
239
+ | Feature | Description |
240
+ |---------|-------------|
241
+ | 🔐 **Enterprise Security** | JWT tokens, bcrypt hashing, Row Level Security |
242
+ | 🏗️ **Zero Configuration** | Built-in Supabase credentials - just enable and go |
243
+ | 🌐 **Domain-based Access** | No site registration needed - uses your domain automatically |
244
+ | 📁 **Private Directory Support** | `/private/` folders automatically protected |
245
+ | 👥 **Multi-user Management** | Unlimited users with fine-grained access control |
246
+ | 🔄 **Session Management** | Auto-refresh tokens, persistent sessions |
247
+ | 🎨 **Beautiful Login Pages** | Auto-generated login/logout pages with your theme |
248
+
249
+ #### 🚀 Quick Setup
250
+
251
+ **Option 1: Private Directory (Recommended)**
237
252
  ```bash
238
- # Initialize authentication
239
- npx @knowcode/doc-builder auth:init
253
+ # Create private folder - authentication automatically enabled!
254
+ mkdir docs/private
255
+ echo "# Secret Documentation" > docs/private/admin.md
256
+ npx @knowcode/doc-builder deploy
257
+ ```
258
+
259
+ **Option 2: Global Authentication**
260
+ ```javascript
261
+ // doc-builder.config.js
262
+ module.exports = {
263
+ features: {
264
+ authentication: 'supabase' // Protect entire site
265
+ }
266
+ };
267
+ ```
240
268
 
241
- # Add your site to database
242
- npx @knowcode/doc-builder auth:add-site --domain docs.example.com --name "My Docs"
269
+ #### 👥 User Management
243
270
 
244
- # Grant user access
245
- npx @knowcode/doc-builder auth:grant --email user@example.com --site-id xxx
271
+ ```bash
272
+ # Grant user access to your domain (SQL in Supabase dashboard)
273
+ INSERT INTO docbuilder_access (user_id, domain)
274
+ VALUES (
275
+ (SELECT id FROM auth.users WHERE email = 'user@example.com'),
276
+ 'your-docs-domain.vercel.app'
277
+ );
246
278
  ```
247
279
 
248
- See the [Supabase Authentication Guide](docs/guides/supabase-auth-setup-guide.md) for complete setup instructions.
280
+ #### 🔧 Authentication Modes
281
+
282
+ - **🌍 Global Auth**: Entire site requires login (`authentication: 'supabase'`)
283
+ - **📁 Private Directory**: Only `/private/` folders protected (automatic)
284
+ - **🔄 Hybrid**: Public docs + private sections (most flexible)
285
+
286
+ #### 📚 Complete Guide
287
+
288
+ See the [Complete Supabase Authentication Guide](docs/guides/authentication-guide.md) for:
289
+ - Detailed setup instructions
290
+ - Database schema setup
291
+ - User management workflows
292
+ - Security best practices
293
+ - Troubleshooting guide
249
294
 
250
295
  ### 📎 Attachment Support
251
296
 
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- "configVersion": "1.9.8",
2
+ "configVersion": "1.9.11",
3
3
  "docsDir": "docs",
4
4
  "outputDir": "html",
5
5
  "siteName": "@knowcode/doc-builder",
@@ -0,0 +1,115 @@
1
+ module.exports = {
2
+ "configVersion": "1.9.8",
3
+ "docsDir": "docs",
4
+ "outputDir": "html",
5
+ "siteName": "@knowcode/doc-builder",
6
+ "siteDescription": "Beautiful documentation with the least effort possible",
7
+ "favicon": "✨",
8
+ "features": {
9
+ "authentication": false,
10
+ "changelog": true,
11
+ "mermaid": true,
12
+ "tooltips": true,
13
+ "search": false,
14
+ "darkMode": true,
15
+ "phosphorIcons": true,
16
+ "phosphorWeight": "regular",
17
+ "phosphorSize": "1.2em",
18
+ "normalizeTitle": true,
19
+ "showPdfDownload": true,
20
+ "menuDefaultOpen": false,
21
+ "attachments": true,
22
+ "dynamicNavIcons": true,
23
+ "subtleColors": true,
24
+ "privateDirectoryAuth": false
25
+ },
26
+ "auth": {
27
+ "supabaseUrl": "https://xcihhnfcitjrwbynxmka.supabase.co",
28
+ "supabaseAnonKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhjaWhobmZjaXRqcndieW54bWthIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM0Mzc2MzcsImV4cCI6MjA2OTAxMzYzN30.zvWp3JFIR8fBIiwuFF5gqOR_Kxb42baZS5fsBz60XOY"
29
+ },
30
+ "changelog": {
31
+ "daysBack": 14,
32
+ "enabled": true
33
+ },
34
+ "folderOrder": [],
35
+ "folderDescriptions": {},
36
+ "folderIcons": {},
37
+ "deployment": {
38
+ "platform": "vercel",
39
+ "outputDirectory": "html"
40
+ },
41
+ "seo": {
42
+ "enabled": true,
43
+ "siteUrl": "https://doc-builder-delta.vercel.app",
44
+ "author": "Lindsay Smith",
45
+ "twitterHandle": "@planbbackups",
46
+ "language": "en-US",
47
+ "keywords": [
48
+ "documentation",
49
+ "markdown",
50
+ "static site generator",
51
+ "vercel",
52
+ "notion-style"
53
+ ],
54
+ "titleTemplate": "{pageTitle} | {siteName}",
55
+ "autoKeywords": true,
56
+ "keywordLimit": 7,
57
+ "descriptionFallback": "smart",
58
+ "organization": {
59
+ "name": "Knowcode Ltd",
60
+ "url": "https://knowcode.tech",
61
+ "logo": ""
62
+ },
63
+ "ogImage": "/og-default.png",
64
+ "generateSitemap": true,
65
+ "generateRobotsTxt": true,
66
+ "customMetaTags": [
67
+ {
68
+ "name": "google-site-verification",
69
+ "content": "FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ"
70
+ },
71
+ {
72
+ "name": "msvalidate.01",
73
+ "content": "B2D8C4C12C530D47AA962B24CAA09630"
74
+ }
75
+ ]
76
+ },
77
+ "attachmentTypes": [
78
+ ".pdf",
79
+ ".doc",
80
+ ".docx",
81
+ ".xls",
82
+ ".xlsx",
83
+ ".csv",
84
+ ".ppt",
85
+ ".pptx",
86
+ ".txt",
87
+ ".rtf",
88
+ ".html",
89
+ ".htm",
90
+ ".zip",
91
+ ".tar",
92
+ ".gz",
93
+ ".7z",
94
+ ".rar",
95
+ ".png",
96
+ ".jpg",
97
+ ".jpeg",
98
+ ".gif",
99
+ ".svg",
100
+ ".webp",
101
+ ".ico",
102
+ ".bmp",
103
+ ".json",
104
+ ".xml",
105
+ ".yaml",
106
+ ".yml",
107
+ ".toml",
108
+ ".mp4",
109
+ ".mp3",
110
+ ".wav",
111
+ ".avi",
112
+ ".mov"
113
+ ],
114
+ "productionUrl": "https://doc-builder-delta.vercel.app"
115
+ };
package/html/README.html CHANGED
@@ -6,6 +6,7 @@
6
6
  <meta name="description" content="&lt;div align=&quot;center&quot;&gt;">
7
7
  <title>@knowcode/doc-builder | @knowcode/doc-builder</title>
8
8
 
9
+ <meta name="generator" content="@knowcode/doc-builder by Knowcode Ltd">
9
10
  <meta name="author" content="Lindsay Smith">
10
11
  <meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, width, table">
11
12
  <meta name="robots" content="index, follow">
@@ -98,8 +99,8 @@
98
99
  "name": "Knowcode Ltd",
99
100
  "url": "https://knowcode.tech"
100
101
  },
101
- "datePublished": "2025-07-29T09:30:31.298Z",
102
- "dateModified": "2025-07-29T09:30:31.298Z",
102
+ "datePublished": "2025-07-31T07:08:27.327Z",
103
+ "dateModified": "2025-07-31T07:08:27.327Z",
103
104
  "mainEntityOfPage": {
104
105
  "@type": "WebPage",
105
106
  "@id": "https://doc-builder-delta.vercel.app/README.html"
@@ -132,7 +133,7 @@
132
133
 
133
134
  <div class="header-actions">
134
135
  <div class="deployment-info">
135
- <span class="deployment-date" title="Built with doc-builder v1.9.5">Last updated: Jul 29, 2025, 09:30 AM UTC</span>
136
+ <span class="deployment-date" title="Built with doc-builder v1.9.11">Last updated: Jul 31, 2025, 07:08 AM UTC</span>
136
137
  </div>
137
138
 
138
139
 
@@ -198,6 +199,7 @@
198
199
  <a href="/guides/authentication-default-change.html" class="nav-item" data-tooltip="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites."><i class="ph ph-file-text"></i> Authentication Default Change</a>
199
200
  <a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase - a secure, scalable authentication platform."><i class="ph ph-check-circle" style="color: #059669;"></i> Authentication Guide</a>
200
201
  <a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Claude Workflow Guide</a>
202
+ <a href="/guides/configuration-guide.html" class="nav-item" data-tooltip="This guide explains how @knowcode/doc-builder handles configuration files and settings."><i class="ph ph-check-circle" style="color: #059669;"></i> Configuration Guide</a>
201
203
  <a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Documentation Standards</a>
202
204
  <a href="/guides/html-embedding-guide.html" class="nav-item" data-tooltip="Starting from version 1.9.2, doc-builder treats HTML files ( and ) as attachments that are automatically copied to your output directory during the..."><i class="ph ph-check-circle" style="color: #059669;"></i> Html Embedding Guide</a>
203
205
  <a href="/guides/image-modal-guide.html" class="nav-item" data-tooltip="When users click on any image in your generated documentation, it opens in a professional modal overlay with: Full-screen viewing experience Smooth..."><i class="ph ph-check-circle" style="color: #059669;"></i> Image Modal Guide</a>
@@ -208,6 +210,7 @@
208
210
  <a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="ph ph-check-circle" style="color: #059669;"></i> Search Engine Verification Guide</a>
209
211
  <a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Guide</a>
210
212
  <a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="Comprehensive guide to optimizing documentation for search engines. Learn SEO best practices, use built-in features, and improve your rankings."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Optimization Guide</a>
213
+ <a href="/guides/supabase-authentication-complete-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes built-in Supabase authentication that provides enterprise-grade security with zero configuration."><i class="ph ph-check-circle" style="color: #059669;"></i> Supabase Authentication Complete Guide</a>
211
214
  <a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="ph ph-check-circle" style="color: #059669;"></i> Troubleshooting Guide</a>
212
215
  <a href="/guides/windows-setup-guide.html" class="nav-item" data-tooltip="This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel."><i class="ph ph-check-circle" style="color: #059669;"></i> Windows Setup Guide</a></div></div>
213
216
  <div class="nav-section private-nav" data-level="1">
@@ -239,6 +242,7 @@
239
242
  <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-chat-circle-dots"></i> Prompts
240
243
  </a>
241
244
  <div class="nav-content" id="nav-prompts-1">
245
+ <a href="/prompts/beautiful-documentation-design.html" class="nav-item" data-tooltip="🎨 Beautiful Documentation Design Guide."><i class="ph ph-check-circle" style="color: #059669;"></i> Beautiful Documentation Design</a>
242
246
  <a href="/prompts/markdown-document-standards.html" class="nav-item" data-tooltip="Detailed introduction to the topic..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Markdown Document Standards</a></div></div>
243
247
  </nav>
244
248
  <div class="resize-handle"></div>
@@ -254,26 +258,26 @@
254
258
  <p>Transform your markdown documentation into beautiful, searchable websites with Notion-inspired styling</p>
255
259
  </blockquote>
256
260
  <p><a href="https://www.npmjs.com/package/@knowcode/doc-builder"><img src="https://img.shields.io/npm/v/@knowcode/doc-builder" alt="npm version"></a><br><a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a></p>
257
- <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Quick Start</h3>
261
+ <h3><i style="font-size: 1.2em" class="ph ph-rocket-launch" aria-label="launch"></i> Quick Start</h3>
258
262
  <pre><code class="language-bash">npx @knowcode/doc-builder@latest deploy
259
263
  </code></pre>
260
264
  <p><a href="https://doc-builder-delta.vercel.app"><strong>You are looking at a demo</strong></a> | <a href="https://www.npmjs.com/package/@knowcode/doc-builder"><strong>NPM Package</strong></a> | <a href="https://github.com/wapdat/doc-builder"><strong>GitHub</strong></a></p>
261
265
  </div>
262
266
 
263
267
  <hr>
264
- <h2><i class="ph ph-sparkle" aria-label="special"></i> Features</h2>
268
+ <h2><i style="font-size: 1.2em" class="ph ph-sparkle" aria-label="special"></i> Features</h2>
265
269
  <table>
266
270
  <tr>
267
271
  <td width="50%">
268
272
 
269
- <h3><i class="ph ph-palette" aria-label="design"></i> Design &amp; UX</h3>
273
+ <h3><i style="font-size: 1.2em" class="ph ph-palette" aria-label="design"></i> Design &amp; UX</h3>
270
274
  <ul>
271
275
  <li><strong>Notion-inspired UI</strong> - Clean, modern interface</li>
272
276
  <li><strong>Dark mode support</strong> - Automatic theme switching</li>
273
277
  <li><strong>Responsive layout</strong> - Perfect on any device</li>
274
278
  <li><strong>Syntax highlighting</strong> - Beautiful code blocks</li>
275
279
  </ul>
276
- <h3><i class="ph ph-magnifying-glass" aria-label="search"></i> Navigation</h3>
280
+ <h3><i style="font-size: 1.2em" class="ph ph-magnifying-glass" aria-label="search"></i> Navigation</h3>
277
281
  <ul>
278
282
  <li><strong>Full-text search</strong> - Find anything instantly</li>
279
283
  <li><strong>Smart navigation</strong> - Hierarchical structure</li>
@@ -283,14 +287,14 @@
283
287
  </td>
284
288
  <td width="50%">
285
289
 
286
- <h3><i class="ph ph-chart-bar" aria-label="chart"></i> Content Support</h3>
290
+ <h3><i style="font-size: 1.2em" class="ph ph-chart-bar" aria-label="chart"></i> Content Support</h3>
287
291
  <ul>
288
292
  <li><strong>Mermaid diagrams</strong> - Visual documentation</li>
289
293
  <li><strong>GitHub markdown</strong> - Full GFM support</li>
290
294
  <li><strong>Interactive tooltips</strong> - Document previews</li>
291
295
  <li><strong>Version tracking</strong> - Build metadata</li>
292
296
  </ul>
293
- <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Deployment</h3>
297
+ <h3><i style="font-size: 1.2em" class="ph ph-rocket-launch" aria-label="launch"></i> Deployment</h3>
294
298
  <ul>
295
299
  <li><strong>One-command deploy</strong> - Push to Vercel</li>
296
300
  <li><strong>Static generation</strong> - Fast &amp; secure</li>
@@ -301,7 +305,7 @@
301
305
  </tr>
302
306
  </table>
303
307
 
304
- <h2><i class="ph ph-target" aria-label="goal"></i> Use Cases</h2>
308
+ <h2><i style="font-size: 1.2em" class="ph ph-target" aria-label="goal"></i> Use Cases</h2>
305
309
  <table>
306
310
  <tr>
307
311
  <td width="25%">
@@ -327,7 +331,7 @@
327
331
  </tr>
328
332
  </table>
329
333
 
330
- <h2><i class="ph ph-gear-six" aria-label="tools"></i> Simple Workflow</h2>
334
+ <h2><i style="font-size: 1.2em" class="ph ph-gear-six" aria-label="tools"></i> Simple Workflow</h2>
331
335
  <table>
332
336
  <tr>
333
337
  <td width="50%">
@@ -347,8 +351,15 @@
347
351
  </tr>
348
352
  </table>
349
353
 
350
- <h2><i class="ph ph-gear" aria-label="settings"></i> Configuration</h2>
354
+ <h2><i style="font-size: 1.2em" class="ph ph-gear" aria-label="settings"></i> Configuration</h2>
351
355
  <p>Configuration is fully managed through the CLI tools - no manual file editing required! The tool handles all settings automatically during setup and deployment.</p>
356
+ <h3><i style="font-size: 1.2em" class="ph ph-arrows-clockwise" aria-label="refresh"></i> Auto-Configuration</h3>
357
+ <ul>
358
+ <li><strong>Auto-creation</strong>: If no <code>doc-builder.config.js</code> exists, one is created with all default settings</li>
359
+ <li><strong>Auto-update</strong>: When upgrading versions, new features are automatically added to your config</li>
360
+ <li><strong>Safe migration</strong>: Your customizations are preserved while adding new defaults</li>
361
+ <li><strong>Backup protection</strong>: Config files are backed up before major updates</li>
362
+ </ul>
352
363
  <table>
353
364
  <tr>
354
365
  <td width="50%">
@@ -382,7 +393,7 @@ features: {
382
393
  </tr>
383
394
  </table>
384
395
 
385
- <h2><i class="ph ph-chart-bar" aria-label="chart"></i> Rich Content Examples</h2>
396
+ <h2><i style="font-size: 1.2em" class="ph ph-chart-bar" aria-label="chart"></i> Rich Content Examples</h2>
386
397
  <table>
387
398
  <tr>
388
399
  <td width="50%">
@@ -413,12 +424,12 @@ docBuilder.build({
413
424
  </tr>
414
425
  </table>
415
426
 
416
- <h2><i class="ph ph-star-four" aria-label="sparkle"></i> Why Choose doc-builder?</h2>
427
+ <h2><i style="font-size: 1.2em" class="ph ph-star-four" aria-label="sparkle"></i> Why Choose doc-builder?</h2>
417
428
  <table>
418
429
  <tr>
419
430
  <td width="33%">
420
431
 
421
- <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Performance</h3>
432
+ <h3><i style="font-size: 1.2em" class="ph ph-rocket-launch" aria-label="launch"></i> Performance</h3>
422
433
  <ul>
423
434
  <li><strong>Lightning fast</strong> - Static generation</li>
424
435
  <li><strong>SEO optimized</strong> - Search friendly</li>
@@ -427,7 +438,7 @@ docBuilder.build({
427
438
  </td>
428
439
  <td width="33%">
429
440
 
430
- <h3><i class="ph ph-gear-six" aria-label="tools"></i> Developer Experience</h3>
441
+ <h3><i style="font-size: 1.2em" class="ph ph-gear-six" aria-label="tools"></i> Developer Experience</h3>
431
442
  <ul>
432
443
  <li><strong>Zero config</strong> - Works instantly</li>
433
444
  <li><strong>Version control</strong> - Git-friendly</li>
@@ -436,7 +447,7 @@ docBuilder.build({
436
447
  </td>
437
448
  <td width="33%">
438
449
 
439
- <h3><i class="ph ph-money" aria-label="money"></i> Cost Effective</h3>
450
+ <h3><i style="font-size: 1.2em" class="ph ph-money" aria-label="money"></i> Cost Effective</h3>
440
451
  <ul>
441
452
  <li><strong>Free hosting</strong> - Vercel free tier</li>
442
453
  <li><strong>No vendor lock-in</strong> - Your content</li>
@@ -446,7 +457,7 @@ docBuilder.build({
446
457
  </tr>
447
458
  </table>
448
459
 
449
- <h2><i class="ph ph-handshake" aria-label="partnership"></i> Get Involved</h2>
460
+ <h2><i style="font-size: 1.2em" class="ph ph-handshake" aria-label="partnership"></i> Get Involved</h2>
450
461
  <table>
451
462
  <tr>
452
463
  <td width="50%">
@@ -455,10 +466,10 @@ docBuilder.build({
455
466
  <p>We welcome contributions! Check our <a href="https://github.com/wapdat/doc-builder">contribution guide</a> to get started.</p>
456
467
  <p><strong>Ways to help:</strong></p>
457
468
  <ul>
458
- <li><i class="ph ph-bug" aria-label="bug"></i> Report bugs</li>
459
- <li><i class="ph ph-lightbulb" aria-label="idea"></i> Suggest features</li>
460
- <li><i class="ph ph-note-pencil" aria-label="edit"></i> Improve docs</li>
461
- <li><i class="ph ph-wrench" aria-label="settings"></i> Submit PRs</li>
469
+ <li><i style="font-size: 1.2em" class="ph ph-bug" aria-label="bug"></i> Report bugs</li>
470
+ <li><i style="font-size: 1.2em" class="ph ph-lightbulb" aria-label="idea"></i> Suggest features</li>
471
+ <li><i style="font-size: 1.2em" class="ph ph-note-pencil" aria-label="edit"></i> Improve docs</li>
472
+ <li><i style="font-size: 1.2em" class="ph ph-wrench" aria-label="settings"></i> Submit PRs</li>
462
473
  </ul>
463
474
  </td>
464
475
  <td width="50%">
@@ -467,10 +478,10 @@ docBuilder.build({
467
478
  <p>Join our growing community of documentation enthusiasts!</p>
468
479
  <p><strong>Connect with us:</strong></p>
469
480
  <ul>
470
- <li><i class="ph ph-package" aria-label="package"></i> <a href="https://www.npmjs.com/package/@knowcode/doc-builder">NPM Package</a></li>
471
- <li><i class="ph ph-github-logo" aria-label="github"></i> <a href="https://github.com/wapdat/doc-builder">GitHub Repo</a></li>
472
- <li><i class="ph ph-globe" aria-label="global"></i> <a href="https://knowcode.com">Website</a></li>
473
- <li><i class="ph ph-chat-circle" aria-label="chat"></i> <a href="https://github.com/wapdat/doc-builder/discussions">Discussions</a></li>
481
+ <li><i style="font-size: 1.2em" class="ph ph-package" aria-label="package"></i> <a href="https://www.npmjs.com/package/@knowcode/doc-builder">NPM Package</a></li>
482
+ <li><i style="font-size: 1.2em" class="ph ph-github-logo" aria-label="github"></i> <a href="https://github.com/wapdat/doc-builder">GitHub Repo</a></li>
483
+ <li><i style="font-size: 1.2em" class="ph ph-globe" aria-label="global"></i> <a href="https://knowcode.com">Website</a></li>
484
+ <li><i style="font-size: 1.2em" class="ph ph-chat-circle" aria-label="chat"></i> <a href="https://github.com/wapdat/doc-builder/discussions">Discussions</a></li>
474
485
  </ul>
475
486
  </td>
476
487
  </tr>
@@ -479,8 +490,8 @@ docBuilder.build({
479
490
  <hr>
480
491
  <div align="center">
481
492
 
482
- <h3><i class="ph ph-note-pencil" aria-label="edit"></i> License: MIT © KnowCode</h3>
483
- <p>Built with <i class="ph ph-heart" aria-label="love"></i> by developers, for developers</p>
493
+ <h3><i style="font-size: 1.2em" class="ph ph-note-pencil" aria-label="edit"></i> License: MIT © KnowCode</h3>
494
+ <p>Built with <i style="font-size: 1.2em" class="ph ph-heart" aria-label="love"></i> by developers, for developers</p>
484
495
  <p><a href="https://www.npmjs.com/package/@knowcode/doc-builder"><strong>Get Started</strong></a> | <a href="https://doc-builder-delta.vercel.app"><strong>You are looking at a demo</strong></a> | <a href="https://github.com/wapdat/doc-builder"><strong>Star on GitHub</strong></a></p>
485
496
  </div>
486
497
 
package/html/auth.js CHANGED
@@ -27,6 +27,10 @@
27
27
  // Check authentication and site access
28
28
  async function checkAuth() {
29
29
  try {
30
+ // Check authentication mode
31
+ const isGlobalAuthEnabled = false;
32
+ const isPrivateDirectoryAuthEnabled = true;
33
+
30
34
  // Check if current page is in private directory
31
35
  const currentPath = window.location.pathname;
32
36
  const isPrivatePage = currentPath.includes('/private/');
@@ -35,11 +39,11 @@
35
39
  const { data: { user }, error: userError } = await supabaseClient.auth.getUser();
36
40
 
37
41
  if (userError || !user) {
38
- // Only redirect if we're on a private page
39
- if (isPrivatePage) {
42
+ // Redirect if global auth is enabled OR if we're on a private page with private auth enabled
43
+ if (isGlobalAuthEnabled || (isPrivateDirectoryAuthEnabled && isPrivatePage)) {
40
44
  redirectToLogin();
41
45
  } else {
42
- // Public page, just show it
46
+ // Public page (no global auth and either no private auth or not on private page)
43
47
  document.body.classList.add('authenticated'); // Use same class to show body
44
48
  updateAuthButton(false);
45
49
  }
@@ -55,7 +59,7 @@
55
59
  .single();
56
60
 
57
61
  if (accessError || !access) {
58
- if (isPrivatePage) {
62
+ if (isGlobalAuthEnabled || (isPrivateDirectoryAuthEnabled && isPrivatePage)) {
59
63
  showAccessDenied();
60
64
  } else {
61
65
  // Public page, show it but don't grant private navigation access
@@ -65,15 +69,21 @@
65
69
  return;
66
70
  }
67
71
 
68
- // User is authenticated and has domain access - grant full access including private nav
72
+ // User is authenticated and has domain access - grant appropriate access
69
73
  console.log('User authenticated and authorized');
70
74
  document.body.classList.add('authenticated');
71
- document.body.classList.add('has-private-access'); // Grant private navigation access
75
+
76
+ // Grant private navigation access if private directory auth is enabled
77
+ if (isPrivateDirectoryAuthEnabled || isGlobalAuthEnabled) {
78
+ document.body.classList.add('has-private-access');
79
+ }
80
+
72
81
  updateAuthButton(true);
73
82
 
74
83
  } catch (error) {
75
84
  console.error('Auth check failed:', error);
76
- if (window.location.pathname.includes('/private/')) {
85
+ const isPrivatePage = window.location.pathname.includes('/private/');
86
+ if (isGlobalAuthEnabled || (isPrivateDirectoryAuthEnabled && isPrivatePage)) {
77
87
  redirectToLogin();
78
88
  } else {
79
89
  // Public page, show it anyway
@@ -6,6 +6,7 @@
6
6
  <meta name="description" content="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose.">
7
7
  <title>Documentation Index | @knowcode/doc-builder</title>
8
8
 
9
+ <meta name="generator" content="@knowcode/doc-builder by Knowcode Ltd">
9
10
  <meta name="author" content="Lindsay Smith">
10
11
  <meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, guide, guides">
11
12
  <meta name="robots" content="index, follow">
@@ -98,8 +99,8 @@
98
99
  "name": "Knowcode Ltd",
99
100
  "url": "https://knowcode.tech"
100
101
  },
101
- "datePublished": "2025-07-29T09:30:31.310Z",
102
- "dateModified": "2025-07-29T09:30:31.310Z",
102
+ "datePublished": "2025-07-31T07:08:27.337Z",
103
+ "dateModified": "2025-07-31T07:08:27.337Z",
103
104
  "mainEntityOfPage": {
104
105
  "@type": "WebPage",
105
106
  "@id": "https://doc-builder-delta.vercel.app/documentation-index.html"
@@ -132,7 +133,7 @@
132
133
 
133
134
  <div class="header-actions">
134
135
  <div class="deployment-info">
135
- <span class="deployment-date" title="Built with doc-builder v1.9.5">Last updated: Jul 29, 2025, 09:30 AM UTC</span>
136
+ <span class="deployment-date" title="Built with doc-builder v1.9.11">Last updated: Jul 31, 2025, 07:08 AM UTC</span>
136
137
  </div>
137
138
 
138
139
 
@@ -198,6 +199,7 @@
198
199
  <a href="/guides/authentication-default-change.html" class="nav-item" data-tooltip="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites."><i class="ph ph-file-text"></i> Authentication Default Change</a>
199
200
  <a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase - a secure, scalable authentication platform."><i class="ph ph-check-circle" style="color: #059669;"></i> Authentication Guide</a>
200
201
  <a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Claude Workflow Guide</a>
202
+ <a href="/guides/configuration-guide.html" class="nav-item" data-tooltip="This guide explains how @knowcode/doc-builder handles configuration files and settings."><i class="ph ph-check-circle" style="color: #059669;"></i> Configuration Guide</a>
201
203
  <a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Documentation Standards</a>
202
204
  <a href="/guides/html-embedding-guide.html" class="nav-item" data-tooltip="Starting from version 1.9.2, doc-builder treats HTML files ( and ) as attachments that are automatically copied to your output directory during the..."><i class="ph ph-check-circle" style="color: #059669;"></i> Html Embedding Guide</a>
203
205
  <a href="/guides/image-modal-guide.html" class="nav-item" data-tooltip="When users click on any image in your generated documentation, it opens in a professional modal overlay with: Full-screen viewing experience Smooth..."><i class="ph ph-check-circle" style="color: #059669;"></i> Image Modal Guide</a>
@@ -208,6 +210,7 @@
208
210
  <a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="ph ph-check-circle" style="color: #059669;"></i> Search Engine Verification Guide</a>
209
211
  <a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Guide</a>
210
212
  <a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="Comprehensive guide to optimizing documentation for search engines. Learn SEO best practices, use built-in features, and improve your rankings."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Optimization Guide</a>
213
+ <a href="/guides/supabase-authentication-complete-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes built-in Supabase authentication that provides enterprise-grade security with zero configuration."><i class="ph ph-check-circle" style="color: #059669;"></i> Supabase Authentication Complete Guide</a>
211
214
  <a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="ph ph-check-circle" style="color: #059669;"></i> Troubleshooting Guide</a>
212
215
  <a href="/guides/windows-setup-guide.html" class="nav-item" data-tooltip="This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel."><i class="ph ph-check-circle" style="color: #059669;"></i> Windows Setup Guide</a></div></div>
213
216
  <div class="nav-section private-nav" data-level="1">
@@ -239,6 +242,7 @@
239
242
  <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-chat-circle-dots"></i> Prompts
240
243
  </a>
241
244
  <div class="nav-content collapsed" id="nav-prompts-1">
245
+ <a href="/prompts/beautiful-documentation-design.html" class="nav-item" data-tooltip="🎨 Beautiful Documentation Design Guide."><i class="ph ph-check-circle" style="color: #059669;"></i> Beautiful Documentation Design</a>
242
246
  <a href="/prompts/markdown-document-standards.html" class="nav-item" data-tooltip="Detailed introduction to the topic..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Markdown Document Standards</a></div></div>
243
247
  </nav>
244
248
  <div class="resize-handle"></div>
@@ -265,7 +269,7 @@
265
269
  └── troubleshooting-guide.md # Common issues and solutions
266
270
  </code></pre>
267
271
  <h2>Documentation Categories</h2>
268
- <h3><i class="ph ph-books" aria-label="documentation"></i> Core Documentation</h3>
272
+ <h3><i style="font-size: 1.2em" class="ph ph-books" aria-label="documentation"></i> Core Documentation</h3>
269
273
  <table>
270
274
  <thead>
271
275
  <tr>
@@ -290,7 +294,7 @@
290
294
  <td>Claude Code integration guide</td>
291
295
  </tr>
292
296
  </tbody></table>
293
- <h3><i class="ph ph-book-open" aria-label="reading"></i> Guides</h3>
297
+ <h3><i style="font-size: 1.2em" class="ph ph-book-open" aria-label="reading"></i> Guides</h3>
294
298
  <table>
295
299
  <thead>
296
300
  <tr>
@@ -305,6 +309,11 @@
305
309
  <td>How to write docs for this project</td>
306
310
  </tr>
307
311
  <tr>
312
+ <td>Configuration Guide</td>
313
+ <td><a href="./guides/configuration-guide.md">guides/configuration-guide.md</a></td>
314
+ <td>Config file management and auto-updates</td>
315
+ </tr>
316
+ <tr>
308
317
  <td>Authentication Guide</td>
309
318
  <td><a href="./guides/authentication-guide.md">guides/authentication-guide.md</a></td>
310
319
  <td>Setting up password protection</td>
@@ -6,6 +6,7 @@
6
6
  <meta name="description" content="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites. This change makes it easier to deploy...">
7
7
  <title>Authentication Default Change | @knowcode/doc-builder</title>
8
8
 
9
+ <meta name="generator" content="@knowcode/doc-builder by Knowcode Ltd">
9
10
  <meta name="author" content="Lindsay Smith">
10
11
  <meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, authentication, public">
11
12
  <meta name="robots" content="index, follow">
@@ -98,8 +99,8 @@
98
99
  "name": "Knowcode Ltd",
99
100
  "url": "https://knowcode.tech"
100
101
  },
101
- "datePublished": "2025-07-29T09:30:31.314Z",
102
- "dateModified": "2025-07-29T09:30:31.314Z",
102
+ "datePublished": "2025-07-31T07:08:27.341Z",
103
+ "dateModified": "2025-07-31T07:08:27.341Z",
103
104
  "mainEntityOfPage": {
104
105
  "@type": "WebPage",
105
106
  "@id": "https://doc-builder-delta.vercel.app/guides/authentication-default-change.html"
@@ -138,7 +139,7 @@
138
139
 
139
140
  <div class="header-actions">
140
141
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.9.5">Last updated: Jul 29, 2025, 09:30 AM UTC</span>
142
+ <span class="deployment-date" title="Built with doc-builder v1.9.11">Last updated: Jul 31, 2025, 07:08 AM UTC</span>
142
143
  </div>
143
144
 
144
145
 
@@ -204,6 +205,7 @@
204
205
  <a href="/guides/authentication-default-change.html" class="nav-item active" data-tooltip="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites."><i class="ph ph-file-text"></i> Authentication Default Change</a>
205
206
  <a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase - a secure, scalable authentication platform."><i class="ph ph-check-circle" style="color: #059669;"></i> Authentication Guide</a>
206
207
  <a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Claude Workflow Guide</a>
208
+ <a href="/guides/configuration-guide.html" class="nav-item" data-tooltip="This guide explains how @knowcode/doc-builder handles configuration files and settings."><i class="ph ph-check-circle" style="color: #059669;"></i> Configuration Guide</a>
207
209
  <a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Documentation Standards</a>
208
210
  <a href="/guides/html-embedding-guide.html" class="nav-item" data-tooltip="Starting from version 1.9.2, doc-builder treats HTML files ( and ) as attachments that are automatically copied to your output directory during the..."><i class="ph ph-check-circle" style="color: #059669;"></i> Html Embedding Guide</a>
209
211
  <a href="/guides/image-modal-guide.html" class="nav-item" data-tooltip="When users click on any image in your generated documentation, it opens in a professional modal overlay with: Full-screen viewing experience Smooth..."><i class="ph ph-check-circle" style="color: #059669;"></i> Image Modal Guide</a>
@@ -214,6 +216,7 @@
214
216
  <a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="ph ph-check-circle" style="color: #059669;"></i> Search Engine Verification Guide</a>
215
217
  <a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Guide</a>
216
218
  <a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="Comprehensive guide to optimizing documentation for search engines. Learn SEO best practices, use built-in features, and improve your rankings."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Optimization Guide</a>
219
+ <a href="/guides/supabase-authentication-complete-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes built-in Supabase authentication that provides enterprise-grade security with zero configuration."><i class="ph ph-check-circle" style="color: #059669;"></i> Supabase Authentication Complete Guide</a>
217
220
  <a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="ph ph-check-circle" style="color: #059669;"></i> Troubleshooting Guide</a>
218
221
  <a href="/guides/windows-setup-guide.html" class="nav-item" data-tooltip="This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel."><i class="ph ph-check-circle" style="color: #059669;"></i> Windows Setup Guide</a></div></div>
219
222
  <div class="nav-section private-nav" data-level="1">
@@ -245,6 +248,7 @@
245
248
  <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-chat-circle-dots"></i> Prompts
246
249
  </a>
247
250
  <div class="nav-content collapsed" id="nav-prompts-1">
251
+ <a href="/prompts/beautiful-documentation-design.html" class="nav-item" data-tooltip="🎨 Beautiful Documentation Design Guide."><i class="ph ph-check-circle" style="color: #059669;"></i> Beautiful Documentation Design</a>
248
252
  <a href="/prompts/markdown-document-standards.html" class="nav-item" data-tooltip="Detailed introduction to the topic..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Markdown Document Standards</a></div></div>
249
253
  </nav>
250
254
  <div class="resize-handle"></div>