@knowcode/doc-builder 1.7.4 โ†’ 1.7.6

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 (71) hide show
  1. package/.claude/settings.local.json +6 -1
  2. package/CHANGELOG.md +50 -0
  3. package/README.md +47 -7
  4. package/RELEASE-NOTES-1.7.5.md +64 -0
  5. package/add-user-clive.sql +35 -0
  6. package/add-user-lindsay-fixed.sql +85 -0
  7. package/add-user-lindsay.sql +68 -0
  8. package/add-user-pmorgan.sql +35 -0
  9. package/add-user-robbie.sql +35 -0
  10. package/add-wru-users.sql +105 -0
  11. package/cli.js +223 -8
  12. package/grant-access.sql +15 -0
  13. package/html/README.html +14 -4
  14. package/html/auth.js +97 -0
  15. package/html/documentation-index.html +14 -4
  16. package/html/guides/authentication-default-change.html +302 -0
  17. package/html/guides/authentication-guide.html +32 -14
  18. package/html/guides/cache-control-anti-pattern.html +361 -0
  19. package/html/guides/claude-workflow-guide.html +14 -4
  20. package/html/guides/documentation-standards.html +14 -4
  21. package/html/guides/next-steps-walkthrough.html +638 -0
  22. package/html/guides/phosphor-icons-guide.html +14 -4
  23. package/html/guides/public-site-deployment.html +363 -0
  24. package/html/guides/search-engine-verification-guide.html +14 -4
  25. package/html/guides/seo-guide.html +14 -4
  26. package/html/guides/seo-optimization-guide.html +14 -4
  27. package/html/guides/supabase-auth-implementation-plan.html +543 -0
  28. package/html/guides/supabase-auth-integration-plan.html +671 -0
  29. package/html/guides/supabase-auth-setup-guide.html +498 -0
  30. package/html/guides/troubleshooting-guide.html +14 -4
  31. package/html/guides/vercel-deployment-auth-setup.html +337 -0
  32. package/html/guides/windows-setup-guide.html +14 -4
  33. package/html/index.html +14 -4
  34. package/html/launch/README.html +14 -4
  35. package/html/launch/bubble-plugin-specification.html +14 -4
  36. package/html/launch/go-to-market-strategy.html +14 -4
  37. package/html/launch/launch-announcements.html +14 -4
  38. package/html/login.html +102 -0
  39. package/html/logout.html +18 -0
  40. package/html/sitemap.xml +69 -21
  41. package/html/vercel-cli-setup-guide.html +14 -4
  42. package/html/vercel-first-time-setup-guide.html +14 -4
  43. package/lib/config.js +33 -29
  44. package/lib/core-builder.js +142 -88
  45. package/lib/supabase-auth.js +295 -0
  46. package/manage-users.sql +191 -0
  47. package/package.json +2 -1
  48. package/public-config.js +22 -0
  49. package/public-html/404.html +115 -0
  50. package/public-html/README.html +149 -0
  51. package/public-html/css/notion-style.css +2036 -0
  52. package/public-html/index.html +149 -0
  53. package/public-html/js/main.js +1485 -0
  54. package/quick-test-commands.md +40 -0
  55. package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
  56. package/setup-database.sql +41 -0
  57. package/test-auth-config.js +17 -0
  58. package/test-docs/README.md +39 -0
  59. package/test-html/404.html +115 -0
  60. package/test-html/README.html +172 -0
  61. package/test-html/auth.js +97 -0
  62. package/test-html/css/notion-style.css +2036 -0
  63. package/test-html/index.html +172 -0
  64. package/test-html/js/auth.js +97 -0
  65. package/test-html/js/main.js +1485 -0
  66. package/test-html/login.html +102 -0
  67. package/test-html/logout.html +18 -0
  68. package/update-domain.sql +9 -0
  69. package/view-all-users.sql +40 -0
  70. package/wru-auth-config.js +17 -0
  71. /package/{assets โ†’ public-html}/js/auth.js +0 -0
@@ -0,0 +1,149 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Welcome to the test documentation site! If you can see this page, it means:">
7
+ <title>๐Ÿ” Test Documentation with Supabase Auth - โœจ Test Documentation</title>
8
+
9
+
10
+
11
+ <!-- Fonts -->
12
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
13
+
14
+ <!-- Icons -->
15
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
16
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css">
17
+
18
+ <!-- Mermaid -->
19
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script>
20
+
21
+ <!-- Styles -->
22
+ <link rel="stylesheet" href="/css/notion-style.css">
23
+
24
+
25
+
26
+ <!-- Favicon -->
27
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>โœจ</text></svg>">
28
+
29
+
30
+ </head>
31
+ <body>
32
+ <!-- Header -->
33
+ <header class="header">
34
+ <div class="header-content">
35
+ <a href="/index.html" class="logo">โœจ Test Documentation</a>
36
+
37
+ <div class="header-actions">
38
+ <div class="deployment-info">
39
+ <span class="deployment-date" title="Built with doc-builder v1.7.4">Last updated: Jul 25, 2025, 12:40 PM UTC</span>
40
+ </div>
41
+
42
+
43
+
44
+ <button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">
45
+ <i class="fas fa-moon"></i>
46
+ </button>
47
+
48
+ <button id="menu-toggle" class="menu-toggle" aria-label="Toggle menu">
49
+ <i class="fas fa-bars"></i>
50
+ </button>
51
+ </div>
52
+ </div>
53
+ </header>
54
+
55
+ <!-- Preview Banner -->
56
+ <div id="preview-banner" class="preview-banner">
57
+ <div class="banner-content">
58
+ <i class="fas fa-exclamation-triangle banner-icon"></i>
59
+ <span class="banner-text">This documentation is a preview version - some content may be incomplete</span>
60
+ <button id="dismiss-banner" class="banner-dismiss" aria-label="Dismiss banner">
61
+ <i class="fas fa-times"></i>
62
+ </button>
63
+ </div>
64
+ </div>
65
+
66
+ <!-- Breadcrumbs -->
67
+ <nav class="breadcrumbs" id="breadcrumbs">
68
+ <!-- Breadcrumbs will be generated by JavaScript -->
69
+ </nav>
70
+
71
+ <!-- Main Content -->
72
+ <div class="main-wrapper">
73
+ <!-- Sidebar -->
74
+ <aside class="sidebar">
75
+ <div class="sidebar-header">
76
+ <div class="filter-box">
77
+ <input type="text" placeholder="Filter items..." class="filter-input" id="nav-filter">
78
+ <i class="fas fa-search filter-icon"></i>
79
+ </div>
80
+ </div>
81
+ <nav class="navigation">
82
+
83
+ <div class="nav-section" data-level="0">
84
+ <a class="nav-title expanded" href="/README.html" >
85
+ <i class="fas fa-home"></i> Documentation
86
+ </a>
87
+ <div class="nav-content" >
88
+ <a href="/README.html" class="nav-item active" data-tooltip="๐Ÿ” Test Documentation with Supabase Auth."><i class="fas fa-file-alt"></i> Overview</a></div></div>
89
+ </nav>
90
+ <div class="resize-handle"></div>
91
+ </aside>
92
+
93
+ <!-- Content Area -->
94
+ <main class="content">
95
+ <div class="content-inner">
96
+ <h1><i class="ph ph-lock-key" aria-label="secure"></i> Test Documentation with Supabase Auth</h1>
97
+ <p>Welcome to the test documentation site! If you can see this page, it means:</p>
98
+ <h2><i class="ph ph-check-circle" aria-label="checked"></i> Authentication is Working!</h2>
99
+ <ul>
100
+ <li>You successfully logged in with Supabase</li>
101
+ <li>Your user account has access to this documentation site</li>
102
+ <li>The JWT token is valid and verified</li>
103
+ <li>Row Level Security is properly configured</li>
104
+ </ul>
105
+ <h2>๐Ÿงช Test Features</h2>
106
+ <h3>Secure Access</h3>
107
+ <p>This page is protected by enterprise-grade Supabase authentication. Only authorized users can view this content.</p>
108
+ <h3>Modern Technology Stack</h3>
109
+ <ul>
110
+ <li><strong>Frontend</strong>: Generated static HTML with auth checking</li>
111
+ <li><strong>Backend</strong>: Supabase authentication and database</li>
112
+ <li><strong>Security</strong>: JWT tokens, bcrypt password hashing, RLS policies</li>
113
+ </ul>
114
+ <h3>What This Proves</h3>
115
+ <ol>
116
+ <li><strong>Database Setup</strong>: Tables were created correctly</li>
117
+ <li><strong>Authentication Flow</strong>: Login โ†’ JWT โ†’ Access check โ†’ Content</li>
118
+ <li><strong>Integration</strong>: doc-builder + Supabase working together</li>
119
+ <li><strong>Security</strong>: Only authenticated users with proper access can see this</li>
120
+ </ol>
121
+ <h2><i class="ph ph-target" aria-label="goal"></i> Next Steps</h2>
122
+ <p>Once this test works, we can:</p>
123
+ <ul>
124
+ <li>Deploy to Vercel with production settings</li>
125
+ <li>Add more users and documentation sites </li>
126
+ <li>Set up your real documentation content</li>
127
+ <li>Configure custom domains and advanced features</li>
128
+ </ul>
129
+ <hr>
130
+ <p><strong>Generated by</strong>: @knowcode/doc-builder with Supabase authentication<br><strong>Test Date</strong>: July 25, 2025</p>
131
+
132
+ </div>
133
+ </main>
134
+ </div>
135
+
136
+ <!-- Scripts -->
137
+ <script>
138
+ // Pass configuration to frontend
139
+ window.docBuilderConfig = {
140
+ features: {
141
+ showPdfDownload: true,
142
+ menuDefaultOpen: true
143
+ }
144
+ };
145
+ </script>
146
+ <script src="/js/main.js"></script>
147
+
148
+ </body>
149
+ </html>