@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.
Binary file
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {
package/screenshot.png ADDED
Binary file