@knowcode/doc-builder 1.6.5 → 1.7.1

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.
@@ -63,8 +63,8 @@
63
63
  "name": "Knowcode Ltd",
64
64
  "url": "https://knowcode.tech"
65
65
  },
66
- "datePublished": "2025-07-23T11:58:38.089Z",
67
- "dateModified": "2025-07-23T11:58:38.089Z",
66
+ "datePublished": "2025-07-24T08:19:52.272Z",
67
+ "dateModified": "2025-07-24T08:19:52.272Z",
68
68
  "mainEntityOfPage": {
69
69
  "@type": "WebPage",
70
70
  "@id": "https://doc-builder-delta.vercel.app/launch/bubble-plugin-specification.html"
@@ -103,7 +103,7 @@
103
103
 
104
104
  <div class="header-actions">
105
105
  <div class="deployment-info">
106
- <span class="deployment-date" title="Built with doc-builder v1.6.4">Last updated: Jul 23, 2025, 11:58 AM UTC</span>
106
+ <span class="deployment-date" title="Built with doc-builder v1.6.5">Last updated: Jul 24, 2025, 08:19 AM UTC</span>
107
107
  </div>
108
108
 
109
109
 
@@ -154,7 +154,6 @@
154
154
  <div class="nav-content" >
155
155
  <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
156
156
  <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
157
- <a href="/test-emojis.html" class="nav-item" data-tooltip="🆘 SOS/Emergency - Should convert to first-aid icon 🚨 Alert - Already working (siren icon) Money and Finance."><i class="fas fa-file-alt"></i> Test Emojis</a>
158
157
  <a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
159
158
  <a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
160
159
  <div class="nav-section" data-level="1">
@@ -909,6 +908,15 @@ generateDocs({
909
908
  </div>
910
909
 
911
910
  <!-- Scripts -->
911
+ <script>
912
+ // Pass configuration to frontend
913
+ window.docBuilderConfig = {
914
+ features: {
915
+ showPdfDownload: true,
916
+ menuDefaultOpen: true
917
+ }
918
+ };
919
+ </script>
912
920
  <script src="/js/main.js"></script>
913
921
 
914
922
  </body>
@@ -63,8 +63,8 @@
63
63
  "name": "Knowcode Ltd",
64
64
  "url": "https://knowcode.tech"
65
65
  },
66
- "datePublished": "2025-07-23T11:58:38.092Z",
67
- "dateModified": "2025-07-23T11:58:38.092Z",
66
+ "datePublished": "2025-07-24T08:19:52.276Z",
67
+ "dateModified": "2025-07-24T08:19:52.276Z",
68
68
  "mainEntityOfPage": {
69
69
  "@type": "WebPage",
70
70
  "@id": "https://doc-builder-delta.vercel.app/launch/go-to-market-strategy.html"
@@ -103,7 +103,7 @@
103
103
 
104
104
  <div class="header-actions">
105
105
  <div class="deployment-info">
106
- <span class="deployment-date" title="Built with doc-builder v1.6.4">Last updated: Jul 23, 2025, 11:58 AM UTC</span>
106
+ <span class="deployment-date" title="Built with doc-builder v1.6.5">Last updated: Jul 24, 2025, 08:19 AM UTC</span>
107
107
  </div>
108
108
 
109
109
 
@@ -154,7 +154,6 @@
154
154
  <div class="nav-content" >
155
155
  <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
156
156
  <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
157
- <a href="/test-emojis.html" class="nav-item" data-tooltip="🆘 SOS/Emergency - Should convert to first-aid icon 🚨 Alert - Already working (siren icon) Money and Finance."><i class="fas fa-file-alt"></i> Test Emojis</a>
158
157
  <a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
159
158
  <a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
160
159
  <div class="nav-section" data-level="1">
@@ -639,6 +638,15 @@
639
638
  </div>
640
639
 
641
640
  <!-- Scripts -->
641
+ <script>
642
+ // Pass configuration to frontend
643
+ window.docBuilderConfig = {
644
+ features: {
645
+ showPdfDownload: true,
646
+ menuDefaultOpen: true
647
+ }
648
+ };
649
+ </script>
642
650
  <script src="/js/main.js"></script>
643
651
 
644
652
  </body>
@@ -63,8 +63,8 @@
63
63
  "name": "Knowcode Ltd",
64
64
  "url": "https://knowcode.tech"
65
65
  },
66
- "datePublished": "2025-07-23T11:58:38.096Z",
67
- "dateModified": "2025-07-23T11:58:38.096Z",
66
+ "datePublished": "2025-07-24T08:19:52.282Z",
67
+ "dateModified": "2025-07-24T08:19:52.282Z",
68
68
  "mainEntityOfPage": {
69
69
  "@type": "WebPage",
70
70
  "@id": "https://doc-builder-delta.vercel.app/launch/launch-announcements.html"
@@ -103,7 +103,7 @@
103
103
 
104
104
  <div class="header-actions">
105
105
  <div class="deployment-info">
106
- <span class="deployment-date" title="Built with doc-builder v1.6.4">Last updated: Jul 23, 2025, 11:58 AM UTC</span>
106
+ <span class="deployment-date" title="Built with doc-builder v1.6.5">Last updated: Jul 24, 2025, 08:19 AM UTC</span>
107
107
  </div>
108
108
 
109
109
 
@@ -154,7 +154,6 @@
154
154
  <div class="nav-content" >
155
155
  <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
156
156
  <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
157
- <a href="/test-emojis.html" class="nav-item" data-tooltip="🆘 SOS/Emergency - Should convert to first-aid icon 🚨 Alert - Already working (siren icon) Money and Finance."><i class="fas fa-file-alt"></i> Test Emojis</a>
158
157
  <a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
159
158
  <a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
160
159
  <div class="nav-section" data-level="1">
@@ -569,6 +568,15 @@ doc-builder deploy
569
568
  </div>
570
569
 
571
570
  <!-- Scripts -->
571
+ <script>
572
+ // Pass configuration to frontend
573
+ window.docBuilderConfig = {
574
+ features: {
575
+ showPdfDownload: true,
576
+ menuDefaultOpen: true
577
+ }
578
+ };
579
+ </script>
572
580
  <script src="/js/main.js"></script>
573
581
 
574
582
  </body>
package/html/sitemap.xml CHANGED
@@ -2,133 +2,127 @@
2
2
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
3
  <url>
4
4
  <loc>https://doc-builder-delta.vercel.app/404.html</loc>
5
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
5
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
6
6
  <changefreq>monthly</changefreq>
7
7
  <priority>0.6</priority>
8
8
  </url>
9
9
  <url>
10
10
  <loc>https://doc-builder-delta.vercel.app/README.html</loc>
11
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
11
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
12
12
  <changefreq>monthly</changefreq>
13
13
  <priority>0.6</priority>
14
14
  </url>
15
15
  <url>
16
16
  <loc>https://doc-builder-delta.vercel.app/claude-workflow-guide.html</loc>
17
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
17
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
18
18
  <changefreq>monthly</changefreq>
19
19
  <priority>0.8</priority>
20
20
  </url>
21
21
  <url>
22
22
  <loc>https://doc-builder-delta.vercel.app/documentation-index.html</loc>
23
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
23
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
24
24
  <changefreq>monthly</changefreq>
25
25
  <priority>0.6</priority>
26
26
  </url>
27
27
  <url>
28
28
  <loc>https://doc-builder-delta.vercel.app/guides/authentication-guide.html</loc>
29
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
29
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
30
30
  <changefreq>monthly</changefreq>
31
31
  <priority>0.8</priority>
32
32
  </url>
33
33
  <url>
34
34
  <loc>https://doc-builder-delta.vercel.app/guides/claude-workflow-guide.html</loc>
35
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
35
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
36
36
  <changefreq>monthly</changefreq>
37
37
  <priority>0.8</priority>
38
38
  </url>
39
39
  <url>
40
40
  <loc>https://doc-builder-delta.vercel.app/guides/document-standards.html</loc>
41
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
41
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
42
42
  <changefreq>monthly</changefreq>
43
43
  <priority>0.8</priority>
44
44
  </url>
45
45
  <url>
46
46
  <loc>https://doc-builder-delta.vercel.app/guides/documentation-standards.html</loc>
47
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
47
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
48
48
  <changefreq>monthly</changefreq>
49
49
  <priority>0.8</priority>
50
50
  </url>
51
51
  <url>
52
52
  <loc>https://doc-builder-delta.vercel.app/guides/phosphor-icons-guide.html</loc>
53
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
53
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
54
54
  <changefreq>monthly</changefreq>
55
55
  <priority>0.8</priority>
56
56
  </url>
57
57
  <url>
58
58
  <loc>https://doc-builder-delta.vercel.app/guides/search-engine-verification-guide.html</loc>
59
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
59
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
60
60
  <changefreq>monthly</changefreq>
61
61
  <priority>0.8</priority>
62
62
  </url>
63
63
  <url>
64
64
  <loc>https://doc-builder-delta.vercel.app/guides/seo-guide.html</loc>
65
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
65
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
66
66
  <changefreq>monthly</changefreq>
67
67
  <priority>0.8</priority>
68
68
  </url>
69
69
  <url>
70
70
  <loc>https://doc-builder-delta.vercel.app/guides/seo-optimization-guide.html</loc>
71
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
71
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
72
72
  <changefreq>monthly</changefreq>
73
73
  <priority>0.8</priority>
74
74
  </url>
75
75
  <url>
76
76
  <loc>https://doc-builder-delta.vercel.app/guides/troubleshooting-guide.html</loc>
77
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
77
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
78
78
  <changefreq>monthly</changefreq>
79
79
  <priority>0.8</priority>
80
80
  </url>
81
81
  <url>
82
82
  <loc>https://doc-builder-delta.vercel.app/guides/windows-setup-guide.html</loc>
83
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
83
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
84
84
  <changefreq>monthly</changefreq>
85
85
  <priority>0.8</priority>
86
86
  </url>
87
87
  <url>
88
88
  <loc>https://doc-builder-delta.vercel.app/index.html</loc>
89
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
89
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
90
90
  <changefreq>weekly</changefreq>
91
91
  <priority>1.0</priority>
92
92
  </url>
93
93
  <url>
94
94
  <loc>https://doc-builder-delta.vercel.app/launch/README.html</loc>
95
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
95
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
96
96
  <changefreq>monthly</changefreq>
97
97
  <priority>0.6</priority>
98
98
  </url>
99
99
  <url>
100
100
  <loc>https://doc-builder-delta.vercel.app/launch/bubble-plugin-specification.html</loc>
101
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
101
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
102
102
  <changefreq>monthly</changefreq>
103
103
  <priority>0.6</priority>
104
104
  </url>
105
105
  <url>
106
106
  <loc>https://doc-builder-delta.vercel.app/launch/go-to-market-strategy.html</loc>
107
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
107
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
108
108
  <changefreq>monthly</changefreq>
109
109
  <priority>0.6</priority>
110
110
  </url>
111
111
  <url>
112
112
  <loc>https://doc-builder-delta.vercel.app/launch/launch-announcements.html</loc>
113
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
114
- <changefreq>monthly</changefreq>
115
- <priority>0.6</priority>
116
- </url>
117
- <url>
118
- <loc>https://doc-builder-delta.vercel.app/test-emojis.html</loc>
119
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
113
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
120
114
  <changefreq>monthly</changefreq>
121
115
  <priority>0.6</priority>
122
116
  </url>
123
117
  <url>
124
118
  <loc>https://doc-builder-delta.vercel.app/vercel-cli-setup-guide.html</loc>
125
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
119
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
126
120
  <changefreq>monthly</changefreq>
127
121
  <priority>0.8</priority>
128
122
  </url>
129
123
  <url>
130
124
  <loc>https://doc-builder-delta.vercel.app/vercel-first-time-setup-guide.html</loc>
131
- <lastmod>2025-07-23T11:58:38.130Z</lastmod>
125
+ <lastmod>2025-07-24T08:19:52.302Z</lastmod>
132
126
  <changefreq>monthly</changefreq>
133
127
  <priority>0.8</priority>
134
128
  </url>
@@ -63,8 +63,8 @@
63
63
  "name": "Knowcode Ltd",
64
64
  "url": "https://knowcode.tech"
65
65
  },
66
- "datePublished": "2025-07-23T11:58:38.099Z",
67
- "dateModified": "2025-07-23T11:58:38.099Z",
66
+ "datePublished": "2025-07-24T08:19:52.285Z",
67
+ "dateModified": "2025-07-24T08:19:52.285Z",
68
68
  "mainEntityOfPage": {
69
69
  "@type": "WebPage",
70
70
  "@id": "https://doc-builder-delta.vercel.app/vercel-cli-setup-guide.html"
@@ -97,7 +97,7 @@
97
97
 
98
98
  <div class="header-actions">
99
99
  <div class="deployment-info">
100
- <span class="deployment-date" title="Built with doc-builder v1.6.4">Last updated: Jul 23, 2025, 11:58 AM UTC</span>
100
+ <span class="deployment-date" title="Built with doc-builder v1.6.5">Last updated: Jul 24, 2025, 08:19 AM UTC</span>
101
101
  </div>
102
102
 
103
103
 
@@ -148,7 +148,6 @@
148
148
  <div class="nav-content" >
149
149
  <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
150
150
  <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
151
- <a href="/test-emojis.html" class="nav-item" data-tooltip="🆘 SOS/Emergency - Should convert to first-aid icon 🚨 Alert - Already working (siren icon) Money and Finance."><i class="fas fa-file-alt"></i> Test Emojis</a>
152
151
  <a href="/vercel-cli-setup-guide.html" class="nav-item active" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
153
152
  <a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
154
153
  <div class="nav-section" data-level="1">
@@ -403,6 +402,15 @@ vercel --scope team-name
403
402
  </div>
404
403
 
405
404
  <!-- Scripts -->
405
+ <script>
406
+ // Pass configuration to frontend
407
+ window.docBuilderConfig = {
408
+ features: {
409
+ showPdfDownload: true,
410
+ menuDefaultOpen: true
411
+ }
412
+ };
413
+ </script>
406
414
  <script src="/js/main.js"></script>
407
415
 
408
416
  </body>
@@ -63,8 +63,8 @@
63
63
  "name": "Knowcode Ltd",
64
64
  "url": "https://knowcode.tech"
65
65
  },
66
- "datePublished": "2025-07-23T11:58:38.102Z",
67
- "dateModified": "2025-07-23T11:58:38.102Z",
66
+ "datePublished": "2025-07-24T08:19:52.288Z",
67
+ "dateModified": "2025-07-24T08:19:52.288Z",
68
68
  "mainEntityOfPage": {
69
69
  "@type": "WebPage",
70
70
  "@id": "https://doc-builder-delta.vercel.app/vercel-first-time-setup-guide.html"
@@ -97,7 +97,7 @@
97
97
 
98
98
  <div class="header-actions">
99
99
  <div class="deployment-info">
100
- <span class="deployment-date" title="Built with doc-builder v1.6.4">Last updated: Jul 23, 2025, 11:58 AM UTC</span>
100
+ <span class="deployment-date" title="Built with doc-builder v1.6.5">Last updated: Jul 24, 2025, 08:19 AM UTC</span>
101
101
  </div>
102
102
 
103
103
 
@@ -148,7 +148,6 @@
148
148
  <div class="nav-content" >
149
149
  <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
150
150
  <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
151
- <a href="/test-emojis.html" class="nav-item" data-tooltip="🆘 SOS/Emergency - Should convert to first-aid icon 🚨 Alert - Already working (siren icon) Money and Finance."><i class="fas fa-file-alt"></i> Test Emojis</a>
152
151
  <a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
153
152
  <a href="/vercel-first-time-setup-guide.html" class="nav-item active" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
154
153
  <div class="nav-section" data-level="1">
@@ -246,7 +245,7 @@
246
245
  <li>Deploy to their global CDN</li>
247
246
  <li>Provide your live URL</li>
248
247
  </ol>
249
- <pre><code><i class="ph ph-check" aria-label="check"></i> Production: https://my-docs.vercel.app [copied to clipboard]
248
+ <pre><code>✓ Production: https://my-docs.vercel.app [copied to clipboard]
250
249
  </code></pre>
251
250
  <h2>Post-Deployment Configuration</h2>
252
251
  <h3>Making Your Docs Public</h3>
@@ -325,13 +324,13 @@
325
324
  <li>You have internet connection</li>
326
325
  </ol>
327
326
  <h2>Quick Checklist</h2>
328
- <pre><code><i class="ph ph-check-circle" aria-label="checked"></i> 1. Run: npx @knowcode/doc-builder@latest deploy
329
- <i class="ph ph-check-circle" aria-label="checked"></i> 2. Enter project name (e.g., my-docs)
330
- <i class="ph ph-check-circle" aria-label="checked"></i> 3. Skip custom URL (press Enter)
331
- <i class="ph ph-check-circle" aria-label="checked"></i> 4. Confirm deployment when Vercel asks
332
- <i class="ph ph-check-circle" aria-label="checked"></i> 5. Select your account/scope
333
- <i class="ph ph-check-circle" aria-label="checked"></i> 6. Accept suggested project name
334
- <i class="ph ph-check-circle" aria-label="checked"></i> 7. Get your live URL!
327
+ <pre><code>✅ 1. Run: npx @knowcode/doc-builder@latest deploy
328
+ 2. Enter project name (e.g., my-docs)
329
+ 3. Skip custom URL (press Enter)
330
+ 4. Confirm deployment when Vercel asks
331
+ 5. Select your account/scope
332
+ 6. Accept suggested project name
333
+ 7. Get your live URL!
335
334
  </code></pre>
336
335
  <h2>Best Practices</h2>
337
336
  <ol>
@@ -362,6 +361,15 @@
362
361
  </div>
363
362
 
364
363
  <!-- Scripts -->
364
+ <script>
365
+ // Pass configuration to frontend
366
+ window.docBuilderConfig = {
367
+ features: {
368
+ showPdfDownload: true,
369
+ menuDefaultOpen: true
370
+ }
371
+ };
372
+ </script>
365
373
  <script src="/js/main.js"></script>
366
374
 
367
375
  </body>
package/lib/config.js CHANGED
@@ -28,7 +28,9 @@ const defaultConfig = {
28
28
  phosphorIcons: true,
29
29
  phosphorWeight: 'regular', // Options: thin, light, regular, bold, fill, duotone
30
30
  phosphorSize: '1.2em', // Relative to text size
31
- normalizeTitle: true // Auto-normalize all-caps titles to title case
31
+ normalizeTitle: true, // Auto-normalize all-caps titles to title case
32
+ showPdfDownload: true, // Show PDF download icon in header
33
+ menuDefaultOpen: true // Menu/sidebar open by default
32
34
  },
33
35
 
34
36
  // Authentication (if enabled)
@@ -96,7 +98,10 @@ const notionInspiredPreset = {
96
98
  darkMode: true,
97
99
  phosphorIcons: true,
98
100
  phosphorWeight: 'regular',
99
- phosphorSize: '1.2em'
101
+ phosphorSize: '1.2em',
102
+ normalizeTitle: true,
103
+ showPdfDownload: true,
104
+ menuDefaultOpen: true
100
105
  },
101
106
 
102
107
  auth: {
@@ -248,6 +253,12 @@ async function loadConfig(configPath, options = {}) {
248
253
  config.features.changelog = false;
249
254
  config.changelog.enabled = false;
250
255
  }
256
+ if (options.pdf === false) {
257
+ config.features.showPdfDownload = false;
258
+ }
259
+ if (options.menuClosed === true) {
260
+ config.features.menuDefaultOpen = false;
261
+ }
251
262
 
252
263
  // Legacy mode - auto-detect structure
253
264
  if (options.legacy) {
@@ -425,6 +425,15 @@ ${seoTags}
425
425
  </div>
426
426
 
427
427
  <!-- Scripts -->
428
+ <script>
429
+ // Pass configuration to frontend
430
+ window.docBuilderConfig = {
431
+ features: {
432
+ showPdfDownload: ${config.features?.showPdfDownload !== false},
433
+ menuDefaultOpen: ${config.features?.menuDefaultOpen !== false}
434
+ }
435
+ };
436
+ </script>
428
437
  <script src="/js/main.js"></script>
429
438
  ${config.features?.authentication ? `<script src="/js/auth.js"></script>` : ''}
430
439
  </body>
@@ -234,6 +234,17 @@ function replaceEmojisWithIcons(html, config = {}) {
234
234
  // Check if feature is enabled
235
235
  if (!config.features?.phosphorIcons) return html;
236
236
 
237
+ // First, protect code blocks and inline code from emoji replacement
238
+ const codeBlocks = [];
239
+ const codePattern = /(<code[^>]*>[\s\S]*?<\/code>|<pre[^>]*>[\s\S]*?<\/pre>)/g;
240
+
241
+ // Replace code blocks with placeholders
242
+ html = html.replace(codePattern, (match, p1) => {
243
+ const placeholder = `CODE_BLOCK_${codeBlocks.length}`;
244
+ codeBlocks.push(match);
245
+ return placeholder;
246
+ });
247
+
237
248
  // Build regex pattern once with all emoji patterns
238
249
  // Sort by length to match longer emojis first (e.g., ⚠️ before ⚠)
239
250
  const emojiPattern = new RegExp(
@@ -254,7 +265,7 @@ function replaceEmojisWithIcons(html, config = {}) {
254
265
  ? ` style="font-size: ${config.features.phosphorSize}"`
255
266
  : '';
256
267
 
257
- return html.replace(emojiPattern, match => {
268
+ html = html.replace(emojiPattern, match => {
258
269
  let iconHtml = emojiToPhosphor[match];
259
270
  if (!iconHtml) return match;
260
271
 
@@ -270,6 +281,13 @@ function replaceEmojisWithIcons(html, config = {}) {
270
281
 
271
282
  return iconHtml;
272
283
  });
284
+
285
+ // Restore code blocks
286
+ codeBlocks.forEach((block, index) => {
287
+ html = html.replace(`CODE_BLOCK_${index}`, block);
288
+ });
289
+
290
+ return html;
273
291
  }
274
292
 
275
293
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.6.5",
3
+ "version": "1.7.1",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {