@knowcode/doc-builder 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/CHANGELOG.md +55 -0
- package/README.md +0 -8
- package/assets/404.html +115 -0
- package/assets/css/notion-style.css +56 -0
- package/assets/js/main.js +109 -0
- package/doc-builder.config.js +31 -35
- package/html/404.html +115 -0
- package/html/README.html +6 -6
- package/html/claude-workflow-guide.html +5 -5
- package/html/css/notion-style.css +56 -0
- package/html/documentation-index.html +6 -6
- package/html/guides/authentication-guide.html +6 -6
- package/html/guides/claude-workflow-guide.html +531 -0
- package/html/guides/documentation-standards.html +6 -6
- package/html/guides/seo-guide.html +6 -6
- package/html/guides/troubleshooting-guide.html +6 -6
- package/html/index.html +6 -6
- package/html/js/main.js +109 -0
- package/html/sitemap.xml +23 -11
- package/html/vercel-cli-setup-guide.html +6 -6
- package/html/vercel-first-time-setup-guide.html +6 -6
- package/lib/core-builder.js +7 -0
- package/lib/deploy.js +20 -0
- package/package.json +1 -1
- package/knowcode-doc-builder-1.4.4.tgz +0 -0
package/html/index.html
CHANGED
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"publisher": {
|
|
57
57
|
"@type": "Organization",
|
|
58
|
-
"name": "
|
|
59
|
-
"url": "https://knowcode.
|
|
58
|
+
"name": "Knowcode Ltd",
|
|
59
|
+
"url": "https://knowcode.tech"
|
|
60
60
|
},
|
|
61
|
-
"datePublished": "2025-07-
|
|
62
|
-
"dateModified": "2025-07-
|
|
61
|
+
"datePublished": "2025-07-22T05:55:46.703Z",
|
|
62
|
+
"dateModified": "2025-07-22T05:55:46.703Z",
|
|
63
63
|
"mainEntityOfPage": {
|
|
64
64
|
"@type": "WebPage",
|
|
65
65
|
"@id": "https://doc-builder-delta.vercel.app/README.html"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
<div class="header-actions">
|
|
94
94
|
<div class="deployment-info">
|
|
95
|
-
<span class="deployment-date" title="Built with doc-builder v1.
|
|
95
|
+
<span class="deployment-date" title="Built with doc-builder v1.5.1">Last updated: Jul 22, 2025, 05:55 AM UTC</span>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
|
|
@@ -142,7 +142,6 @@
|
|
|
142
142
|
</a>
|
|
143
143
|
<div class="nav-content" >
|
|
144
144
|
<a href="/README.html" class="nav-item active" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
|
|
145
|
-
<a href="/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
146
145
|
<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>
|
|
147
146
|
<a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing and configuring the Vercel CLI across different operating systems and environments."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
|
|
148
147
|
<a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide provides a detailed explanation of every prompt you'll encounter during the first-time Vercel setup process when using."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
|
|
@@ -152,6 +151,7 @@
|
|
|
152
151
|
</a>
|
|
153
152
|
<div class="nav-content" id="nav-guides-1">
|
|
154
153
|
<a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="This guide explains how to configure and use the built-in authentication feature in @knowcode/doc-builder to protect your documentation with basic..."><i class="fas fa-file-alt"></i> Authentication Guide</a>
|
|
154
|
+
<a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
155
155
|
<a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="fas fa-file-alt"></i> Documentation Standards</a>
|
|
156
156
|
<a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="fas fa-file-alt"></i> Seo Guide</a>
|
|
157
157
|
<a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Troubleshooting Guide</a></div></div>
|
package/html/js/main.js
CHANGED
|
@@ -518,6 +518,92 @@ if (menuToggle) {
|
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
+
// Floating Menu Button for Mobile
|
|
522
|
+
function initFloatingMenuButton() {
|
|
523
|
+
// Only initialize on mobile
|
|
524
|
+
if (window.innerWidth > 768) return;
|
|
525
|
+
|
|
526
|
+
// Check if button already exists
|
|
527
|
+
if (document.getElementById('floating-menu-toggle')) return;
|
|
528
|
+
|
|
529
|
+
// Create floating button
|
|
530
|
+
const floatingButton = document.createElement('button');
|
|
531
|
+
floatingButton.id = 'floating-menu-toggle';
|
|
532
|
+
floatingButton.className = 'floating-menu-toggle';
|
|
533
|
+
floatingButton.setAttribute('aria-label', 'Toggle menu');
|
|
534
|
+
floatingButton.innerHTML = '<i class="fas fa-bars"></i>';
|
|
535
|
+
floatingButton.style.display = 'none'; // Hidden by default
|
|
536
|
+
|
|
537
|
+
// Add to body
|
|
538
|
+
document.body.appendChild(floatingButton);
|
|
539
|
+
|
|
540
|
+
// Toggle sidebar on click
|
|
541
|
+
floatingButton.addEventListener('click', () => {
|
|
542
|
+
sidebar.classList.toggle('open');
|
|
543
|
+
// Update icon based on state
|
|
544
|
+
const icon = floatingButton.querySelector('i');
|
|
545
|
+
if (sidebar.classList.contains('open')) {
|
|
546
|
+
icon.className = 'fas fa-times';
|
|
547
|
+
} else {
|
|
548
|
+
icon.className = 'fas fa-bars';
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
// Show/hide based on scroll position
|
|
553
|
+
let scrollTimeout;
|
|
554
|
+
|
|
555
|
+
window.addEventListener('scroll', () => {
|
|
556
|
+
clearTimeout(scrollTimeout);
|
|
557
|
+
scrollTimeout = setTimeout(() => {
|
|
558
|
+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
559
|
+
const headerHeight = document.querySelector('.header')?.offsetHeight || 64;
|
|
560
|
+
|
|
561
|
+
// Show floating button when scrolled past header
|
|
562
|
+
if (scrollTop > headerHeight + 50) {
|
|
563
|
+
floatingButton.style.display = 'flex';
|
|
564
|
+
// Add slight delay for smooth appearance
|
|
565
|
+
setTimeout(() => {
|
|
566
|
+
floatingButton.classList.add('visible');
|
|
567
|
+
}, 10);
|
|
568
|
+
} else {
|
|
569
|
+
floatingButton.classList.remove('visible');
|
|
570
|
+
// Hide after transition completes
|
|
571
|
+
setTimeout(() => {
|
|
572
|
+
if (!floatingButton.classList.contains('visible')) {
|
|
573
|
+
floatingButton.style.display = 'none';
|
|
574
|
+
}
|
|
575
|
+
}, 300);
|
|
576
|
+
}
|
|
577
|
+
}, 100);
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
// Update icon when sidebar state changes from other sources
|
|
581
|
+
const observer = new MutationObserver(() => {
|
|
582
|
+
const icon = floatingButton.querySelector('i');
|
|
583
|
+
if (sidebar.classList.contains('open')) {
|
|
584
|
+
icon.className = 'fas fa-times';
|
|
585
|
+
} else {
|
|
586
|
+
icon.className = 'fas fa-bars';
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
|
|
590
|
+
observer.observe(sidebar, {
|
|
591
|
+
attributes: true,
|
|
592
|
+
attributeFilter: ['class']
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// Initialize floating button on load and resize
|
|
597
|
+
document.addEventListener('DOMContentLoaded', initFloatingMenuButton);
|
|
598
|
+
window.addEventListener('resize', () => {
|
|
599
|
+
const existingButton = document.getElementById('floating-menu-toggle');
|
|
600
|
+
if (window.innerWidth > 768 && existingButton) {
|
|
601
|
+
existingButton.remove();
|
|
602
|
+
} else if (window.innerWidth <= 768 && !existingButton) {
|
|
603
|
+
initFloatingMenuButton();
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
|
|
521
607
|
// Prevent sidebar from closing when clicking nav items
|
|
522
608
|
// Only close when clicking outside the sidebar or the close button
|
|
523
609
|
document.addEventListener('click', (e) => {
|
|
@@ -1318,8 +1404,31 @@ function initTooltips() {
|
|
|
1318
1404
|
});
|
|
1319
1405
|
}
|
|
1320
1406
|
|
|
1407
|
+
// Handle .md link redirects
|
|
1408
|
+
function initMarkdownLinkRedirects() {
|
|
1409
|
+
// Check if current URL ends with .md and redirect
|
|
1410
|
+
if (window.location.pathname.endsWith('.md')) {
|
|
1411
|
+
const htmlPath = window.location.pathname.replace(/\.md$/, '.html');
|
|
1412
|
+
console.log(`Redirecting from .md to .html: ${htmlPath}`);
|
|
1413
|
+
window.location.replace(htmlPath);
|
|
1414
|
+
return; // Stop execution as we're redirecting
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
// Intercept clicks on .md links
|
|
1418
|
+
document.addEventListener('click', function(e) {
|
|
1419
|
+
const link = e.target.closest('a');
|
|
1420
|
+
if (link && link.href && link.href.endsWith('.md')) {
|
|
1421
|
+
e.preventDefault();
|
|
1422
|
+
const htmlUrl = link.href.replace(/\.md$/, '.html');
|
|
1423
|
+
console.log(`Converting .md link to .html: ${htmlUrl}`);
|
|
1424
|
+
window.location.href = htmlUrl;
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1321
1429
|
// Initialize on DOM Load
|
|
1322
1430
|
document.addEventListener('DOMContentLoaded', () => {
|
|
1431
|
+
initMarkdownLinkRedirects();
|
|
1323
1432
|
highlightNavigation();
|
|
1324
1433
|
generateTableOfContents();
|
|
1325
1434
|
initSidebarResize();
|
package/html/sitemap.xml
CHANGED
|
@@ -1,68 +1,80 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
3
|
+
<url>
|
|
4
|
+
<loc>https://doc-builder-delta.vercel.app/404.html</loc>
|
|
5
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
6
|
+
<changefreq>monthly</changefreq>
|
|
7
|
+
<priority>0.6</priority>
|
|
8
|
+
</url>
|
|
3
9
|
<url>
|
|
4
10
|
<loc>https://doc-builder-delta.vercel.app/README.html</loc>
|
|
5
|
-
<lastmod>2025-07-
|
|
11
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
6
12
|
<changefreq>monthly</changefreq>
|
|
7
13
|
<priority>0.6</priority>
|
|
8
14
|
</url>
|
|
9
15
|
<url>
|
|
10
16
|
<loc>https://doc-builder-delta.vercel.app/claude-workflow-guide.html</loc>
|
|
11
|
-
<lastmod>2025-07-
|
|
17
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
12
18
|
<changefreq>monthly</changefreq>
|
|
13
19
|
<priority>0.8</priority>
|
|
14
20
|
</url>
|
|
15
21
|
<url>
|
|
16
22
|
<loc>https://doc-builder-delta.vercel.app/documentation-index.html</loc>
|
|
17
|
-
<lastmod>2025-07-
|
|
23
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
18
24
|
<changefreq>monthly</changefreq>
|
|
19
25
|
<priority>0.6</priority>
|
|
20
26
|
</url>
|
|
21
27
|
<url>
|
|
22
28
|
<loc>https://doc-builder-delta.vercel.app/guides/authentication-guide.html</loc>
|
|
23
|
-
<lastmod>2025-07-
|
|
29
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
30
|
+
<changefreq>monthly</changefreq>
|
|
31
|
+
<priority>0.8</priority>
|
|
32
|
+
</url>
|
|
33
|
+
<url>
|
|
34
|
+
<loc>https://doc-builder-delta.vercel.app/guides/claude-workflow-guide.html</loc>
|
|
35
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
24
36
|
<changefreq>monthly</changefreq>
|
|
25
37
|
<priority>0.8</priority>
|
|
26
38
|
</url>
|
|
27
39
|
<url>
|
|
28
40
|
<loc>https://doc-builder-delta.vercel.app/guides/document-standards.html</loc>
|
|
29
|
-
<lastmod>2025-07-
|
|
41
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
30
42
|
<changefreq>monthly</changefreq>
|
|
31
43
|
<priority>0.8</priority>
|
|
32
44
|
</url>
|
|
33
45
|
<url>
|
|
34
46
|
<loc>https://doc-builder-delta.vercel.app/guides/documentation-standards.html</loc>
|
|
35
|
-
<lastmod>2025-07-
|
|
47
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
36
48
|
<changefreq>monthly</changefreq>
|
|
37
49
|
<priority>0.8</priority>
|
|
38
50
|
</url>
|
|
39
51
|
<url>
|
|
40
52
|
<loc>https://doc-builder-delta.vercel.app/guides/seo-guide.html</loc>
|
|
41
|
-
<lastmod>2025-07-
|
|
53
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
42
54
|
<changefreq>monthly</changefreq>
|
|
43
55
|
<priority>0.8</priority>
|
|
44
56
|
</url>
|
|
45
57
|
<url>
|
|
46
58
|
<loc>https://doc-builder-delta.vercel.app/guides/troubleshooting-guide.html</loc>
|
|
47
|
-
<lastmod>2025-07-
|
|
59
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
48
60
|
<changefreq>monthly</changefreq>
|
|
49
61
|
<priority>0.8</priority>
|
|
50
62
|
</url>
|
|
51
63
|
<url>
|
|
52
64
|
<loc>https://doc-builder-delta.vercel.app/index.html</loc>
|
|
53
|
-
<lastmod>2025-07-
|
|
65
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
54
66
|
<changefreq>weekly</changefreq>
|
|
55
67
|
<priority>1.0</priority>
|
|
56
68
|
</url>
|
|
57
69
|
<url>
|
|
58
70
|
<loc>https://doc-builder-delta.vercel.app/vercel-cli-setup-guide.html</loc>
|
|
59
|
-
<lastmod>2025-07-
|
|
71
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
60
72
|
<changefreq>monthly</changefreq>
|
|
61
73
|
<priority>0.8</priority>
|
|
62
74
|
</url>
|
|
63
75
|
<url>
|
|
64
76
|
<loc>https://doc-builder-delta.vercel.app/vercel-first-time-setup-guide.html</loc>
|
|
65
|
-
<lastmod>2025-07-
|
|
77
|
+
<lastmod>2025-07-22T05:55:46.744Z</lastmod>
|
|
66
78
|
<changefreq>monthly</changefreq>
|
|
67
79
|
<priority>0.8</priority>
|
|
68
80
|
</url>
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"publisher": {
|
|
57
57
|
"@type": "Organization",
|
|
58
|
-
"name": "
|
|
59
|
-
"url": "https://knowcode.
|
|
58
|
+
"name": "Knowcode Ltd",
|
|
59
|
+
"url": "https://knowcode.tech"
|
|
60
60
|
},
|
|
61
|
-
"datePublished": "2025-07-
|
|
62
|
-
"dateModified": "2025-07-
|
|
61
|
+
"datePublished": "2025-07-22T05:55:46.731Z",
|
|
62
|
+
"dateModified": "2025-07-22T05:55:46.731Z",
|
|
63
63
|
"mainEntityOfPage": {
|
|
64
64
|
"@type": "WebPage",
|
|
65
65
|
"@id": "https://doc-builder-delta.vercel.app/vercel-cli-setup-guide.html"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
<div class="header-actions">
|
|
94
94
|
<div class="deployment-info">
|
|
95
|
-
<span class="deployment-date" title="Built with doc-builder v1.
|
|
95
|
+
<span class="deployment-date" title="Built with doc-builder v1.5.1">Last updated: Jul 22, 2025, 05:55 AM UTC</span>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
|
|
@@ -142,7 +142,6 @@
|
|
|
142
142
|
</a>
|
|
143
143
|
<div class="nav-content" >
|
|
144
144
|
<a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
|
|
145
|
-
<a href="/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
146
145
|
<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>
|
|
147
146
|
<a href="/vercel-cli-setup-guide.html" class="nav-item active" data-tooltip="This guide provides comprehensive instructions for installing and configuring the Vercel CLI across different operating systems and environments."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
|
|
148
147
|
<a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide provides a detailed explanation of every prompt you'll encounter during the first-time Vercel setup process when using."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
|
|
@@ -152,6 +151,7 @@
|
|
|
152
151
|
</a>
|
|
153
152
|
<div class="nav-content collapsed" id="nav-guides-1">
|
|
154
153
|
<a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="This guide explains how to configure and use the built-in authentication feature in @knowcode/doc-builder to protect your documentation with basic..."><i class="fas fa-file-alt"></i> Authentication Guide</a>
|
|
154
|
+
<a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
155
155
|
<a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="fas fa-file-alt"></i> Documentation Standards</a>
|
|
156
156
|
<a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="fas fa-file-alt"></i> Seo Guide</a>
|
|
157
157
|
<a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Troubleshooting Guide</a></div></div>
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"publisher": {
|
|
57
57
|
"@type": "Organization",
|
|
58
|
-
"name": "
|
|
59
|
-
"url": "https://knowcode.
|
|
58
|
+
"name": "Knowcode Ltd",
|
|
59
|
+
"url": "https://knowcode.tech"
|
|
60
60
|
},
|
|
61
|
-
"datePublished": "2025-07-
|
|
62
|
-
"dateModified": "2025-07-
|
|
61
|
+
"datePublished": "2025-07-22T05:55:46.734Z",
|
|
62
|
+
"dateModified": "2025-07-22T05:55:46.734Z",
|
|
63
63
|
"mainEntityOfPage": {
|
|
64
64
|
"@type": "WebPage",
|
|
65
65
|
"@id": "https://doc-builder-delta.vercel.app/vercel-first-time-setup-guide.html"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
<div class="header-actions">
|
|
94
94
|
<div class="deployment-info">
|
|
95
|
-
<span class="deployment-date" title="Built with doc-builder v1.
|
|
95
|
+
<span class="deployment-date" title="Built with doc-builder v1.5.1">Last updated: Jul 22, 2025, 05:55 AM UTC</span>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
|
|
@@ -142,7 +142,6 @@
|
|
|
142
142
|
</a>
|
|
143
143
|
<div class="nav-content" >
|
|
144
144
|
<a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
|
|
145
|
-
<a href="/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
146
145
|
<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>
|
|
147
146
|
<a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing and configuring the Vercel CLI across different operating systems and environments."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
|
|
148
147
|
<a href="/vercel-first-time-setup-guide.html" class="nav-item active" data-tooltip="This guide provides a detailed explanation of every prompt you'll encounter during the first-time Vercel setup process when using."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
|
|
@@ -152,6 +151,7 @@
|
|
|
152
151
|
</a>
|
|
153
152
|
<div class="nav-content collapsed" id="nav-guides-1">
|
|
154
153
|
<a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="This guide explains how to configure and use the built-in authentication feature in @knowcode/doc-builder to protect your documentation with basic..."><i class="fas fa-file-alt"></i> Authentication Guide</a>
|
|
154
|
+
<a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
155
155
|
<a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="fas fa-file-alt"></i> Documentation Standards</a>
|
|
156
156
|
<a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="fas fa-file-alt"></i> Seo Guide</a>
|
|
157
157
|
<a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Troubleshooting Guide</a></div></div>
|
package/lib/core-builder.js
CHANGED
|
@@ -700,6 +700,13 @@ async function buildDocumentation(config) {
|
|
|
700
700
|
await createAuthPages(outputDir, config);
|
|
701
701
|
}
|
|
702
702
|
|
|
703
|
+
// Copy 404.html for handling .md redirects
|
|
704
|
+
const notFoundSource = path.join(assetsDir, '404.html');
|
|
705
|
+
if (fs.existsSync(notFoundSource)) {
|
|
706
|
+
await fs.copy(notFoundSource, path.join(outputDir, '404.html'), { overwrite: true });
|
|
707
|
+
console.log(chalk.green('✅ Copied 404.html for .md link handling'));
|
|
708
|
+
}
|
|
709
|
+
|
|
703
710
|
// Create index.html from index.html, README.html, or generate default
|
|
704
711
|
const indexPath = path.join(outputDir, 'index.html');
|
|
705
712
|
const indexSourcePath = path.join(outputDir, 'index.html'); // from index.md
|
package/lib/deploy.js
CHANGED
|
@@ -93,6 +93,16 @@ async function setupVercelProject(config) {
|
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
|
+
],
|
|
97
|
+
"routes": [
|
|
98
|
+
{
|
|
99
|
+
"handle": "filesystem"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"src": "/(.*)",
|
|
103
|
+
"status": 404,
|
|
104
|
+
"dest": "/404.html"
|
|
105
|
+
}
|
|
96
106
|
]
|
|
97
107
|
};
|
|
98
108
|
|
|
@@ -265,6 +275,16 @@ async function deployToVercel(config, isProd = false) {
|
|
|
265
275
|
}
|
|
266
276
|
]
|
|
267
277
|
}
|
|
278
|
+
],
|
|
279
|
+
"routes": [
|
|
280
|
+
{
|
|
281
|
+
"handle": "filesystem"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"src": "/(.*)",
|
|
285
|
+
"status": 404,
|
|
286
|
+
"dest": "/404.html"
|
|
287
|
+
}
|
|
268
288
|
]
|
|
269
289
|
};
|
|
270
290
|
fs.writeJsonSync(vercelConfigPath, vercelConfig, { spaces: 2 });
|
package/package.json
CHANGED
|
Binary file
|