@knowcode/doc-builder 1.9.1 → 1.9.3

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/CHANGELOG.md +29 -0
  2. package/CLAUDE.md +35 -0
  3. package/README.md +1 -0
  4. package/assets/css/notion-style.css +2 -2
  5. package/html/README.html +151 -33
  6. package/html/auth.js +4 -3
  7. package/html/css/notion-style.css +394 -13
  8. package/html/documentation-index.html +134 -10
  9. package/html/guides/authentication-default-change.html +132 -7
  10. package/html/guides/authentication-guide.html +143 -19
  11. package/html/guides/claude-workflow-guide.html +139 -22
  12. package/html/guides/documentation-standards.html +135 -11
  13. package/html/guides/html-embedding-guide.html +451 -0
  14. package/html/guides/image-modal-guide.html +134 -10
  15. package/html/guides/phosphor-icons-guide.html +152 -27
  16. package/html/guides/private-directory-authentication-troubleshooting.html +545 -0
  17. package/html/guides/private-directory-authentication.html +132 -7
  18. package/html/guides/public-site-deployment.html +132 -7
  19. package/html/guides/search-engine-verification-guide.html +132 -7
  20. package/html/guides/seo-guide.html +132 -7
  21. package/html/guides/seo-optimization-guide.html +161 -38
  22. package/html/guides/troubleshooting-guide.html +143 -19
  23. package/html/guides/windows-setup-guide.html +163 -38
  24. package/html/image-modal-test.html +127 -8
  25. package/html/index.html +151 -33
  26. package/html/js/auth.js +119 -39
  27. package/html/js/main.js +259 -25
  28. package/html/private/cache-control-anti-pattern.html +137 -12
  29. package/html/private/launch/README.html +146 -15
  30. package/html/private/launch/auth-cleanup-summary.html +155 -24
  31. package/html/private/launch/bubble-plugin-specification.html +138 -7
  32. package/html/private/launch/go-to-market-strategy.html +140 -9
  33. package/html/private/launch/launch-announcements.html +154 -24
  34. package/html/private/launch/vercel-deployment-auth-setup.html +140 -9
  35. package/html/private/next-steps-walkthrough.html +139 -14
  36. package/html/private/supabase-auth-implementation-completed.html +145 -21
  37. package/html/private/supabase-auth-implementation-plan.html +138 -14
  38. package/html/private/supabase-auth-integration-plan.html +144 -21
  39. package/html/private/supabase-auth-setup-guide.html +141 -16
  40. package/html/private/test-private-doc.html +132 -7
  41. package/html/private/user-management-tooling.html +132 -7
  42. package/html/prompts/markdown-document-standards.html +136 -12
  43. package/html/sitemap.xml +70 -46
  44. package/html/vercel-cli-setup-guide.html +130 -11
  45. package/html/vercel-first-time-setup-guide.html +127 -8
  46. package/lib/config.js +2 -0
  47. package/lib/emoji-mapper.js +2 -0
  48. package/lib/supabase-auth.js +4 -3
  49. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,35 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.9.2] - 2025-07-28
9
+
10
+ ### Added
11
+ - **HTML File Support** - HTML files (.html, .htm) are now treated as attachments and automatically copied during build
12
+ - **Interactive Content Embedding** - Embed custom HTML pages, widgets, and interactive demos using iframes
13
+ - Comprehensive HTML Embedding Guide with security best practices and examples
14
+ - Support for maintaining HTML file directory structure in output
15
+
16
+ ### Changed
17
+ - Updated attachment types configuration to include web files (.html, .htm)
18
+ - Enhanced documentation to showcase HTML embedding capabilities
19
+
20
+ ## [1.9.1] - 2025-07-28
21
+
22
+ ### Added
23
+ - Added 12 new Unicode emoji to Phosphor icon mappings:
24
+ - 🏔️ → mountains icon
25
+ - 🏞️ → park/nature icon
26
+ - 🌅 → sunrise icon
27
+ - ♿ → wheelchair/accessibility icon
28
+ - 🌓 → moon-stars/half moon icon
29
+ - 🃏 → cards/joker card icon
30
+ - 🧩 → puzzle piece icon
31
+ - ⏳ → hourglass icon
32
+ - 👆 → hand pointing up icon
33
+ - 📑 → file-text/document icon
34
+ - 💀 → skull icon
35
+ - 🔤 → textbox/letters icon
36
+
8
37
  ## [1.9.0] - 2025-07-27
9
38
 
10
39
  ### Added
package/CLAUDE.md CHANGED
@@ -20,6 +20,41 @@ This file provides comprehensive guidance for Claude Code when working with the
20
20
  - 📱 **Fully responsive** design
21
21
  - 🔧 **Zero configuration** - works with sensible defaults
22
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
+
23
58
  ## Documentation Guidelines
24
59
 
25
60
  - For this project documentation, do not include in each document:
package/README.md CHANGED
@@ -80,6 +80,7 @@ This aligns perfectly with our mission: beautiful documentation should be access
80
80
  - ☁️ **Vercel Deploy** - One-command deployment
81
81
  - ✅ **Google Verification** - Search Console ready
82
82
  - 📎 **Attachment Support** - Excel, PDF & more deploy with docs
83
+ - 🌐 **HTML Embedding** - Include interactive HTML pages via iframes
83
84
 
84
85
  </td>
85
86
  </tr>
@@ -2052,8 +2052,8 @@ code .ph {
2052
2052
  display: none;
2053
2053
  }
2054
2054
 
2055
- /* Show private navigation when user is authenticated */
2056
- body.authenticated .private-nav {
2055
+ /* Show private navigation when user has private access */
2056
+ body.has-private-access .private-nav {
2057
2057
  display: block;
2058
2058
  }
2059
2059
 
package/html/README.html CHANGED
@@ -3,14 +3,41 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Beautiful documentation with the least effort possible">
7
- <title>@knowcode/doc-builder - @knowcode/doc-builder</title>
6
+ <meta name="description" content="&lt;div align=&quot;center&quot;&gt;">
7
+ <title>@knowcode/doc-builder | @knowcode/doc-builder</title>
8
+
9
+ <meta name="author" content="Lindsay Smith">
10
+ <meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, width, table">
11
+ <meta name="robots" content="index, follow">
12
+ <link rel="canonical" href="https://doc-builder-delta.vercel.app/README.html">
13
+
14
+ <!-- Open Graph / Facebook -->
15
+ <meta property="og:type" content="article">
16
+ <meta property="og:url" content="https://doc-builder-delta.vercel.app/README.html">
17
+ <meta property="og:title" content="@knowcode/doc-builder | @knowcode/doc-builder">
18
+ <meta property="og:description" content="&lt;div align=&quot;center&quot;&gt;">
19
+ <meta property="og:image" content="https://doc-builder-delta.vercel.app/og-default.png">
20
+ <meta property="og:site_name" content="@knowcode/doc-builder">
21
+ <meta property="og:locale" content="en_US">
22
+
23
+ <!-- Twitter Card -->
24
+ <meta name="twitter:card" content="summary_large_image">
25
+ <meta name="twitter:site" content="@planbbackups">
26
+ <meta name="twitter:creator" content="@planbbackups">
27
+ <meta name="twitter:title" content="@knowcode/doc-builder | @knowcode/doc-builder">
28
+ <meta name="twitter:description" content="&lt;div align=&quot;center&quot;&gt;">
29
+ <meta name="twitter:image" content="https://doc-builder-delta.vercel.app/og-default.png">
30
+
31
+ <!-- Custom Meta Tags -->
32
+ <meta name="google-site-verification" content="FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ">
33
+ <meta name="msvalidate.01" content="B2D8C4C12C530D47AA962B24CAA09630">
8
34
 
9
35
  <!-- Fonts -->
10
36
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
11
37
 
12
38
  <!-- Icons -->
13
39
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
40
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css">
14
41
 
15
42
  <!-- Mermaid -->
16
43
  <script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script>
@@ -18,8 +45,84 @@
18
45
  <!-- Styles -->
19
46
  <link rel="stylesheet" href="/css/notion-style.css">
20
47
 
48
+
49
+ <!-- Hide content until auth check -->
50
+ <style>
51
+ body {
52
+ visibility: hidden;
53
+ opacity: 0;
54
+ transition: opacity 0.3s ease;
55
+ }
56
+ body.authenticated {
57
+ visibility: visible;
58
+ opacity: 1;
59
+ }
60
+ /* Show login/logout pages immediately */
61
+ body.auth-page {
62
+ visibility: visible;
63
+ opacity: 1;
64
+ }
65
+ /* Style auth button consistently */
66
+ .auth-btn {
67
+ background: none;
68
+ border: none;
69
+ color: var(--text-secondary);
70
+ cursor: pointer;
71
+ padding: 0.5rem;
72
+ border-radius: 0.5rem;
73
+ transition: all 0.2s;
74
+ font-size: 1.1rem;
75
+ }
76
+ .auth-btn:hover {
77
+ background: var(--bg-secondary);
78
+ color: var(--text-primary);
79
+ }
80
+ </style>
81
+
82
+
21
83
  <!-- Favicon -->
22
- <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📚</text></svg>">
84
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>✨</text></svg>">
85
+
86
+ <script type="application/ld+json">
87
+ {
88
+ "@context": "https://schema.org",
89
+ "@type": "TechArticle",
90
+ "headline": "@knowcode/doc-builder",
91
+ "description": "<div align=\"center\">",
92
+ "author": {
93
+ "@type": "Person",
94
+ "name": "Lindsay Smith"
95
+ },
96
+ "publisher": {
97
+ "@type": "Organization",
98
+ "name": "Knowcode Ltd",
99
+ "url": "https://knowcode.tech"
100
+ },
101
+ "datePublished": "2025-07-28T16:34:27.897Z",
102
+ "dateModified": "2025-07-28T16:34:27.897Z",
103
+ "mainEntityOfPage": {
104
+ "@type": "WebPage",
105
+ "@id": "https://doc-builder-delta.vercel.app/README.html"
106
+ },
107
+ "breadcrumb": {
108
+ "@type": "BreadcrumbList",
109
+ "itemListElement": [
110
+ {
111
+ "@type": "ListItem",
112
+ "position": 1,
113
+ "name": "@knowcode/doc-builder",
114
+ "item": "https://doc-builder-delta.vercel.app"
115
+ },
116
+ {
117
+ "@type": "ListItem",
118
+ "position": 2,
119
+ "name": "README",
120
+ "item": "https://doc-builder-delta.vercel.app/README.html"
121
+ }
122
+ ]
123
+ }
124
+ }
125
+ </script>
23
126
  </head>
24
127
  <body>
25
128
  <!-- Header -->
@@ -29,10 +132,14 @@
29
132
 
30
133
  <div class="header-actions">
31
134
  <div class="deployment-info">
32
- <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 27, 2025, 08:32 AM UTC</span>
135
+ <span class="deployment-date" title="Built with doc-builder v1.9.3">Last updated: Jul 28, 2025, 04:34 PM UTC</span>
33
136
  </div>
34
137
 
35
138
 
139
+ <a href="../login.html" class="auth-btn" title="Login/Logout">
140
+ <i class="fas fa-sign-in-alt"></i>
141
+ </a>
142
+
36
143
 
37
144
  <button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">
38
145
  <i class="fas fa-moon"></i>
@@ -92,16 +199,18 @@
92
199
  <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="fas fa-file-alt"></i> Authentication Guide</a>
93
200
  <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="fas fa-file-alt"></i> Claude Workflow Guide</a>
94
201
  <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="fas fa-file-alt"></i> Documentation Standards</a>
202
+ <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="fas fa-file-alt"></i> Html Embedding Guide</a>
95
203
  <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="fas fa-file-alt"></i> Image Modal Guide</a>
96
204
  <a href="/guides/phosphor-icons-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder automatically converts Unicode emojis in your markdown files to beautiful Phosphor icons in the generated HTML."><i class="fas fa-file-alt"></i> Phosphor Icons Guide</a>
97
205
  <a href="/guides/private-directory-authentication.html" class="nav-item" data-tooltip="The @knowcode/doc-builder provides flexible authentication options to protect your documentation."><i class="fas fa-file-alt"></i> Private Directory Authentication</a>
206
+ <a href="/guides/private-directory-authentication-troubleshooting.html" class="nav-item" data-tooltip="Private Directory Authentication Troubleshooting."><i class="fas fa-file-alt"></i> Private Directory Authentication Troubleshooting</a>
98
207
  <a href="/guides/public-site-deployment.html" class="nav-item" data-tooltip="The @knowcode/doc-builder now supports deploying public documentation sites without authentication."><i class="fas fa-file-alt"></i> Public Site Deployment</a>
99
208
  <a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="fas fa-file-alt"></i> Search Engine Verification Guide</a>
100
209
  <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="fas fa-file-alt"></i> Seo Guide</a>
101
210
  <a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features that automatically optimize your documentation for search..."><i class="fas fa-file-alt"></i> Seo Optimization Guide</a>
102
211
  <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="fas fa-file-alt"></i> Troubleshooting Guide</a>
103
212
  <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="fas fa-file-alt"></i> Windows Setup Guide</a></div></div>
104
- <div class="nav-section" data-level="1">
213
+ <div class="nav-section private-nav" data-level="1">
105
214
  <a class="nav-title collapsible expanded" href="#" data-target="nav-private-1" >
106
215
  <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
107
216
  </a>
@@ -114,7 +223,7 @@
114
223
  <a href="/private/supabase-auth-setup-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase."><i class="fas fa-file-alt"></i> Supabase Auth Setup Guide</a>
115
224
  <a href="/private/test-private-doc.html" class="nav-item" data-tooltip="Test Private Document."><i class="fas fa-file-alt"></i> Test Private Doc</a>
116
225
  <a href="/private/user-management-tooling.html" class="nav-item" data-tooltip="The user management system is a set of tools designed to manage user access to Supabase-authenticated documentation sites built with."><i class="fas fa-file-alt"></i> User Management Tooling</a></div></div>
117
- <div class="nav-section" data-level="2">
226
+ <div class="nav-section private-nav" data-level="2">
118
227
  <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
119
228
  <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
120
229
  </a>
@@ -145,26 +254,26 @@
145
254
  <p>Transform your markdown documentation into beautiful, searchable websites with Notion-inspired styling</p>
146
255
  </blockquote>
147
256
  <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>
148
- <h3>🚀 Quick Start</h3>
257
+ <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Quick Start</h3>
149
258
  <pre><code class="language-bash">npx @knowcode/doc-builder@latest deploy
150
259
  </code></pre>
151
260
  <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>
152
261
  </div>
153
262
 
154
263
  <hr>
155
- <h2>✨ Features</h2>
264
+ <h2><i class="ph ph-sparkle" aria-label="special"></i> Features</h2>
156
265
  <table>
157
266
  <tr>
158
267
  <td width="50%">
159
268
 
160
- <h3>🎨 Design &amp; UX</h3>
269
+ <h3><i class="ph ph-palette" aria-label="design"></i> Design &amp; UX</h3>
161
270
  <ul>
162
271
  <li><strong>Notion-inspired UI</strong> - Clean, modern interface</li>
163
272
  <li><strong>Dark mode support</strong> - Automatic theme switching</li>
164
273
  <li><strong>Responsive layout</strong> - Perfect on any device</li>
165
274
  <li><strong>Syntax highlighting</strong> - Beautiful code blocks</li>
166
275
  </ul>
167
- <h3>🔍 Navigation</h3>
276
+ <h3><i class="ph ph-magnifying-glass" aria-label="search"></i> Navigation</h3>
168
277
  <ul>
169
278
  <li><strong>Full-text search</strong> - Find anything instantly</li>
170
279
  <li><strong>Smart navigation</strong> - Hierarchical structure</li>
@@ -174,14 +283,14 @@
174
283
  </td>
175
284
  <td width="50%">
176
285
 
177
- <h3>📊 Content Support</h3>
286
+ <h3><i class="ph ph-chart-bar" aria-label="chart"></i> Content Support</h3>
178
287
  <ul>
179
288
  <li><strong>Mermaid diagrams</strong> - Visual documentation</li>
180
289
  <li><strong>GitHub markdown</strong> - Full GFM support</li>
181
290
  <li><strong>Interactive tooltips</strong> - Document previews</li>
182
291
  <li><strong>Version tracking</strong> - Build metadata</li>
183
292
  </ul>
184
- <h3>🚀 Deployment</h3>
293
+ <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Deployment</h3>
185
294
  <ul>
186
295
  <li><strong>One-command deploy</strong> - Push to Vercel</li>
187
296
  <li><strong>Static generation</strong> - Fast &amp; secure</li>
@@ -192,7 +301,7 @@
192
301
  </tr>
193
302
  </table>
194
303
 
195
- <h2>🎯 Use Cases</h2>
304
+ <h2><i class="ph ph-target" aria-label="goal"></i> Use Cases</h2>
196
305
  <table>
197
306
  <tr>
198
307
  <td width="25%">
@@ -218,7 +327,7 @@
218
327
  </tr>
219
328
  </table>
220
329
 
221
- <h2>🛠️ Simple Workflow</h2>
330
+ <h2><i class="ph ph-gear-six" aria-label="tools"></i> Simple Workflow</h2>
222
331
  <table>
223
332
  <tr>
224
333
  <td width="50%">
@@ -238,7 +347,7 @@
238
347
  </tr>
239
348
  </table>
240
349
 
241
- <h2>⚙️ Configuration</h2>
350
+ <h2><i class="ph ph-gear" aria-label="settings"></i> Configuration</h2>
242
351
  <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>
243
352
  <table>
244
353
  <tr>
@@ -273,14 +382,13 @@ features: {
273
382
  </tr>
274
383
  </table>
275
384
 
276
- <h2>📊 Rich Content Examples</h2>
385
+ <h2><i class="ph ph-chart-bar" aria-label="chart"></i> Rich Content Examples</h2>
277
386
  <table>
278
387
  <tr>
279
388
  <td width="50%">
280
389
 
281
390
  <h3>Mermaid Diagrams</h3>
282
391
  <div class="mermaid-wrapper">
283
- <div class="mermaid-title">Diagram</div>
284
392
  <div class="mermaid">graph LR
285
393
  A[Write] --> B[Build]
286
394
  B --> C[Deploy]
@@ -305,12 +413,12 @@ docBuilder.build({
305
413
  </tr>
306
414
  </table>
307
415
 
308
- <h2>🌟 Why Choose doc-builder?</h2>
416
+ <h2><i class="ph ph-star-four" aria-label="sparkle"></i> Why Choose doc-builder?</h2>
309
417
  <table>
310
418
  <tr>
311
419
  <td width="33%">
312
420
 
313
- <h3>🚀 Performance</h3>
421
+ <h3><i class="ph ph-rocket-launch" aria-label="launch"></i> Performance</h3>
314
422
  <ul>
315
423
  <li><strong>Lightning fast</strong> - Static generation</li>
316
424
  <li><strong>SEO optimized</strong> - Search friendly</li>
@@ -319,7 +427,7 @@ docBuilder.build({
319
427
  </td>
320
428
  <td width="33%">
321
429
 
322
- <h3>🛠️ Developer Experience</h3>
430
+ <h3><i class="ph ph-gear-six" aria-label="tools"></i> Developer Experience</h3>
323
431
  <ul>
324
432
  <li><strong>Zero config</strong> - Works instantly</li>
325
433
  <li><strong>Version control</strong> - Git-friendly</li>
@@ -328,7 +436,7 @@ docBuilder.build({
328
436
  </td>
329
437
  <td width="33%">
330
438
 
331
- <h3>💰 Cost Effective</h3>
439
+ <h3><i class="ph ph-money" aria-label="money"></i> Cost Effective</h3>
332
440
  <ul>
333
441
  <li><strong>Free hosting</strong> - Vercel free tier</li>
334
442
  <li><strong>No vendor lock-in</strong> - Your content</li>
@@ -338,7 +446,7 @@ docBuilder.build({
338
446
  </tr>
339
447
  </table>
340
448
 
341
- <h2>🤝 Get Involved</h2>
449
+ <h2><i class="ph ph-handshake" aria-label="partnership"></i> Get Involved</h2>
342
450
  <table>
343
451
  <tr>
344
452
  <td width="50%">
@@ -347,10 +455,10 @@ docBuilder.build({
347
455
  <p>We welcome contributions! Check our <a href="https://github.com/wapdat/doc-builder">contribution guide</a> to get started.</p>
348
456
  <p><strong>Ways to help:</strong></p>
349
457
  <ul>
350
- <li>🐛 Report bugs</li>
351
- <li>💡 Suggest features</li>
352
- <li>📝 Improve docs</li>
353
- <li>🔧 Submit PRs</li>
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>
354
462
  </ul>
355
463
  </td>
356
464
  <td width="50%">
@@ -359,10 +467,10 @@ docBuilder.build({
359
467
  <p>Join our growing community of documentation enthusiasts!</p>
360
468
  <p><strong>Connect with us:</strong></p>
361
469
  <ul>
362
- <li>📦 <a href="https://www.npmjs.com/package/@knowcode/doc-builder">NPM Package</a></li>
363
- <li>🐙 <a href="https://github.com/wapdat/doc-builder">GitHub Repo</a></li>
364
- <li>🌐 <a href="https://knowcode.com">Website</a></li>
365
- <li>💬 <a href="https://github.com/wapdat/doc-builder/discussions">Discussions</a></li>
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>
366
474
  </ul>
367
475
  </td>
368
476
  </tr>
@@ -371,8 +479,8 @@ docBuilder.build({
371
479
  <hr>
372
480
  <div align="center">
373
481
 
374
- <h3>📝 License: MIT © KnowCode</h3>
375
- <p>Built with ❤️ by developers, for developers</p>
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>
376
484
  <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>
377
485
  </div>
378
486
 
@@ -381,7 +489,17 @@ docBuilder.build({
381
489
  </div>
382
490
 
383
491
  <!-- Scripts -->
492
+ <script>
493
+ // Pass configuration to frontend
494
+ window.docBuilderConfig = {
495
+ features: {
496
+ showPdfDownload: true,
497
+ menuDefaultOpen: false
498
+ }
499
+ };
500
+ </script>
384
501
  <script src="/js/main.js"></script>
385
-
502
+ <script src="https://unpkg.com/@supabase/supabase-js@2"></script>
503
+ <script src="/js/auth.js"></script>
386
504
  </body>
387
505
  </html>
package/html/auth.js CHANGED
@@ -58,16 +58,17 @@
58
58
  if (isPrivatePage) {
59
59
  showAccessDenied();
60
60
  } else {
61
- // Public page, just show it
62
- document.body.classList.add('authenticated');
61
+ // Public page, show it but don't grant private navigation access
62
+ document.body.classList.add('authenticated'); // Show body content
63
63
  updateAuthButton(false);
64
64
  }
65
65
  return;
66
66
  }
67
67
 
68
- // User is authenticated and has access
68
+ // User is authenticated and has domain access - grant full access including private nav
69
69
  console.log('User authenticated and authorized');
70
70
  document.body.classList.add('authenticated');
71
+ document.body.classList.add('has-private-access'); // Grant private navigation access
71
72
  updateAuthButton(true);
72
73
 
73
74
  } catch (error) {