@knowcode/doc-builder 1.4.3 → 1.4.4

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>
@@ -126,7 +130,7 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
126
130
 
127
131
  <div class="header-actions">
128
132
  <div class="deployment-info">
129
- <span class="deployment-date">Last updated: ${new Date().toLocaleDateString('en-US', {
133
+ <span class="deployment-date" title="Built with doc-builder v${docBuilderVersion}">Last updated: ${new Date().toLocaleDateString('en-US', {
130
134
  year: 'numeric',
131
135
  month: 'short',
132
136
  day: 'numeric',
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.4",
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