@knowcode/doc-builder 1.4.3 ā 1.4.5
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 +22 -0
- package/CHANGELOG.md +19 -0
- package/CLAUDE.md +317 -0
- package/html/README.html +100 -0
- package/html/css/notion-style.css +1914 -0
- package/html/index.html +100 -0
- package/html/js/auth.js +67 -0
- package/html/js/main.js +1331 -0
- package/knowcode-doc-builder-1.4.4.tgz +0 -0
- package/lib/core-builder.js +5 -3
- package/lib/deploy.js +1 -2
- package/package.json +1 -1
- package/screenshot.png +0 -0
|
Binary file
|
package/lib/core-builder.js
CHANGED
|
@@ -94,6 +94,10 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
|
|
|
94
94
|
const siteName = config.siteName || 'Documentation';
|
|
95
95
|
const siteDescription = config.siteDescription || 'Documentation site';
|
|
96
96
|
|
|
97
|
+
// Get doc-builder version from package.json
|
|
98
|
+
const packageJson = require('../package.json');
|
|
99
|
+
const docBuilderVersion = packageJson.version;
|
|
100
|
+
|
|
97
101
|
return `<!DOCTYPE html>
|
|
98
102
|
<html lang="en">
|
|
99
103
|
<head>
|
|
@@ -113,7 +117,6 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
|
|
|
113
117
|
|
|
114
118
|
<!-- Styles -->
|
|
115
119
|
<link rel="stylesheet" href="/css/notion-style.css">
|
|
116
|
-
<link rel="stylesheet" href="/css/style.css">
|
|
117
120
|
|
|
118
121
|
<!-- Favicon -->
|
|
119
122
|
<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>">
|
|
@@ -126,7 +129,7 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
|
|
|
126
129
|
|
|
127
130
|
<div class="header-actions">
|
|
128
131
|
<div class="deployment-info">
|
|
129
|
-
<span class="deployment-date">Last updated: ${new Date().toLocaleDateString('en-US', {
|
|
132
|
+
<span class="deployment-date" title="Built with doc-builder v${docBuilderVersion}">Last updated: ${new Date().toLocaleDateString('en-US', {
|
|
130
133
|
year: 'numeric',
|
|
131
134
|
month: 'short',
|
|
132
135
|
day: 'numeric',
|
|
@@ -857,7 +860,6 @@ async function createDefaultIndexPage(outputDir, config, version) {
|
|
|
857
860
|
<title>Welcome to ${siteName}</title>
|
|
858
861
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
859
862
|
<link rel="stylesheet" href="/css/notion-style.css">
|
|
860
|
-
<link rel="stylesheet" href="/css/style.css">
|
|
861
863
|
<style>
|
|
862
864
|
.welcome-container {
|
|
863
865
|
max-width: 800px;
|
package/lib/deploy.js
CHANGED
|
@@ -187,7 +187,7 @@ async function deployToVercel(config, isProd = false) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// Check if CSS files exist
|
|
190
|
-
const cssPath = path.join(outputPath, 'css', 'style.css');
|
|
190
|
+
const cssPath = path.join(outputPath, 'css', 'notion-style.css');
|
|
191
191
|
if (!fs.existsSync(cssPath)) {
|
|
192
192
|
console.log(chalk.yellow('\nā ļø Warning: CSS files not found in output directory!'));
|
|
193
193
|
console.log(chalk.yellow(' Your documentation may appear without styling.'));
|
|
@@ -433,7 +433,6 @@ async function prepareDeployment(config) {
|
|
|
433
433
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
434
434
|
<meta http-equiv="refresh" content="0; url=${firstFile}">
|
|
435
435
|
<title>${config.siteName || 'Documentation'}</title>
|
|
436
|
-
<link rel="stylesheet" href="/css/style.css">
|
|
437
436
|
<link rel="stylesheet" href="/css/notion-style.css">
|
|
438
437
|
</head>
|
|
439
438
|
<body>
|
package/package.json
CHANGED
package/screenshot.png
ADDED
|
Binary file
|