@knowcode/doc-builder 1.8.2 → 1.8.4

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 (52) hide show
  1. package/.claude/settings.local.json +5 -1
  2. package/CHANGELOG.md +39 -3
  3. package/README.md +4 -4
  4. package/assets/css/notion-style.css +26 -0
  5. package/cli.js +9 -40
  6. package/debug-login.sql +30 -0
  7. package/html/README.html +27 -3
  8. package/html/auth.js +2 -2
  9. package/html/css/notion-style.css +26 -0
  10. package/html/documentation-index.html +27 -3
  11. package/html/guides/authentication-default-change.html +27 -3
  12. package/html/guides/authentication-guide.html +58 -45
  13. package/html/guides/claude-workflow-guide.html +27 -3
  14. package/html/guides/documentation-standards.html +27 -3
  15. package/html/guides/phosphor-icons-guide.html +27 -3
  16. package/html/guides/private-directory-authentication.html +59 -17
  17. package/html/guides/public-site-deployment.html +32 -9
  18. package/html/guides/search-engine-verification-guide.html +27 -3
  19. package/html/guides/seo-guide.html +27 -3
  20. package/html/guides/seo-optimization-guide.html +27 -3
  21. package/html/guides/troubleshooting-guide.html +27 -3
  22. package/html/guides/windows-setup-guide.html +27 -3
  23. package/html/index.html +27 -3
  24. package/html/js/auth.js +2 -2
  25. package/html/login.html +2 -2
  26. package/html/private/cache-control-anti-pattern.html +5 -5
  27. package/html/private/launch/README.html +5 -5
  28. package/html/private/launch/auth-cleanup-summary.html +5 -5
  29. package/html/private/launch/bubble-plugin-specification.html +5 -5
  30. package/html/private/launch/go-to-market-strategy.html +5 -5
  31. package/html/private/launch/launch-announcements.html +5 -5
  32. package/html/private/launch/vercel-deployment-auth-setup.html +27 -21
  33. package/html/private/next-steps-walkthrough.html +18 -45
  34. package/html/private/supabase-auth-implementation-completed.html +8 -8
  35. package/html/private/supabase-auth-implementation-plan.html +16 -33
  36. package/html/private/supabase-auth-integration-plan.html +34 -69
  37. package/html/private/supabase-auth-setup-guide.html +73 -84
  38. package/html/private/test-private-doc.html +5 -5
  39. package/html/private/user-management-tooling.html +9 -15
  40. package/html/sitemap.xml +44 -44
  41. package/html/vercel-cli-setup-guide.html +27 -3
  42. package/html/vercel-first-time-setup-guide.html +27 -3
  43. package/lib/config.js +3 -11
  44. package/lib/core-builder.js +7 -12
  45. package/lib/shared-auth-config.js +2 -10
  46. package/lib/supabase-auth.js +5 -11
  47. package/migrate-to-domain-auth.sql +47 -0
  48. package/package.json +1 -1
  49. package/setup-database-v2.sql +53 -0
  50. package/user-access-view.sql +49 -0
  51. package/user-management/README.md +9 -18
  52. package/user-management/add-users.sh +31 -11
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.969Z",
102
- "dateModified": "2025-07-26T10:38:41.969Z",
101
+ "datePublished": "2025-07-26T11:44:31.480Z",
102
+ "dateModified": "2025-07-26T11:44:31.480Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/authentication-guide.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -261,8 +285,10 @@
261
285
  <li>Create a new project</li>
262
286
  <li>Note your project URL and anon key</li>
263
287
  </ol>
264
- <h3>Step 2: Configure doc-builder</h3>
265
- <p>Create or update <code>doc-builder.config.js</code>:</p>
288
+ <h3>Step 2: Configure doc-builder (Mostly Automatic!)</h3>
289
+ <p>As of v1.8.2, Supabase credentials are automatically configured. You have two options:</p>
290
+ <p><strong>Option 1: Automatic (Recommended)</strong><br>Just create a <code>docs/private/</code> directory and authentication is automatically enabled with built-in credentials.</p>
291
+ <p><strong>Option 2: Custom Configuration</strong><br>Create or update <code>doc-builder.config.js</code> (only if using your own Supabase project):</p>
266
292
  <pre><code class="language-javascript">module.exports = {
267
293
  siteName: &#39;My Documentation&#39;,
268
294
 
@@ -271,64 +297,52 @@
271
297
  },
272
298
 
273
299
  auth: {
274
- supabaseUrl: &#39;https://your-project.supabase.co&#39;,
275
- supabaseAnonKey: &#39;your-anon-key&#39;,
276
- siteId: &#39;your-site-id&#39; // From database after setup
300
+ supabaseUrl: &#39;https://your-project.supabase.co&#39;, // Optional - has defaults
301
+ supabaseAnonKey: &#39;your-anon-key&#39; // Optional - has defaults
277
302
  }
278
303
  };
279
304
  </code></pre>
305
+ <p>Note: No more <code>siteId</code> needed! The system uses domains automatically.</p>
280
306
  <h3>Step 3: Set Up Database</h3>
281
- <p>Run these SQL commands in your Supabase SQL editor:</p>
282
- <pre><code class="language-sql">-- Create sites table
283
- CREATE TABLE docbuilder_sites (
284
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
285
- domain TEXT UNIQUE NOT NULL,
286
- name TEXT NOT NULL,
287
- created_at TIMESTAMPTZ DEFAULT NOW()
288
- );
289
-
290
- -- Create access table
307
+ <p>Run this SQL command in your Supabase SQL editor (or use setup-database-v2.sql):</p>
308
+ <pre><code class="language-sql">-- Single table for user access control
291
309
  CREATE TABLE docbuilder_access (
292
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
293
- user_id UUID NOT NULL REFERENCES auth.users(id),
294
- site_id UUID NOT NULL REFERENCES docbuilder_sites(id),
310
+ user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
311
+ domain TEXT NOT NULL,
295
312
  created_at TIMESTAMPTZ DEFAULT NOW(),
296
- UNIQUE(user_id, site_id)
313
+ PRIMARY KEY (user_id, domain)
297
314
  );
298
315
 
316
+ -- Create index for faster lookups
317
+ CREATE INDEX idx_docbuilder_access_domain ON docbuilder_access(domain);
318
+
299
319
  -- Enable Row Level Security
300
- ALTER TABLE docbuilder_sites ENABLE ROW LEVEL SECURITY;
301
320
  ALTER TABLE docbuilder_access ENABLE ROW LEVEL SECURITY;
302
321
 
303
- -- Create policies
304
- CREATE POLICY &quot;Sites visible to users with access&quot; ON docbuilder_sites
305
- FOR SELECT USING (
306
- id IN (
307
- SELECT site_id FROM docbuilder_access
308
- WHERE user_id = auth.uid()
309
- )
310
- );
311
-
312
- CREATE POLICY &quot;Access visible to own user&quot; ON docbuilder_access
322
+ -- RLS Policy: Users can only see their own access
323
+ CREATE POLICY &quot;Users see own access&quot; ON docbuilder_access
313
324
  FOR SELECT USING (user_id = auth.uid());
314
325
  </code></pre>
315
- <h3>Step 4: Add Your Site</h3>
316
- <pre><code class="language-sql">INSERT INTO docbuilder_sites (domain, name)
317
- VALUES (&#39;your-domain.com&#39;, &#39;Your Documentation Name&#39;);
318
- </code></pre>
319
- <p>Note the returned ID - this is your <code>siteId</code> for the config.</p>
326
+ <h3>Step 4: No Site Registration Needed!</h3>
327
+ <p>With the new domain-based system, you don&#39;t need to register sites. The system automatically uses the current domain (e.g., docs.example.com) as the access key.</p>
320
328
  <h3>Step 5: Create Users</h3>
321
329
  <p>Users can sign up through Supabase Auth, or you can create them:</p>
322
330
  <pre><code class="language-sql">-- In Supabase dashboard, go to Authentication &gt; Users
323
331
  -- Click &quot;Invite user&quot; and enter their email
324
332
  </code></pre>
325
333
  <h3>Step 6: Grant Access</h3>
326
- <pre><code class="language-sql">-- Grant user access to your site
327
- INSERT INTO docbuilder_access (user_id, site_id)
334
+ <pre><code class="language-sql">-- Grant user access to your documentation domain
335
+ INSERT INTO docbuilder_access (user_id, domain)
328
336
  VALUES (
329
337
  (SELECT id FROM auth.users WHERE email = &#39;user@example.com&#39;),
330
- &#39;your-site-id&#39;
338
+ &#39;docs.example.com&#39;
331
339
  );
340
+
341
+ -- Grant multiple users access
342
+ INSERT INTO docbuilder_access (user_id, domain)
343
+ SELECT id, &#39;docs.example.com&#39;
344
+ FROM auth.users
345
+ WHERE email IN (&#39;user1@example.com&#39;, &#39;user2@example.com&#39;, &#39;user3@example.com&#39;);
332
346
  </code></pre>
333
347
  <h2>Deployment</h2>
334
348
  <h3>Build with Authentication</h3>
@@ -370,11 +384,10 @@ npx @knowcode/doc-builder auth:list-users --site-id xxx
370
384
  </ul>
371
385
  <h3>Security Best Practices</h3>
372
386
  <ol>
373
- <li><p><strong>Use environment variables</strong> for sensitive config:</p>
387
+ <li><p><strong>Use environment variables</strong> for custom config (optional):</p>
374
388
  <pre><code class="language-javascript">auth: {
375
- supabaseUrl: process.env.SUPABASE_URL,
376
- supabaseAnonKey: process.env.SUPABASE_ANON_KEY,
377
- siteId: process.env.DOC_SITE_ID
389
+ supabaseUrl: process.env.SUPABASE_URL || defaultUrl,
390
+ supabaseAnonKey: process.env.SUPABASE_ANON_KEY || defaultKey
378
391
  }
379
392
  </code></pre>
380
393
  </li>
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.973Z",
102
- "dateModified": "2025-07-26T10:38:41.973Z",
101
+ "datePublished": "2025-07-26T11:44:31.484Z",
102
+ "dateModified": "2025-07-26T11:44:31.484Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/claude-workflow-guide.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.977Z",
102
- "dateModified": "2025-07-26T10:38:41.977Z",
101
+ "datePublished": "2025-07-26T11:44:31.488Z",
102
+ "dateModified": "2025-07-26T11:44:31.488Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/documentation-standards.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.979Z",
102
- "dateModified": "2025-07-26T10:38:41.979Z",
101
+ "datePublished": "2025-07-26T11:44:31.490Z",
102
+ "dateModified": "2025-07-26T11:44:31.490Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/phosphor-icons-guide.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.982Z",
102
- "dateModified": "2025-07-26T10:38:41.982Z",
101
+ "datePublished": "2025-07-26T11:44:31.493Z",
102
+ "dateModified": "2025-07-26T11:44:31.493Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/private-directory-authentication.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -308,34 +332,52 @@ module.exports = {
308
332
  };
309
333
  </code></pre>
310
334
  <h3>2. Create Access Control Table</h3>
311
- <p>In your Supabase dashboard, run this SQL to create the access control table:</p>
335
+ <p>In your Supabase dashboard, run this SQL (or use setup-database-v2.sql):</p>
312
336
  <pre><code class="language-sql">CREATE TABLE docbuilder_access (
313
- id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
314
337
  user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
315
- site_id TEXT NOT NULL,
338
+ domain TEXT NOT NULL,
316
339
  created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
317
- UNIQUE(user_id, site_id)
340
+ PRIMARY KEY (user_id, domain)
318
341
  );
342
+
343
+ -- Create index for performance
344
+ CREATE INDEX idx_docbuilder_access_domain ON docbuilder_access(domain);
345
+
346
+ -- Enable Row Level Security
347
+ ALTER TABLE docbuilder_access ENABLE ROW LEVEL SECURITY;
348
+
349
+ -- RLS Policy
350
+ CREATE POLICY &quot;Users see own access&quot; ON docbuilder_access
351
+ FOR SELECT USING (user_id = auth.uid());
319
352
  </code></pre>
320
353
  <h3>3. Grant User Access</h3>
321
- <p>Add authorized users by inserting records:</p>
354
+ <p>Add authorized users by domain:</p>
322
355
  <pre><code class="language-sql">-- First, create a user in Supabase Auth
323
- -- Then grant them access to your documentation
324
- INSERT INTO docbuilder_access (user_id, site_id)
325
- VALUES (&#39;user-uuid-from-auth-users&#39;, &#39;your-site-id&#39;);
356
+ -- Then grant them access to your documentation domain
357
+ INSERT INTO docbuilder_access (user_id, domain)
358
+ VALUES (&#39;user-uuid-from-auth-users&#39;, &#39;docs.example.com&#39;);
359
+
360
+ -- Or grant access to multiple domains
361
+ INSERT INTO docbuilder_access (user_id, domain) VALUES
362
+ (&#39;user-uuid&#39;, &#39;docs.example.com&#39;),
363
+ (&#39;user-uuid&#39;, &#39;staging-docs.example.com&#39;),
364
+ (&#39;user-uuid&#39;, &#39;localhost:3000&#39;);
326
365
  </code></pre>
327
366
  <h3>Automatic Credential Configuration</h3>
328
- <p>Starting from version 1.8.2, Supabase credentials are automatically configured:</p>
367
+ <p>Starting from version 1.8.2, authentication is truly zero-configuration:</p>
329
368
  <ul>
330
369
  <li>All doc-builder sites share the same Supabase authentication database</li>
331
370
  <li>Credentials are built into the package - no manual configuration needed</li>
332
- <li>Each site gets a unique auto-generated site ID</li>
333
- <li>You just need to add the site ID to the database to grant user access</li>
371
+ <li>No site IDs needed - the system uses your domain automatically</li>
372
+ <li>Just grant users access to your domain in the database</li>
334
373
  </ul>
335
- <p><strong>Note</strong>: The auto-generated site ID is displayed during build:</p>
374
+ <p><strong>Note</strong>: When you build with a private directory:</p>
336
375
  <pre><code>🔐 Found private directory - automatically enabling Supabase authentication
337
- 📋 Generated site ID: documentation-1753525200000-abc123
338
- Note: Add this site ID to your Supabase database to enable user access
376
+ Note: Grant users access by adding domain to the docbuilder_access table
377
+ </code></pre>
378
+ <p><strong>Example</strong>: For a site at <code>docs.example.com</code>, grant access with:</p>
379
+ <pre><code class="language-sql">INSERT INTO docbuilder_access (user_id, domain)
380
+ VALUES (&#39;user-uuid&#39;, &#39;docs.example.com&#39;);
339
381
  </code></pre>
340
382
  <h2>Best Practices</h2>
341
383
  <h3>Choosing the Right Mode</h3>
@@ -98,8 +98,8 @@
98
98
  "name": "Knowcode Ltd",
99
99
  "url": "https://knowcode.tech"
100
100
  },
101
- "datePublished": "2025-07-26T10:38:41.983Z",
102
- "dateModified": "2025-07-26T10:38:41.983Z",
101
+ "datePublished": "2025-07-26T11:44:31.494Z",
102
+ "dateModified": "2025-07-26T11:44:31.494Z",
103
103
  "mainEntityOfPage": {
104
104
  "@type": "WebPage",
105
105
  "@id": "https://doc-builder-delta.vercel.app/guides/public-site-deployment.html"
@@ -138,7 +138,7 @@
138
138
 
139
139
  <div class="header-actions">
140
140
  <div class="deployment-info">
141
- <span class="deployment-date" title="Built with doc-builder v1.8.1">Last updated: Jul 26, 2025, 10:38 AM UTC</span>
141
+ <span class="deployment-date" title="Built with doc-builder v1.8.3">Last updated: Jul 26, 2025, 11:44 AM UTC</span>
142
142
  </div>
143
143
 
144
144
 
@@ -212,6 +212,30 @@
212
212
  <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>
213
213
  <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>
214
214
  <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>
215
+ <div class="nav-section private-nav" data-level="1">
216
+ <a class="nav-title collapsible" href="#" data-target="nav-private-1" >
217
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Private
218
+ </a>
219
+ <div class="nav-content collapsed" id="nav-private-1">
220
+ <a href="/private/cache-control-anti-pattern.html" class="nav-item" data-tooltip="Cache Control Anti-Pattern: Why Aggressive Cache-Busting is Bad for Documentation Sites."><i class="fas fa-file-alt"></i> Cache Control Anti Pattern</a>
221
+ <a href="/private/next-steps-walkthrough.html" class="nav-item" data-tooltip="Now that we&#039;ve implemented Supabase authentication, let&#039;s walk through testing the implementation and preparing for deployment."><i class="fas fa-file-alt"></i> Next Steps Walkthrough</a>
222
+ <a href="/private/supabase-auth-implementation-completed.html" class="nav-item" data-tooltip="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Completed</a>
223
+ <a href="/private/supabase-auth-implementation-plan.html" class="nav-item" data-tooltip="Supabase Auth Implementation Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Implementation Plan</a>
224
+ <a href="/private/supabase-auth-integration-plan.html" class="nav-item" data-tooltip="Supabase Authentication Integration Plan for @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Supabase Auth Integration Plan</a>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ <div class="nav-section private-nav" data-level="2">
229
+ <a class="nav-title collapsible" href="/private/launch/README.html" data-target="nav-private-launch-2" >
230
+ <i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Launch
231
+ </a>
232
+ <div class="nav-content collapsed" id="nav-private-launch-2">
233
+ <a href="/private/launch/README.html" class="nav-item" data-tooltip="This directory contains all documentation related to the commercial launch of @knowcode/doc-builder, including go-to-market strategy, platform..."><i class="fas fa-file-alt"></i> Launch Overview</a>
234
+ <a href="/private/launch/auth-cleanup-summary.html" class="nav-item" data-tooltip="All references to the old client-side authentication system have been removed from @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Auth Cleanup Summary</a>
235
+ <a href="/private/launch/bubble-plugin-specification.html" class="nav-item" data-tooltip="This document outlines the technical specification for creating a Bubble.io plugin that integrates @knowcode/doc-builder, enabling Bubble developers..."><i class="fas fa-file-alt"></i> Bubble Plugin Specification</a>
236
+ <a href="/private/launch/go-to-market-strategy.html" class="nav-item" data-tooltip="Go-to-Market Strategy &amp; Product Launch Plan."><i class="fas fa-file-alt"></i> Go To Market Strategy</a>
237
+ <a href="/private/launch/launch-announcements.html" class="nav-item" data-tooltip="This document contains ready-to-use announcement templates for launching @knowcode/doc-builder across various platforms and channels."><i class="fas fa-file-alt"></i> Launch Announcements</a>
238
+ <a href="/private/launch/vercel-deployment-auth-setup.html" class="nav-item" data-tooltip="Vercel Deployment Authentication Setup Guide."><i class="fas fa-file-alt"></i> Vercel Deployment Auth Setup</a></div></div>
215
239
  </nav>
216
240
  <div class="resize-handle"></div>
217
241
  </aside>
@@ -270,9 +294,9 @@ npx @knowcode/doc-builder deploy -c public-doc-builder.config.js
270
294
  authentication: &#39;supabase&#39;
271
295
  },
272
296
  auth: {
273
- supabaseUrl: &#39;https://xxx.supabase.co&#39;,
274
- supabaseAnonKey: &#39;your-anon-key&#39;,
275
- siteId: &#39;your-site-id&#39;
297
+ supabaseUrl: &#39;https://xxx.supabase.co&#39;, // Optional - has defaults
298
+ supabaseAnonKey: &#39;your-anon-key&#39; // Optional - has defaults
299
+ // Domain-based auth - no siteId needed!
276
300
  }
277
301
  </code></pre>
278
302
  <ul>
@@ -338,11 +362,10 @@ npx @knowcode/doc-builder deploy -c public-config.js
338
362
  <p>If you were using Supabase authentication and want to make your site public:</p>
339
363
  <ol>
340
364
  <li><p><strong>Remove auth config</strong>:</p>
341
- <pre><code class="language-javascript">// Remove this:
365
+ <pre><code class="language-javascript">// Remove this (or keep for custom Supabase):
342
366
  auth: {
343
367
  supabaseUrl: &#39;https://xxx.supabase.co&#39;,
344
- supabaseAnonKey: &#39;xxx&#39;,
345
- siteId: &#39;xxx&#39;
368
+ supabaseAnonKey: &#39;xxx&#39;
346
369
  }
347
370
  </code></pre>
348
371
  </li>