@knowcode/doc-builder 1.9.30 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core-builder.js +164 -174
- package/lib/emoji-mapper.js +27 -12
- package/package.json +12 -2
- package/.claude/settings.local.json +0 -56
- package/CACHE-BUSTING-GUIDE.md +0 -82
- package/CLAUDE.md +0 -86
- package/CONTRIBUTING.md +0 -148
- package/GITHUB_SETUP.md +0 -203
- package/RELEASE-NOTES-1.7.5.md +0 -64
- package/Screenshot 2025-07-22 at 19.51.21.png +0 -0
- package/Screenshot 2025-07-26 at 17.06.49.png +0 -0
- package/add-user-clive.sql +0 -35
- package/add-user-lindsay-fixed.sql +0 -85
- package/add-user-lindsay.sql +0 -68
- package/add-user-pmorgan.sql +0 -35
- package/add-user-robbie.sql +0 -35
- package/add-wru-users.sql +0 -105
- package/debug-login.sql +0 -30
- package/doc-builder.config.js +0 -126
- package/doc-builder.config.js.backup.1753793768283 +0 -47
- package/doc-builder.config.js.backup.1753803964423 +0 -114
- package/doc-builder.config.js.backup.1753945707032 +0 -115
- package/doc-builder.config.js.backup.1754059241330 +0 -115
- package/doc-builder.config.js.backup.1754119567787 +0 -123
- package/doc-builder.config.js.backup.1754120048862 +0 -124
- package/doc-builder.config.js.backup.1754120529913 +0 -124
- package/doc-builder.config.js.backup.1754218469785 +0 -124
- package/doc-builder.config.js.backup.1754384764054 +0 -124
- package/doc-builder.config.js.backup.1754567425847 +0 -124
- package/doc-builder.config.js.backup.1754568137859 +0 -126
- package/doc-builder.config.js.backup.1754569388252 +0 -126
- package/doc-builder.config.js.backup.1754576694123 +0 -126
- package/doc-builder.config.js.backup.1755031374829 +0 -126
- package/doc-builder.config.js.backup.1755034500990 +0 -126
- package/doc-builder.config.js.backup.1755034809236 +0 -126
- package/grant-access.sql +0 -15
- package/html/11.png +0 -0
- package/html/404.html +0 -115
- package/html/README.html +0 -522
- package/html/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html/about-doc-builder.html +0 -491
- package/html/auth.js +0 -157
- package/html/claude-workflow-guide.html +0 -525
- package/html/css/notion-style.css +0 -2502
- package/html/documentation-index.html +0 -471
- package/html/guides/authentication-default-change.html +0 -370
- package/html/guides/authentication-guide.html +0 -509
- package/html/guides/cache-control-anti-pattern.html +0 -361
- package/html/guides/claude-workflow-guide.html +0 -1074
- package/html/guides/configuration-guide.html +0 -472
- package/html/guides/document-standards.html +0 -518
- package/html/guides/documentation-standards.html +0 -694
- package/html/guides/html-embedding-guide.html +0 -461
- package/html/guides/image-modal-guide.html +0 -515
- package/html/guides/next-steps-walkthrough.html +0 -638
- package/html/guides/phosphor-icons-guide.html +0 -584
- package/html/guides/private-directory-authentication-troubleshooting.html +0 -555
- package/html/guides/private-directory-authentication.html +0 -541
- package/html/guides/public-site-deployment.html +0 -431
- package/html/guides/search-engine-verification-guide.html +0 -542
- package/html/guides/seo-guide.html +0 -661
- package/html/guides/seo-optimization-guide.html +0 -887
- package/html/guides/supabase-auth-implementation-plan.html +0 -543
- package/html/guides/supabase-auth-integration-plan.html +0 -671
- package/html/guides/supabase-auth-setup-guide.html +0 -498
- package/html/guides/supabase-authentication-complete-guide.html +0 -866
- package/html/guides/troubleshooting-guide.html +0 -633
- package/html/guides/vercel-deployment-auth-setup.html +0 -337
- package/html/guides/windows-setup-guide.html +0 -859
- package/html/image-modal-test.html +0 -318
- package/html/index.html +0 -522
- package/html/js/auth.js +0 -157
- package/html/js/main.js +0 -1754
- package/html/launch/README.html +0 -297
- package/html/launch/bubble-plugin-specification.html +0 -933
- package/html/launch/go-to-market-strategy.html +0 -663
- package/html/launch/launch-announcements.html +0 -593
- package/html/login.html +0 -102
- package/html/logout.html +0 -18
- package/html/private/cache-control-anti-pattern.html +0 -429
- package/html/private/launch/README.html +0 -371
- package/html/private/launch/auth-cleanup-summary.html +0 -361
- package/html/private/launch/bubble-plugin-specification.html +0 -1007
- package/html/private/launch/go-to-market-strategy.html +0 -737
- package/html/private/launch/launch-announcements.html +0 -667
- package/html/private/launch/vercel-deployment-auth-setup.html +0 -417
- package/html/private/next-steps-walkthrough.html +0 -679
- package/html/private/supabase-auth-implementation-completed.html +0 -454
- package/html/private/supabase-auth-implementation-plan.html +0 -594
- package/html/private/supabase-auth-integration-plan.html +0 -704
- package/html/private/supabase-auth-setup-guide.html +0 -555
- package/html/private/test-private-doc.html +0 -302
- package/html/private/user-management-tooling.html +0 -601
- package/html/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html/prompts/beautiful-documentation-design.html +0 -784
- package/html/prompts/markdown-document-standards.html +0 -422
- package/html/prompts/project-rename-strategy-sasha-publish.html +0 -530
- package/html/robots.txt +0 -9
- package/html/sitemap.xml +0 -357
- package/html/test-questions/how-does-it-work%3F.html +0 -294
- package/html/test-questions/step-1%3A%20getting-started.html +0 -289
- package/html/test-questions/what-is-the-purpose.html +0 -293
- package/html/test-status.html +0 -281
- package/html/vercel-cli-setup-guide.html +0 -495
- package/html/vercel-first-time-setup-guide.html +0 -454
- package/html/vercel.json +0 -29
- package/html-static/11.png +0 -0
- package/html-static/404.html +0 -115
- package/html-static/README.html +0 -609
- package/html-static/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html-static/about-doc-builder.html +0 -578
- package/html-static/css/notion-style.css +0 -2502
- package/html-static/documentation-index.html +0 -558
- package/html-static/guides/authentication-default-change.html +0 -457
- package/html-static/guides/authentication-guide.html +0 -596
- package/html-static/guides/claude-workflow-guide.html +0 -1161
- package/html-static/guides/configuration-guide.html +0 -559
- package/html-static/guides/documentation-standards.html +0 -781
- package/html-static/guides/html-embedding-guide.html +0 -548
- package/html-static/guides/image-modal-guide.html +0 -602
- package/html-static/guides/phosphor-icons-guide.html +0 -671
- package/html-static/guides/private-directory-authentication-troubleshooting.html +0 -642
- package/html-static/guides/private-directory-authentication.html +0 -628
- package/html-static/guides/public-site-deployment.html +0 -518
- package/html-static/guides/search-engine-verification-guide.html +0 -629
- package/html-static/guides/seo-guide.html +0 -748
- package/html-static/guides/seo-optimization-guide.html +0 -974
- package/html-static/guides/supabase-authentication-complete-guide.html +0 -953
- package/html-static/guides/troubleshooting-guide.html +0 -720
- package/html-static/guides/windows-setup-guide.html +0 -946
- package/html-static/image-modal-test.html +0 -405
- package/html-static/index.html +0 -609
- package/html-static/js/main.js +0 -1754
- package/html-static/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html-static/prompts/beautiful-documentation-design.html +0 -871
- package/html-static/prompts/markdown-document-standards.html +0 -509
- package/html-static/prompts/project-rename-strategy-sasha-publish.html +0 -617
- package/html-static/robots.txt +0 -5
- package/html-static/sitemap.xml +0 -195
- package/html-static/test-questions/how-does-it-work%3F.html +0 -381
- package/html-static/test-questions/step-1%3A%20getting-started.html +0 -376
- package/html-static/test-questions/what-is-the-purpose.html +0 -380
- package/html-static/vercel-cli-setup-guide.html +0 -582
- package/html-static/vercel-first-time-setup-guide.html +0 -541
- package/manage-users.sql +0 -191
- package/migrate-to-domain-auth.sql +0 -47
- package/package/CACHE-BUSTING-GUIDE.md +0 -82
- package/package/CHANGELOG.md +0 -902
- package/package/README.md +0 -248
- package/package/assets/css/notion-style.css +0 -2211
- package/package/assets/js/auth.js +0 -67
- package/package/assets/js/main.js +0 -1565
- package/package/cli.js +0 -764
- package/package/index.js +0 -38
- package/package/knowcode-doc-builder-1.3.15.tgz +0 -0
- package/package/lib/builder.js +0 -32
- package/package/lib/config.js +0 -278
- package/package/lib/core-builder.js +0 -957
- package/package/lib/deploy.js +0 -497
- package/package/lib/dev-server.js +0 -96
- package/package/package.json +0 -34
- package/package/scripts/npx-runner.js +0 -27
- package/package/scripts/setup.js +0 -56
- package/package/test-cache-bust.sh +0 -43
- package/public-config.js +0 -22
- package/public-html/404.html +0 -115
- package/public-html/README.html +0 -149
- package/public-html/css/notion-style.css +0 -2036
- package/public-html/index.html +0 -149
- package/public-html/js/auth.js +0 -67
- package/public-html/js/main.js +0 -1485
- package/quick-test-commands.md +0 -40
- package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
- package/recordings/mh-ls-22jul.txt +0 -2305
- package/screenshot.png +0 -0
- package/scripts/Screenshot 2025-07-23 at 15.39.41.png +0 -0
- package/setup-database-v2.sql +0 -53
- package/setup-database.sql +0 -41
- package/test-auth-config.js +0 -17
- package/test-cache-bust.sh +0 -43
- package/test-docs/README.md +0 -39
- package/test-html/404.html +0 -115
- package/test-html/README.html +0 -172
- package/test-html/auth.js +0 -97
- package/test-html/css/notion-style.css +0 -2036
- package/test-html/index.html +0 -172
- package/test-html/js/auth.js +0 -97
- package/test-html/js/main.js +0 -1485
- package/test-html/login.html +0 -102
- package/test-html/logout.html +0 -18
- package/update-domain.sql +0 -9
- package/user-access-view.sql +0 -49
- package/user-management/README.md +0 -301
- package/user-management/add-users.sh +0 -776
- package/user-management/create-user.js +0 -65
- package/user-management/users.txt +0 -15
- package/view-all-users.sql +0 -40
- package/wru-auth-config.js +0 -17
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- ADD SINGLE USER: lindsay@knowcode.tech
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- =====================================================
|
|
5
|
-
|
|
6
|
-
-- STEP 1: Update domain (only run once - you've already done this)
|
|
7
|
-
-- UPDATE docbuilder_sites
|
|
8
|
-
-- SET domain = 'wru-bid-analysis.vercel.app',
|
|
9
|
-
-- name = 'WRU Bid Analysis Documentation'
|
|
10
|
-
-- WHERE id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
11
|
-
|
|
12
|
-
-- =====================================================
|
|
13
|
-
-- STEP 2: CHECK IF USER EXISTS (RUN THIS FIRST!)
|
|
14
|
-
-- =====================================================
|
|
15
|
-
SELECT email, id, created_at
|
|
16
|
-
FROM auth.users
|
|
17
|
-
WHERE email = 'lindsay@knowcode.tech';
|
|
18
|
-
|
|
19
|
-
-- ⚠️ IF THE ABOVE QUERY RETURNS NO ROWS, YOU MUST CREATE THE USER FIRST!
|
|
20
|
-
|
|
21
|
-
-- =====================================================
|
|
22
|
-
-- STEP 3: CREATE USER IN SUPABASE (if not exists)
|
|
23
|
-
-- =====================================================
|
|
24
|
-
-- Go to: https://supabase.com/dashboard/project/xcihhnfcitjrwbynxmka/auth/users
|
|
25
|
-
-- 1. Click the "Invite user" button
|
|
26
|
-
-- 2. Enter email: lindsay@knowcode.tech
|
|
27
|
-
-- 3. Click "Send invitation"
|
|
28
|
-
-- 4. User will receive email to set password
|
|
29
|
-
-- 5. WAIT for user to appear in the auth.users table before continuing!
|
|
30
|
-
|
|
31
|
-
-- =====================================================
|
|
32
|
-
-- STEP 4: VERIFY USER NOW EXISTS
|
|
33
|
-
-- =====================================================
|
|
34
|
-
-- Run this again to get the user ID:
|
|
35
|
-
SELECT email, id
|
|
36
|
-
FROM auth.users
|
|
37
|
-
WHERE email = 'lindsay@knowcode.tech';
|
|
38
|
-
|
|
39
|
-
-- Copy the ID from above (it will look like: 123e4567-e89b-12d3-a456-426614174000)
|
|
40
|
-
|
|
41
|
-
-- =====================================================
|
|
42
|
-
-- STEP 5: GRANT ACCESS (only after user exists!)
|
|
43
|
-
-- =====================================================
|
|
44
|
-
-- Option A: If Step 4 returned a user, run this:
|
|
45
|
-
INSERT INTO docbuilder_access (user_id, site_id)
|
|
46
|
-
SELECT
|
|
47
|
-
u.id,
|
|
48
|
-
'4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
49
|
-
FROM auth.users u
|
|
50
|
-
WHERE u.email = 'lindsay@knowcode.tech'
|
|
51
|
-
AND EXISTS (
|
|
52
|
-
SELECT 1 FROM auth.users WHERE email = 'lindsay@knowcode.tech'
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
-- Option B: If you have the user ID from Step 4, use it directly:
|
|
56
|
-
-- INSERT INTO docbuilder_access (user_id, site_id)
|
|
57
|
-
-- VALUES (
|
|
58
|
-
-- 'paste-user-id-here',
|
|
59
|
-
-- '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
60
|
-
-- );
|
|
61
|
-
|
|
62
|
-
-- =====================================================
|
|
63
|
-
-- STEP 6: VERIFY ACCESS WAS GRANTED
|
|
64
|
-
-- =====================================================
|
|
65
|
-
SELECT
|
|
66
|
-
u.email,
|
|
67
|
-
u.id as user_id,
|
|
68
|
-
da.created_at as access_granted
|
|
69
|
-
FROM docbuilder_access da
|
|
70
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
71
|
-
WHERE u.email = 'lindsay@knowcode.tech';
|
|
72
|
-
|
|
73
|
-
-- =====================================================
|
|
74
|
-
-- TROUBLESHOOTING
|
|
75
|
-
-- =====================================================
|
|
76
|
-
-- If you still get errors, check:
|
|
77
|
-
-- 1. Does the user exist?
|
|
78
|
-
SELECT COUNT(*) as user_exists FROM auth.users WHERE email = 'lindsay@knowcode.tech';
|
|
79
|
-
|
|
80
|
-
-- 2. Do they already have access?
|
|
81
|
-
SELECT COUNT(*) as has_access
|
|
82
|
-
FROM docbuilder_access da
|
|
83
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
84
|
-
WHERE u.email = 'lindsay@knowcode.tech'
|
|
85
|
-
AND da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
package/add-user-lindsay.sql
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- ADD SINGLE USER: lindsay@knowcode.tech
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- =====================================================
|
|
5
|
-
|
|
6
|
-
-- STEP 1: Update domain (only run once)
|
|
7
|
-
UPDATE docbuilder_sites
|
|
8
|
-
SET domain = 'wru-bid-analysis.vercel.app',
|
|
9
|
-
name = 'WRU Bid Analysis Documentation'
|
|
10
|
-
WHERE id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
11
|
-
|
|
12
|
-
-- Verify domain is correct
|
|
13
|
-
SELECT id, domain, name FROM docbuilder_sites
|
|
14
|
-
WHERE id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
15
|
-
|
|
16
|
-
-- =====================================================
|
|
17
|
-
-- STEP 2: Check if lindsay@knowcode.tech exists
|
|
18
|
-
-- =====================================================
|
|
19
|
-
SELECT email, id, created_at, last_sign_in_at
|
|
20
|
-
FROM auth.users
|
|
21
|
-
WHERE email = 'lindsay@knowcode.tech';
|
|
22
|
-
|
|
23
|
-
-- If NO RESULTS above, create the user:
|
|
24
|
-
-- 1. Go to: https://supabase.com/dashboard/project/xcihhnfcitjrwbynxmka/auth/users
|
|
25
|
-
-- 2. Click "Invite user"
|
|
26
|
-
-- 3. Enter: lindsay@knowcode.tech
|
|
27
|
-
-- 4. Click "Send invitation"
|
|
28
|
-
|
|
29
|
-
-- =====================================================
|
|
30
|
-
-- STEP 3: After user is created, grant access
|
|
31
|
-
-- =====================================================
|
|
32
|
-
-- Run this AFTER the user exists in Supabase
|
|
33
|
-
INSERT INTO docbuilder_access (user_id, site_id)
|
|
34
|
-
VALUES (
|
|
35
|
-
(SELECT id FROM auth.users WHERE email = 'lindsay@knowcode.tech'),
|
|
36
|
-
'4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
37
|
-
)
|
|
38
|
-
ON CONFLICT (user_id, site_id) DO NOTHING;
|
|
39
|
-
|
|
40
|
-
-- =====================================================
|
|
41
|
-
-- STEP 4: Verify access was granted
|
|
42
|
-
-- =====================================================
|
|
43
|
-
SELECT
|
|
44
|
-
u.email,
|
|
45
|
-
u.id as user_id,
|
|
46
|
-
da.created_at as access_granted,
|
|
47
|
-
ds.domain as site_domain
|
|
48
|
-
FROM docbuilder_access da
|
|
49
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
50
|
-
JOIN docbuilder_sites ds ON ds.id = da.site_id
|
|
51
|
-
WHERE u.email = 'lindsay@knowcode.tech'
|
|
52
|
-
AND da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
53
|
-
|
|
54
|
-
-- Should show:
|
|
55
|
-
-- email: lindsay@knowcode.tech
|
|
56
|
-
-- access_granted: (timestamp)
|
|
57
|
-
-- site_domain: wru-bid-analysis.vercel.app
|
|
58
|
-
|
|
59
|
-
-- =====================================================
|
|
60
|
-
-- TROUBLESHOOTING
|
|
61
|
-
-- =====================================================
|
|
62
|
-
-- If access wasn't granted, check for errors:
|
|
63
|
-
SELECT id, email FROM auth.users WHERE email = 'lindsay@knowcode.tech';
|
|
64
|
-
|
|
65
|
-
-- If user can't log in after getting access:
|
|
66
|
-
-- 1. Clear browser cache
|
|
67
|
-
-- 2. Check they're using correct URL: https://wru-bid-analysis.vercel.app/
|
|
68
|
-
-- 3. Verify they set their password from invite email
|
package/add-user-pmorgan.sql
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- ADD SINGLE USER: pmorgan@wru.cymru
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- =====================================================
|
|
5
|
-
|
|
6
|
-
-- STEP 1: Check if pmorgan@wru.cymru exists
|
|
7
|
-
SELECT email, id, created_at, last_sign_in_at
|
|
8
|
-
FROM auth.users
|
|
9
|
-
WHERE email = 'pmorgan@wru.cymru';
|
|
10
|
-
|
|
11
|
-
-- If NO RESULTS above, create the user:
|
|
12
|
-
-- 1. Go to: https://supabase.com/dashboard/project/xcihhnfcitjrwbynxmka/auth/users
|
|
13
|
-
-- 2. Click "Invite user"
|
|
14
|
-
-- 3. Enter: pmorgan@wru.cymru
|
|
15
|
-
-- 4. Click "Send invitation"
|
|
16
|
-
|
|
17
|
-
-- STEP 2: After user is created, grant access
|
|
18
|
-
INSERT INTO docbuilder_access (user_id, site_id)
|
|
19
|
-
VALUES (
|
|
20
|
-
(SELECT id FROM auth.users WHERE email = 'pmorgan@wru.cymru'),
|
|
21
|
-
'4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
22
|
-
)
|
|
23
|
-
ON CONFLICT (user_id, site_id) DO NOTHING;
|
|
24
|
-
|
|
25
|
-
-- STEP 3: Verify access was granted
|
|
26
|
-
SELECT
|
|
27
|
-
u.email,
|
|
28
|
-
u.id as user_id,
|
|
29
|
-
da.created_at as access_granted,
|
|
30
|
-
ds.domain as site_domain
|
|
31
|
-
FROM docbuilder_access da
|
|
32
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
33
|
-
JOIN docbuilder_sites ds ON ds.id = da.site_id
|
|
34
|
-
WHERE u.email = 'pmorgan@wru.cymru'
|
|
35
|
-
AND da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
package/add-user-robbie.sql
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- ADD SINGLE USER: robbie.macintosh@marbledropper.com
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- =====================================================
|
|
5
|
-
|
|
6
|
-
-- STEP 1: Check if robbie.macintosh@marbledropper.com exists
|
|
7
|
-
SELECT email, id, created_at, last_sign_in_at
|
|
8
|
-
FROM auth.users
|
|
9
|
-
WHERE email = 'robbie.macintosh@marbledropper.com';
|
|
10
|
-
|
|
11
|
-
-- If NO RESULTS above, create the user:
|
|
12
|
-
-- 1. Go to: https://supabase.com/dashboard/project/xcihhnfcitjrwbynxmka/auth/users
|
|
13
|
-
-- 2. Click "Invite user"
|
|
14
|
-
-- 3. Enter: robbie.macintosh@marbledropper.com
|
|
15
|
-
-- 4. Click "Send invitation"
|
|
16
|
-
|
|
17
|
-
-- STEP 2: After user is created, grant access
|
|
18
|
-
INSERT INTO docbuilder_access (user_id, site_id)
|
|
19
|
-
VALUES (
|
|
20
|
-
(SELECT id FROM auth.users WHERE email = 'robbie.macintosh@marbledropper.com'),
|
|
21
|
-
'4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
22
|
-
)
|
|
23
|
-
ON CONFLICT (user_id, site_id) DO NOTHING;
|
|
24
|
-
|
|
25
|
-
-- STEP 3: Verify access was granted
|
|
26
|
-
SELECT
|
|
27
|
-
u.email,
|
|
28
|
-
u.id as user_id,
|
|
29
|
-
da.created_at as access_granted,
|
|
30
|
-
ds.domain as site_domain
|
|
31
|
-
FROM docbuilder_access da
|
|
32
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
33
|
-
JOIN docbuilder_sites ds ON ds.id = da.site_id
|
|
34
|
-
WHERE u.email = 'robbie.macintosh@marbledropper.com'
|
|
35
|
-
AND da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
package/add-wru-users.sql
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- ADD USERS TO WRU BID ANALYSIS DOCUMENTATION
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- Date: 2025-07-25
|
|
5
|
-
-- =====================================================
|
|
6
|
-
|
|
7
|
-
-- STEP 1: Update the domain to match your Vercel deployment
|
|
8
|
-
UPDATE docbuilder_sites
|
|
9
|
-
SET domain = 'wru-bid-analysis.vercel.app',
|
|
10
|
-
name = 'WRU Bid Analysis Documentation'
|
|
11
|
-
WHERE id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
12
|
-
|
|
13
|
-
-- Verify the domain update
|
|
14
|
-
SELECT id, domain, name FROM docbuilder_sites
|
|
15
|
-
WHERE id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
16
|
-
|
|
17
|
-
-- =====================================================
|
|
18
|
-
-- STEP 2: CHECK IF USERS EXIST
|
|
19
|
-
-- =====================================================
|
|
20
|
-
-- Run this first to see which users already exist
|
|
21
|
-
SELECT email, id, created_at
|
|
22
|
-
FROM auth.users
|
|
23
|
-
WHERE email IN (
|
|
24
|
-
'pmorgan@wru.cymru',
|
|
25
|
-
'clive@hyperforma.co.uk',
|
|
26
|
-
'robbie.macintosh@marbledropper.com',
|
|
27
|
-
'lindsay@knowcode.tech'
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
-- =====================================================
|
|
31
|
-
-- IMPORTANT: CREATE MISSING USERS FIRST!
|
|
32
|
-
-- =====================================================
|
|
33
|
-
-- For any users that don't exist above:
|
|
34
|
-
-- 1. Go to Supabase Dashboard: https://supabase.com/dashboard/project/xcihhnfcitjrwbynxmka
|
|
35
|
-
-- 2. Navigate to Authentication → Users
|
|
36
|
-
-- 3. Click "Invite user"
|
|
37
|
-
-- 4. Enter each missing email address
|
|
38
|
-
-- 5. They'll receive an email to set their password
|
|
39
|
-
|
|
40
|
-
-- =====================================================
|
|
41
|
-
-- STEP 3: GRANT ACCESS TO ALL USERS
|
|
42
|
-
-- =====================================================
|
|
43
|
-
-- Run this after all users have been created
|
|
44
|
-
WITH users_to_add AS (
|
|
45
|
-
SELECT email FROM (VALUES
|
|
46
|
-
('pmorgan@wru.cymru'),
|
|
47
|
-
('clive@hyperforma.co.uk'),
|
|
48
|
-
('robbie.macintosh@marbledropper.com'),
|
|
49
|
-
('lindsay@knowcode.tech')
|
|
50
|
-
) AS t(email)
|
|
51
|
-
)
|
|
52
|
-
INSERT INTO docbuilder_access (user_id, site_id)
|
|
53
|
-
SELECT u.id, '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
54
|
-
FROM auth.users u
|
|
55
|
-
JOIN users_to_add ua ON u.email = ua.email
|
|
56
|
-
WHERE NOT EXISTS (
|
|
57
|
-
-- This prevents duplicate entries if someone already has access
|
|
58
|
-
SELECT 1 FROM docbuilder_access
|
|
59
|
-
WHERE user_id = u.id AND site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
-- =====================================================
|
|
63
|
-
-- STEP 4: VERIFY ACCESS WAS GRANTED
|
|
64
|
-
-- =====================================================
|
|
65
|
-
-- Check who now has access to the site
|
|
66
|
-
SELECT
|
|
67
|
-
u.email,
|
|
68
|
-
u.created_at as user_created,
|
|
69
|
-
da.created_at as access_granted,
|
|
70
|
-
CASE
|
|
71
|
-
WHEN u.last_sign_in_at IS NULL THEN 'Never logged in'
|
|
72
|
-
ELSE 'Has logged in'
|
|
73
|
-
END as login_status
|
|
74
|
-
FROM docbuilder_access da
|
|
75
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
76
|
-
WHERE da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
77
|
-
ORDER BY da.created_at DESC;
|
|
78
|
-
|
|
79
|
-
-- =====================================================
|
|
80
|
-
-- TROUBLESHOOTING
|
|
81
|
-
-- =====================================================
|
|
82
|
-
|
|
83
|
-
-- If someone can't log in, check if they exist:
|
|
84
|
-
SELECT * FROM auth.users WHERE email = 'user@example.com';
|
|
85
|
-
|
|
86
|
-
-- If someone still can't access after login, verify their access:
|
|
87
|
-
SELECT * FROM docbuilder_access
|
|
88
|
-
WHERE user_id = (SELECT id FROM auth.users WHERE email = 'user@example.com')
|
|
89
|
-
AND site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
90
|
-
|
|
91
|
-
-- To remove a user's access:
|
|
92
|
-
-- DELETE FROM docbuilder_access
|
|
93
|
-
-- WHERE user_id = (SELECT id FROM auth.users WHERE email = 'user@example.com')
|
|
94
|
-
-- AND site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
95
|
-
|
|
96
|
-
-- =====================================================
|
|
97
|
-
-- USERS BEING ADDED:
|
|
98
|
-
-- =====================================================
|
|
99
|
-
-- 1. pmorgan@wru.cymru
|
|
100
|
-
-- 2. clive@hyperforma.co.uk
|
|
101
|
-
-- 3. robbie.macintosh@marbledropper.com
|
|
102
|
-
-- 4. lindsay@knowcode.tech
|
|
103
|
-
--
|
|
104
|
-
-- Site URL: https://wru-bid-analysis.vercel.app/
|
|
105
|
-
-- Site ID: 4d8a53bf-dcdd-48c0-98e0-cd1451518735
|
package/debug-login.sql
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
-- Debug Login Issues
|
|
2
|
-
-- Run these queries in Supabase SQL Editor to diagnose login problems
|
|
3
|
-
|
|
4
|
-
-- 1. Check if your user exists
|
|
5
|
-
SELECT id, email, created_at, last_sign_in_at
|
|
6
|
-
FROM auth.users
|
|
7
|
-
WHERE email = 'YOUR_EMAIL_HERE'; -- Replace with your email
|
|
8
|
-
|
|
9
|
-
-- 2. Check what domains you have access to
|
|
10
|
-
SELECT da.domain, da.created_at as access_granted
|
|
11
|
-
FROM docbuilder_access da
|
|
12
|
-
JOIN auth.users u ON da.user_id = u.id
|
|
13
|
-
WHERE u.email = 'YOUR_EMAIL_HERE'; -- Replace with your email
|
|
14
|
-
|
|
15
|
-
-- 3. Check all users and their domains (admin view)
|
|
16
|
-
SELECT u.email, da.domain, da.created_at
|
|
17
|
-
FROM docbuilder_access da
|
|
18
|
-
JOIN auth.users u ON da.user_id = u.id
|
|
19
|
-
ORDER BY u.email, da.domain;
|
|
20
|
-
|
|
21
|
-
-- 4. If you need to grant yourself access to a domain
|
|
22
|
-
-- First get your user ID from query #1, then:
|
|
23
|
-
INSERT INTO docbuilder_access (user_id, domain)
|
|
24
|
-
VALUES ('YOUR_USER_ID', 'YOUR_DOMAIN_HERE');
|
|
25
|
-
-- Example domains: 'localhost:3000', 'doc-builder-delta.vercel.app', etc.
|
|
26
|
-
|
|
27
|
-
-- 5. Common domains to check/add:
|
|
28
|
-
-- For local development: 'localhost:3000' or 'localhost:8080'
|
|
29
|
-
-- For Vercel preview: 'your-app-name.vercel.app'
|
|
30
|
-
-- For production: 'docs.yourcompany.com'
|
package/doc-builder.config.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"configVersion": "1.9.29",
|
|
3
|
-
"docsDir": "docs",
|
|
4
|
-
"outputDir": "html",
|
|
5
|
-
"siteName": "@knowcode/doc-builder",
|
|
6
|
-
"siteDescription": "Beautiful documentation with the least effort possible",
|
|
7
|
-
"favicon": "✨",
|
|
8
|
-
"features": {
|
|
9
|
-
"authentication": false,
|
|
10
|
-
"changelog": true,
|
|
11
|
-
"mermaid": true,
|
|
12
|
-
"mermaidEnhanced": true,
|
|
13
|
-
"tooltips": true,
|
|
14
|
-
"search": false,
|
|
15
|
-
"darkMode": true,
|
|
16
|
-
"phosphorIcons": true,
|
|
17
|
-
"phosphorWeight": "regular",
|
|
18
|
-
"phosphorSize": "1.2em",
|
|
19
|
-
"normalizeTitle": true,
|
|
20
|
-
"showPdfDownload": true,
|
|
21
|
-
"menuDefaultOpen": false,
|
|
22
|
-
"attachments": true,
|
|
23
|
-
"dynamicNavIcons": true,
|
|
24
|
-
"subtleColors": true,
|
|
25
|
-
"privateDirectoryAuth": false,
|
|
26
|
-
"banner": false,
|
|
27
|
-
"staticOutput": true
|
|
28
|
-
},
|
|
29
|
-
"staticOutputDir": "html-static",
|
|
30
|
-
"auth": {
|
|
31
|
-
"supabaseUrl": "https://xcihhnfcitjrwbynxmka.supabase.co",
|
|
32
|
-
"supabaseAnonKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhjaWhobmZjaXRqcndieW54bWthIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM0Mzc2MzcsImV4cCI6MjA2OTAxMzYzN30.zvWp3JFIR8fBIiwuFF5gqOR_Kxb42baZS5fsBz60XOY"
|
|
33
|
-
},
|
|
34
|
-
"changelog": {
|
|
35
|
-
"daysBack": 14,
|
|
36
|
-
"enabled": true
|
|
37
|
-
},
|
|
38
|
-
"banner": {
|
|
39
|
-
"enabled": false,
|
|
40
|
-
"text": "This documentation is a preview version - some content may be incomplete",
|
|
41
|
-
"icon": "fas fa-exclamation-triangle",
|
|
42
|
-
"type": "warning",
|
|
43
|
-
"dismissible": true
|
|
44
|
-
},
|
|
45
|
-
"folderOrder": [],
|
|
46
|
-
"folderDescriptions": {},
|
|
47
|
-
"folderIcons": {},
|
|
48
|
-
"deployment": {
|
|
49
|
-
"platform": "vercel",
|
|
50
|
-
"outputDirectory": "html"
|
|
51
|
-
},
|
|
52
|
-
"seo": {
|
|
53
|
-
"enabled": true,
|
|
54
|
-
"siteUrl": "https://doc-builder-delta.vercel.app",
|
|
55
|
-
"author": "Lindsay Smith",
|
|
56
|
-
"twitterHandle": "@planbbackups",
|
|
57
|
-
"language": "en-US",
|
|
58
|
-
"keywords": [
|
|
59
|
-
"documentation",
|
|
60
|
-
"markdown",
|
|
61
|
-
"static site generator",
|
|
62
|
-
"vercel",
|
|
63
|
-
"notion-style"
|
|
64
|
-
],
|
|
65
|
-
"titleTemplate": "{pageTitle} | {siteName}",
|
|
66
|
-
"autoKeywords": true,
|
|
67
|
-
"keywordLimit": 7,
|
|
68
|
-
"descriptionFallback": "smart",
|
|
69
|
-
"organization": {
|
|
70
|
-
"name": "Knowcode Ltd",
|
|
71
|
-
"url": "https://knowcode.tech",
|
|
72
|
-
"logo": ""
|
|
73
|
-
},
|
|
74
|
-
"ogImage": "/og-default.png",
|
|
75
|
-
"generateSitemap": true,
|
|
76
|
-
"generateRobotsTxt": true,
|
|
77
|
-
"customMetaTags": [
|
|
78
|
-
{
|
|
79
|
-
"name": "google-site-verification",
|
|
80
|
-
"content": "FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "msvalidate.01",
|
|
84
|
-
"content": "B2D8C4C12C530D47AA962B24CAA09630"
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"attachmentTypes": [
|
|
89
|
-
".pdf",
|
|
90
|
-
".doc",
|
|
91
|
-
".docx",
|
|
92
|
-
".xls",
|
|
93
|
-
".xlsx",
|
|
94
|
-
".csv",
|
|
95
|
-
".ppt",
|
|
96
|
-
".pptx",
|
|
97
|
-
".txt",
|
|
98
|
-
".rtf",
|
|
99
|
-
".html",
|
|
100
|
-
".htm",
|
|
101
|
-
".zip",
|
|
102
|
-
".tar",
|
|
103
|
-
".gz",
|
|
104
|
-
".7z",
|
|
105
|
-
".rar",
|
|
106
|
-
".png",
|
|
107
|
-
".jpg",
|
|
108
|
-
".jpeg",
|
|
109
|
-
".gif",
|
|
110
|
-
".svg",
|
|
111
|
-
".webp",
|
|
112
|
-
".ico",
|
|
113
|
-
".bmp",
|
|
114
|
-
".json",
|
|
115
|
-
".xml",
|
|
116
|
-
".yaml",
|
|
117
|
-
".yml",
|
|
118
|
-
".toml",
|
|
119
|
-
".mp4",
|
|
120
|
-
".mp3",
|
|
121
|
-
".wav",
|
|
122
|
-
".avi",
|
|
123
|
-
".mov"
|
|
124
|
-
],
|
|
125
|
-
"productionUrl": "https://doc-builder-delta.vercel.app"
|
|
126
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"configVersion": "1.9.6",
|
|
3
|
-
"siteName": "@knowcode/doc-builder",
|
|
4
|
-
"siteDescription": "Beautiful documentation with the least effort possible",
|
|
5
|
-
"docsDir": "docs",
|
|
6
|
-
"outputDir": "html",
|
|
7
|
-
"productionUrl": "https://doc-builder-delta.vercel.app",
|
|
8
|
-
"features": {
|
|
9
|
-
"authentication": false,
|
|
10
|
-
"changelog": true,
|
|
11
|
-
"mermaid": true,
|
|
12
|
-
"darkMode": true,
|
|
13
|
-
"phosphorIcons": true,
|
|
14
|
-
"menuDefaultOpen": false
|
|
15
|
-
},
|
|
16
|
-
"seo": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"siteUrl": "https://doc-builder-delta.vercel.app",
|
|
19
|
-
"author": "Lindsay Smith",
|
|
20
|
-
"twitterHandle": "@planbbackups",
|
|
21
|
-
"language": "en-US",
|
|
22
|
-
"keywords": [
|
|
23
|
-
"documentation",
|
|
24
|
-
"markdown",
|
|
25
|
-
"static site generator",
|
|
26
|
-
"vercel",
|
|
27
|
-
"notion-style"
|
|
28
|
-
],
|
|
29
|
-
"generateSitemap": true,
|
|
30
|
-
"generateRobotsTxt": true,
|
|
31
|
-
"ogImage": "/og-default.png",
|
|
32
|
-
"organization": {
|
|
33
|
-
"name": "Knowcode Ltd",
|
|
34
|
-
"url": "https://knowcode.tech"
|
|
35
|
-
},
|
|
36
|
-
"customMetaTags": [
|
|
37
|
-
{
|
|
38
|
-
"name": "google-site-verification",
|
|
39
|
-
"content": "FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "msvalidate.01",
|
|
43
|
-
"content": "B2D8C4C12C530D47AA962B24CAA09630"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"configVersion": "1.9.7",
|
|
3
|
-
"docsDir": "docs",
|
|
4
|
-
"outputDir": "html",
|
|
5
|
-
"siteName": "@knowcode/doc-builder",
|
|
6
|
-
"siteDescription": "Beautiful documentation with the least effort possible",
|
|
7
|
-
"favicon": "✨",
|
|
8
|
-
"features": {
|
|
9
|
-
"authentication": false,
|
|
10
|
-
"changelog": true,
|
|
11
|
-
"mermaid": true,
|
|
12
|
-
"tooltips": true,
|
|
13
|
-
"search": false,
|
|
14
|
-
"darkMode": true,
|
|
15
|
-
"phosphorIcons": true,
|
|
16
|
-
"phosphorWeight": "regular",
|
|
17
|
-
"phosphorSize": "1.2em",
|
|
18
|
-
"normalizeTitle": true,
|
|
19
|
-
"showPdfDownload": true,
|
|
20
|
-
"menuDefaultOpen": false,
|
|
21
|
-
"attachments": true,
|
|
22
|
-
"dynamicNavIcons": true,
|
|
23
|
-
"subtleColors": true
|
|
24
|
-
},
|
|
25
|
-
"auth": {
|
|
26
|
-
"supabaseUrl": "https://xcihhnfcitjrwbynxmka.supabase.co",
|
|
27
|
-
"supabaseAnonKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhjaWhobmZjaXRqcndieW54bWthIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM0Mzc2MzcsImV4cCI6MjA2OTAxMzYzN30.zvWp3JFIR8fBIiwuFF5gqOR_Kxb42baZS5fsBz60XOY"
|
|
28
|
-
},
|
|
29
|
-
"changelog": {
|
|
30
|
-
"daysBack": 14,
|
|
31
|
-
"enabled": true
|
|
32
|
-
},
|
|
33
|
-
"folderOrder": [],
|
|
34
|
-
"folderDescriptions": {},
|
|
35
|
-
"folderIcons": {},
|
|
36
|
-
"deployment": {
|
|
37
|
-
"platform": "vercel",
|
|
38
|
-
"outputDirectory": "html"
|
|
39
|
-
},
|
|
40
|
-
"seo": {
|
|
41
|
-
"enabled": true,
|
|
42
|
-
"siteUrl": "https://doc-builder-delta.vercel.app",
|
|
43
|
-
"author": "Lindsay Smith",
|
|
44
|
-
"twitterHandle": "@planbbackups",
|
|
45
|
-
"language": "en-US",
|
|
46
|
-
"keywords": [
|
|
47
|
-
"documentation",
|
|
48
|
-
"markdown",
|
|
49
|
-
"static site generator",
|
|
50
|
-
"vercel",
|
|
51
|
-
"notion-style"
|
|
52
|
-
],
|
|
53
|
-
"titleTemplate": "{pageTitle} | {siteName}",
|
|
54
|
-
"autoKeywords": true,
|
|
55
|
-
"keywordLimit": 7,
|
|
56
|
-
"descriptionFallback": "smart",
|
|
57
|
-
"organization": {
|
|
58
|
-
"name": "Knowcode Ltd",
|
|
59
|
-
"url": "https://knowcode.tech",
|
|
60
|
-
"logo": ""
|
|
61
|
-
},
|
|
62
|
-
"ogImage": "/og-default.png",
|
|
63
|
-
"generateSitemap": true,
|
|
64
|
-
"generateRobotsTxt": true,
|
|
65
|
-
"customMetaTags": [
|
|
66
|
-
{
|
|
67
|
-
"name": "google-site-verification",
|
|
68
|
-
"content": "FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "msvalidate.01",
|
|
72
|
-
"content": "B2D8C4C12C530D47AA962B24CAA09630"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"attachmentTypes": [
|
|
77
|
-
".pdf",
|
|
78
|
-
".doc",
|
|
79
|
-
".docx",
|
|
80
|
-
".xls",
|
|
81
|
-
".xlsx",
|
|
82
|
-
".csv",
|
|
83
|
-
".ppt",
|
|
84
|
-
".pptx",
|
|
85
|
-
".txt",
|
|
86
|
-
".rtf",
|
|
87
|
-
".html",
|
|
88
|
-
".htm",
|
|
89
|
-
".zip",
|
|
90
|
-
".tar",
|
|
91
|
-
".gz",
|
|
92
|
-
".7z",
|
|
93
|
-
".rar",
|
|
94
|
-
".png",
|
|
95
|
-
".jpg",
|
|
96
|
-
".jpeg",
|
|
97
|
-
".gif",
|
|
98
|
-
".svg",
|
|
99
|
-
".webp",
|
|
100
|
-
".ico",
|
|
101
|
-
".bmp",
|
|
102
|
-
".json",
|
|
103
|
-
".xml",
|
|
104
|
-
".yaml",
|
|
105
|
-
".yml",
|
|
106
|
-
".toml",
|
|
107
|
-
".mp4",
|
|
108
|
-
".mp3",
|
|
109
|
-
".wav",
|
|
110
|
-
".avi",
|
|
111
|
-
".mov"
|
|
112
|
-
],
|
|
113
|
-
"productionUrl": "https://doc-builder-delta.vercel.app"
|
|
114
|
-
};
|