@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.
- package/.claude/settings.local.json +5 -1
- package/CHANGELOG.md +39 -3
- package/README.md +4 -4
- package/assets/css/notion-style.css +26 -0
- package/cli.js +9 -40
- package/debug-login.sql +30 -0
- package/html/README.html +27 -3
- package/html/auth.js +2 -2
- package/html/css/notion-style.css +26 -0
- package/html/documentation-index.html +27 -3
- package/html/guides/authentication-default-change.html +27 -3
- package/html/guides/authentication-guide.html +58 -45
- package/html/guides/claude-workflow-guide.html +27 -3
- package/html/guides/documentation-standards.html +27 -3
- package/html/guides/phosphor-icons-guide.html +27 -3
- package/html/guides/private-directory-authentication.html +59 -17
- package/html/guides/public-site-deployment.html +32 -9
- package/html/guides/search-engine-verification-guide.html +27 -3
- package/html/guides/seo-guide.html +27 -3
- package/html/guides/seo-optimization-guide.html +27 -3
- package/html/guides/troubleshooting-guide.html +27 -3
- package/html/guides/windows-setup-guide.html +27 -3
- package/html/index.html +27 -3
- package/html/js/auth.js +2 -2
- package/html/login.html +2 -2
- package/html/private/cache-control-anti-pattern.html +5 -5
- package/html/private/launch/README.html +5 -5
- package/html/private/launch/auth-cleanup-summary.html +5 -5
- package/html/private/launch/bubble-plugin-specification.html +5 -5
- package/html/private/launch/go-to-market-strategy.html +5 -5
- package/html/private/launch/launch-announcements.html +5 -5
- package/html/private/launch/vercel-deployment-auth-setup.html +27 -21
- package/html/private/next-steps-walkthrough.html +18 -45
- package/html/private/supabase-auth-implementation-completed.html +8 -8
- package/html/private/supabase-auth-implementation-plan.html +16 -33
- package/html/private/supabase-auth-integration-plan.html +34 -69
- package/html/private/supabase-auth-setup-guide.html +73 -84
- package/html/private/test-private-doc.html +5 -5
- package/html/private/user-management-tooling.html +9 -15
- package/html/sitemap.xml +44 -44
- package/html/vercel-cli-setup-guide.html +27 -3
- package/html/vercel-first-time-setup-guide.html +27 -3
- package/lib/config.js +3 -11
- package/lib/core-builder.js +7 -12
- package/lib/shared-auth-config.js +2 -10
- package/lib/supabase-auth.js +5 -11
- package/migrate-to-domain-auth.sql +47 -0
- package/package.json +1 -1
- package/setup-database-v2.sql +53 -0
- package/user-access-view.sql +49 -0
- package/user-management/README.md +9 -18
- 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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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>
|
|
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: 'My Documentation',
|
|
268
294
|
|
|
@@ -271,64 +297,52 @@
|
|
|
271
297
|
},
|
|
272
298
|
|
|
273
299
|
auth: {
|
|
274
|
-
supabaseUrl: 'https://your-project.supabase.co',
|
|
275
|
-
supabaseAnonKey: 'your-anon-key'
|
|
276
|
-
siteId: 'your-site-id' // From database after setup
|
|
300
|
+
supabaseUrl: 'https://your-project.supabase.co', // Optional - has defaults
|
|
301
|
+
supabaseAnonKey: 'your-anon-key' // 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
|
|
282
|
-
<pre><code class="language-sql">--
|
|
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
|
-
|
|
293
|
-
|
|
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
|
-
|
|
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
|
-
--
|
|
304
|
-
CREATE POLICY "
|
|
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 "Access visible to own user" ON docbuilder_access
|
|
322
|
+
-- RLS Policy: Users can only see their own access
|
|
323
|
+
CREATE POLICY "Users see own access" ON docbuilder_access
|
|
313
324
|
FOR SELECT USING (user_id = auth.uid());
|
|
314
325
|
</code></pre>
|
|
315
|
-
<h3>Step 4:
|
|
316
|
-
<
|
|
317
|
-
VALUES ('your-domain.com', 'Your Documentation Name');
|
|
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'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 > Users
|
|
323
331
|
-- Click "Invite user" 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
|
|
327
|
-
INSERT INTO docbuilder_access (user_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 = 'user@example.com'),
|
|
330
|
-
'
|
|
338
|
+
'docs.example.com'
|
|
331
339
|
);
|
|
340
|
+
|
|
341
|
+
-- Grant multiple users access
|
|
342
|
+
INSERT INTO docbuilder_access (user_id, domain)
|
|
343
|
+
SELECT id, 'docs.example.com'
|
|
344
|
+
FROM auth.users
|
|
345
|
+
WHERE email IN ('user1@example.com', 'user2@example.com', 'user3@example.com');
|
|
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
|
|
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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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
|
|
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
|
-
|
|
338
|
+
domain TEXT NOT NULL,
|
|
316
339
|
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
|
|
317
|
-
|
|
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 "Users see own access" 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
|
|
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,
|
|
325
|
-
VALUES ('user-uuid-from-auth-users', '
|
|
356
|
+
-- Then grant them access to your documentation domain
|
|
357
|
+
INSERT INTO docbuilder_access (user_id, domain)
|
|
358
|
+
VALUES ('user-uuid-from-auth-users', 'docs.example.com');
|
|
359
|
+
|
|
360
|
+
-- Or grant access to multiple domains
|
|
361
|
+
INSERT INTO docbuilder_access (user_id, domain) VALUES
|
|
362
|
+
('user-uuid', 'docs.example.com'),
|
|
363
|
+
('user-uuid', 'staging-docs.example.com'),
|
|
364
|
+
('user-uuid', 'localhost:3000');
|
|
326
365
|
</code></pre>
|
|
327
366
|
<h3>Automatic Credential Configuration</h3>
|
|
328
|
-
<p>Starting from version 1.8.2,
|
|
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>
|
|
333
|
-
<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>:
|
|
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
|
-
|
|
338
|
-
|
|
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 ('user-uuid', 'docs.example.com');
|
|
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-
|
|
102
|
-
"dateModified": "2025-07-
|
|
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.
|
|
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've implemented Supabase authentication, let'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 & 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: 'supabase'
|
|
271
295
|
},
|
|
272
296
|
auth: {
|
|
273
|
-
supabaseUrl: 'https://xxx.supabase.co',
|
|
274
|
-
supabaseAnonKey: 'your-anon-key'
|
|
275
|
-
|
|
297
|
+
supabaseUrl: 'https://xxx.supabase.co', // Optional - has defaults
|
|
298
|
+
supabaseAnonKey: 'your-anon-key' // 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: 'https://xxx.supabase.co',
|
|
344
|
-
supabaseAnonKey: 'xxx'
|
|
345
|
-
siteId: 'xxx'
|
|
368
|
+
supabaseAnonKey: 'xxx'
|
|
346
369
|
}
|
|
347
370
|
</code></pre>
|
|
348
371
|
</li>
|