@knowcode/doc-builder 1.9.29 → 1.9.31

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 (197) hide show
  1. package/assets/js/main.js +7 -0
  2. package/lib/core-builder.js +18 -1
  3. package/package.json +12 -2
  4. package/.claude/settings.local.json +0 -56
  5. package/CACHE-BUSTING-GUIDE.md +0 -82
  6. package/CLAUDE.md +0 -86
  7. package/CONTRIBUTING.md +0 -148
  8. package/GITHUB_SETUP.md +0 -203
  9. package/RELEASE-NOTES-1.7.5.md +0 -64
  10. package/Screenshot 2025-07-22 at 19.51.21.png +0 -0
  11. package/Screenshot 2025-07-26 at 17.06.49.png +0 -0
  12. package/add-user-clive.sql +0 -35
  13. package/add-user-lindsay-fixed.sql +0 -85
  14. package/add-user-lindsay.sql +0 -68
  15. package/add-user-pmorgan.sql +0 -35
  16. package/add-user-robbie.sql +0 -35
  17. package/add-wru-users.sql +0 -105
  18. package/debug-login.sql +0 -30
  19. package/doc-builder.config.js +0 -126
  20. package/doc-builder.config.js.backup.1753793768283 +0 -47
  21. package/doc-builder.config.js.backup.1753803964423 +0 -114
  22. package/doc-builder.config.js.backup.1753945707032 +0 -115
  23. package/doc-builder.config.js.backup.1754059241330 +0 -115
  24. package/doc-builder.config.js.backup.1754119567787 +0 -123
  25. package/doc-builder.config.js.backup.1754120048862 +0 -124
  26. package/doc-builder.config.js.backup.1754120529913 +0 -124
  27. package/doc-builder.config.js.backup.1754218469785 +0 -124
  28. package/doc-builder.config.js.backup.1754384764054 +0 -124
  29. package/doc-builder.config.js.backup.1754567425847 +0 -124
  30. package/doc-builder.config.js.backup.1754568137859 +0 -126
  31. package/doc-builder.config.js.backup.1754569388252 +0 -126
  32. package/doc-builder.config.js.backup.1754576694123 +0 -126
  33. package/doc-builder.config.js.backup.1755031374829 +0 -126
  34. package/doc-builder.config.js.backup.1755034500990 +0 -126
  35. package/grant-access.sql +0 -15
  36. package/html/11.png +0 -0
  37. package/html/404.html +0 -115
  38. package/html/README.html +0 -522
  39. package/html/Screenshot 2025-08-12 at 21.35.07.png +0 -0
  40. package/html/about-doc-builder.html +0 -491
  41. package/html/auth.js +0 -157
  42. package/html/claude-workflow-guide.html +0 -525
  43. package/html/css/notion-style.css +0 -2502
  44. package/html/documentation-index.html +0 -471
  45. package/html/guides/authentication-default-change.html +0 -370
  46. package/html/guides/authentication-guide.html +0 -509
  47. package/html/guides/cache-control-anti-pattern.html +0 -361
  48. package/html/guides/claude-workflow-guide.html +0 -1074
  49. package/html/guides/configuration-guide.html +0 -472
  50. package/html/guides/document-standards.html +0 -518
  51. package/html/guides/documentation-standards.html +0 -694
  52. package/html/guides/html-embedding-guide.html +0 -461
  53. package/html/guides/image-modal-guide.html +0 -515
  54. package/html/guides/next-steps-walkthrough.html +0 -638
  55. package/html/guides/phosphor-icons-guide.html +0 -584
  56. package/html/guides/private-directory-authentication-troubleshooting.html +0 -555
  57. package/html/guides/private-directory-authentication.html +0 -541
  58. package/html/guides/public-site-deployment.html +0 -431
  59. package/html/guides/search-engine-verification-guide.html +0 -542
  60. package/html/guides/seo-guide.html +0 -661
  61. package/html/guides/seo-optimization-guide.html +0 -887
  62. package/html/guides/supabase-auth-implementation-plan.html +0 -543
  63. package/html/guides/supabase-auth-integration-plan.html +0 -671
  64. package/html/guides/supabase-auth-setup-guide.html +0 -498
  65. package/html/guides/supabase-authentication-complete-guide.html +0 -866
  66. package/html/guides/troubleshooting-guide.html +0 -633
  67. package/html/guides/vercel-deployment-auth-setup.html +0 -337
  68. package/html/guides/windows-setup-guide.html +0 -859
  69. package/html/image-modal-test.html +0 -318
  70. package/html/index.html +0 -522
  71. package/html/js/auth.js +0 -157
  72. package/html/js/main.js +0 -1747
  73. package/html/launch/README.html +0 -297
  74. package/html/launch/bubble-plugin-specification.html +0 -933
  75. package/html/launch/go-to-market-strategy.html +0 -663
  76. package/html/launch/launch-announcements.html +0 -593
  77. package/html/login.html +0 -102
  78. package/html/logout.html +0 -18
  79. package/html/private/cache-control-anti-pattern.html +0 -429
  80. package/html/private/launch/README.html +0 -371
  81. package/html/private/launch/auth-cleanup-summary.html +0 -361
  82. package/html/private/launch/bubble-plugin-specification.html +0 -1007
  83. package/html/private/launch/go-to-market-strategy.html +0 -737
  84. package/html/private/launch/launch-announcements.html +0 -667
  85. package/html/private/launch/vercel-deployment-auth-setup.html +0 -417
  86. package/html/private/next-steps-walkthrough.html +0 -679
  87. package/html/private/supabase-auth-implementation-completed.html +0 -454
  88. package/html/private/supabase-auth-implementation-plan.html +0 -594
  89. package/html/private/supabase-auth-integration-plan.html +0 -704
  90. package/html/private/supabase-auth-setup-guide.html +0 -555
  91. package/html/private/test-private-doc.html +0 -302
  92. package/html/private/user-management-tooling.html +0 -601
  93. package/html/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
  94. package/html/prompts/beautiful-documentation-design.html +0 -784
  95. package/html/prompts/markdown-document-standards.html +0 -422
  96. package/html/prompts/project-rename-strategy-sasha-publish.html +0 -530
  97. package/html/robots.txt +0 -9
  98. package/html/sitemap.xml +0 -357
  99. package/html/test-questions/how-does-it-work%3F.html +0 -294
  100. package/html/test-questions/step-1%3A%20getting-started.html +0 -289
  101. package/html/test-questions/what-is-the-purpose.html +0 -293
  102. package/html/test-status.html +0 -281
  103. package/html/vercel-cli-setup-guide.html +0 -495
  104. package/html/vercel-first-time-setup-guide.html +0 -454
  105. package/html/vercel.json +0 -29
  106. package/html-static/11.png +0 -0
  107. package/html-static/404.html +0 -115
  108. package/html-static/README.html +0 -599
  109. package/html-static/Screenshot 2025-08-12 at 21.35.07.png +0 -0
  110. package/html-static/about-doc-builder.html +0 -568
  111. package/html-static/css/notion-style.css +0 -2502
  112. package/html-static/documentation-index.html +0 -548
  113. package/html-static/guides/authentication-default-change.html +0 -447
  114. package/html-static/guides/authentication-guide.html +0 -586
  115. package/html-static/guides/claude-workflow-guide.html +0 -1151
  116. package/html-static/guides/configuration-guide.html +0 -549
  117. package/html-static/guides/documentation-standards.html +0 -771
  118. package/html-static/guides/html-embedding-guide.html +0 -538
  119. package/html-static/guides/image-modal-guide.html +0 -592
  120. package/html-static/guides/phosphor-icons-guide.html +0 -661
  121. package/html-static/guides/private-directory-authentication-troubleshooting.html +0 -632
  122. package/html-static/guides/private-directory-authentication.html +0 -618
  123. package/html-static/guides/public-site-deployment.html +0 -508
  124. package/html-static/guides/search-engine-verification-guide.html +0 -619
  125. package/html-static/guides/seo-guide.html +0 -738
  126. package/html-static/guides/seo-optimization-guide.html +0 -964
  127. package/html-static/guides/supabase-authentication-complete-guide.html +0 -943
  128. package/html-static/guides/troubleshooting-guide.html +0 -710
  129. package/html-static/guides/windows-setup-guide.html +0 -936
  130. package/html-static/image-modal-test.html +0 -395
  131. package/html-static/index.html +0 -599
  132. package/html-static/js/main.js +0 -1747
  133. package/html-static/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
  134. package/html-static/prompts/beautiful-documentation-design.html +0 -861
  135. package/html-static/prompts/markdown-document-standards.html +0 -499
  136. package/html-static/prompts/project-rename-strategy-sasha-publish.html +0 -607
  137. package/html-static/robots.txt +0 -5
  138. package/html-static/sitemap.xml +0 -195
  139. package/html-static/test-questions/how-does-it-work%3F.html +0 -371
  140. package/html-static/test-questions/step-1%3A%20getting-started.html +0 -366
  141. package/html-static/test-questions/what-is-the-purpose.html +0 -370
  142. package/html-static/vercel-cli-setup-guide.html +0 -572
  143. package/html-static/vercel-first-time-setup-guide.html +0 -531
  144. package/manage-users.sql +0 -191
  145. package/migrate-to-domain-auth.sql +0 -47
  146. package/package/CACHE-BUSTING-GUIDE.md +0 -82
  147. package/package/CHANGELOG.md +0 -902
  148. package/package/README.md +0 -248
  149. package/package/assets/css/notion-style.css +0 -2211
  150. package/package/assets/js/auth.js +0 -67
  151. package/package/assets/js/main.js +0 -1565
  152. package/package/cli.js +0 -764
  153. package/package/index.js +0 -38
  154. package/package/knowcode-doc-builder-1.3.15.tgz +0 -0
  155. package/package/lib/builder.js +0 -32
  156. package/package/lib/config.js +0 -278
  157. package/package/lib/core-builder.js +0 -957
  158. package/package/lib/deploy.js +0 -497
  159. package/package/lib/dev-server.js +0 -96
  160. package/package/package.json +0 -34
  161. package/package/scripts/npx-runner.js +0 -27
  162. package/package/scripts/setup.js +0 -56
  163. package/package/test-cache-bust.sh +0 -43
  164. package/public-config.js +0 -22
  165. package/public-html/404.html +0 -115
  166. package/public-html/README.html +0 -149
  167. package/public-html/css/notion-style.css +0 -2036
  168. package/public-html/index.html +0 -149
  169. package/public-html/js/auth.js +0 -67
  170. package/public-html/js/main.js +0 -1485
  171. package/quick-test-commands.md +0 -40
  172. package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
  173. package/recordings/mh-ls-22jul.txt +0 -2305
  174. package/screenshot.png +0 -0
  175. package/scripts/Screenshot 2025-07-23 at 15.39.41.png +0 -0
  176. package/setup-database-v2.sql +0 -53
  177. package/setup-database.sql +0 -41
  178. package/test-auth-config.js +0 -17
  179. package/test-cache-bust.sh +0 -43
  180. package/test-docs/README.md +0 -39
  181. package/test-html/404.html +0 -115
  182. package/test-html/README.html +0 -172
  183. package/test-html/auth.js +0 -97
  184. package/test-html/css/notion-style.css +0 -2036
  185. package/test-html/index.html +0 -172
  186. package/test-html/js/auth.js +0 -97
  187. package/test-html/js/main.js +0 -1485
  188. package/test-html/login.html +0 -102
  189. package/test-html/logout.html +0 -18
  190. package/update-domain.sql +0 -9
  191. package/user-access-view.sql +0 -49
  192. package/user-management/README.md +0 -301
  193. package/user-management/add-users.sh +0 -776
  194. package/user-management/create-user.js +0 -65
  195. package/user-management/users.txt +0 -15
  196. package/view-all-users.sql +0 -40
  197. package/wru-auth-config.js +0 -17
@@ -1,64 +0,0 @@
1
- # Release Notes - v1.7.5
2
-
3
- ## 🎉 Major Change: Authentication is Now Optional by Default!
4
-
5
- Starting with v1.7.5, @knowcode/doc-builder defaults to creating **public documentation sites** without authentication. This aligns with the most common use case and makes it even easier to get started.
6
-
7
- ### What's New
8
-
9
- #### 🔓 No Authentication by Default
10
- - Documentation sites are now public by default
11
- - No configuration needed for public docs
12
- - Authentication must be explicitly enabled when needed
13
-
14
- #### 🚀 New CLI Flags
15
- - `--no-auth` flag for both build and deploy commands
16
- - Override any authentication settings in your config
17
- - Perfect for quick public deployments
18
-
19
- ### Examples
20
-
21
- ```bash
22
- # Deploy public documentation (default behavior)
23
- npx @knowcode/doc-builder deploy
24
-
25
- # Force public deployment even if config has auth
26
- npx @knowcode/doc-builder deploy --no-auth
27
-
28
- # Enable authentication in config
29
- # doc-builder.config.js
30
- module.exports = {
31
- features: {
32
- authentication: 'supabase' // Explicitly enable
33
- }
34
- };
35
- ```
36
-
37
- ### Migration Guide
38
-
39
- #### If you want PUBLIC documentation:
40
- No changes needed! Your sites are now public by default.
41
-
42
- #### If you want PRIVATE documentation:
43
- Add this to your config:
44
- ```javascript
45
- features: {
46
- authentication: 'supabase'
47
- }
48
- ```
49
-
50
- ### Why This Change?
51
-
52
- - Most documentation should be publicly accessible
53
- - Reduces friction for new users
54
- - Makes the tool more intuitive
55
- - Authentication becomes an intentional choice
56
-
57
- ### Full Changelog
58
-
59
- - **Changed**: Authentication disabled by default in all configurations
60
- - **Added**: `--no-auth` flags for build and deploy commands
61
- - **Improved**: Simplified configuration prompts
62
- - **Docs**: Added public site deployment guide
63
-
64
- This is a breaking change, but one that makes the tool simpler and more aligned with common use cases.
@@ -1,35 +0,0 @@
1
- -- =====================================================
2
- -- ADD SINGLE USER: clive@hyperforma.co.uk
3
- -- Site: https://wru-bid-analysis.vercel.app/
4
- -- =====================================================
5
-
6
- -- STEP 1: Check if clive@hyperforma.co.uk exists
7
- SELECT email, id, created_at, last_sign_in_at
8
- FROM auth.users
9
- WHERE email = 'clive@hyperforma.co.uk';
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: clive@hyperforma.co.uk
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 = 'clive@hyperforma.co.uk'),
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 = 'clive@hyperforma.co.uk'
35
- AND da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
@@ -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';
@@ -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
@@ -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';
@@ -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'
@@ -1,126 +0,0 @@
1
- module.exports = {
2
- "configVersion": "1.9.28",
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
- };