@knowcode/doc-builder 1.4.4 → 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.
@@ -8,7 +8,14 @@
8
8
  "Bash(npm pack)",
9
9
  "Bash(cat:*)",
10
10
  "Bash(rm:*)",
11
- "Bash(npm publish:*)"
11
+ "Bash(npm publish:*)",
12
+ "Bash(git tag:*)",
13
+ "Bash(git push:*)",
14
+ "Bash(git pull:*)",
15
+ "Bash(git rebase:*)",
16
+ "Bash(npm info:*)",
17
+ "Bash(npx:*)",
18
+ "Bash(grep:*)"
12
19
  ],
13
20
  "deny": []
14
21
  }
package/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.4.5] - 2025-07-21
9
+
10
+ ### Fixed
11
+ - Removed all references to non-existent style.css file
12
+ - Fixed CSS rendering issues where root page appeared different from other pages
13
+ - Updated CSS existence check in deploy.js to verify notion-style.css instead
14
+
15
+ ### Background
16
+ - style.css was removed in v1.4.0 but code references remained
17
+ - This caused 404 errors and potential CSS loading failures
18
+ - All pages now correctly load only notion-style.css as intended
19
+
8
20
  ## [1.4.4] - 2025-07-21
9
21
 
10
22
  ### Added
package/html/README.html CHANGED
@@ -17,7 +17,6 @@
17
17
 
18
18
  <!-- Styles -->
19
19
  <link rel="stylesheet" href="/css/notion-style.css">
20
- <link rel="stylesheet" href="/css/style.css">
21
20
 
22
21
  <!-- Favicon -->
23
22
  <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>">
@@ -30,7 +29,7 @@
30
29
 
31
30
  <div class="header-actions">
32
31
  <div class="deployment-info">
33
- <span class="deployment-date" title="Built with doc-builder v1.4.4">Last updated: Jul 21, 2025, 10:35 AM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.5">Last updated: Jul 21, 2025, 10:46 AM UTC</span>
34
33
  </div>
35
34
 
36
35
 
package/html/index.html CHANGED
@@ -17,7 +17,6 @@
17
17
 
18
18
  <!-- Styles -->
19
19
  <link rel="stylesheet" href="/css/notion-style.css">
20
- <link rel="stylesheet" href="/css/style.css">
21
20
 
22
21
  <!-- Favicon -->
23
22
  <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>">
@@ -30,7 +29,7 @@
30
29
 
31
30
  <div class="header-actions">
32
31
  <div class="deployment-info">
33
- <span class="deployment-date" title="Built with doc-builder v1.4.4">Last updated: Jul 21, 2025, 10:35 AM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.5">Last updated: Jul 21, 2025, 10:46 AM UTC</span>
34
33
  </div>
35
34
 
36
35
 
@@ -117,7 +117,6 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
117
117
 
118
118
  <!-- Styles -->
119
119
  <link rel="stylesheet" href="/css/notion-style.css">
120
- <link rel="stylesheet" href="/css/style.css">
121
120
 
122
121
  <!-- Favicon -->
123
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>">
@@ -861,7 +860,6 @@ async function createDefaultIndexPage(outputDir, config, version) {
861
860
  <title>Welcome to ${siteName}</title>
862
861
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
863
862
  <link rel="stylesheet" href="/css/notion-style.css">
864
- <link rel="stylesheet" href="/css/style.css">
865
863
  <style>
866
864
  .welcome-container {
867
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.4",
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": {