@knowcode/doc-builder 1.4.2 โ†’ 1.4.3

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.
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Post-install setup script for @knowcode/doc-builder
3
+ * This script runs after npm install to help users get started
4
+ */
5
+
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const chalk = require('chalk');
9
+
10
+ // Check if we're in the doc-builder package itself (skip setup)
11
+ const packagePath = path.join(process.cwd(), 'package.json');
12
+ if (fs.existsSync(packagePath)) {
13
+ const pkg = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
14
+ if (pkg.name === '@knowcode/doc-builder') {
15
+ // We're in the doc-builder package itself, skip setup
16
+ process.exit(0);
17
+ }
18
+ }
19
+
20
+ console.log(chalk.cyan('\n๐Ÿš€ Welcome to @knowcode/doc-builder!\n'));
21
+
22
+ console.log('You can use doc-builder in several ways:\n');
23
+
24
+ console.log(chalk.yellow('1. Using npx (no installation required):'));
25
+ console.log(' npx @knowcode/doc-builder build');
26
+ console.log(' npx @knowcode/doc-builder dev');
27
+ console.log(' npx @knowcode/doc-builder deploy\n');
28
+
29
+ console.log(chalk.yellow('2. After installing as a dependency:'));
30
+ console.log(' doc-builder build');
31
+ console.log(' doc-builder dev');
32
+ console.log(' doc-builder deploy\n');
33
+
34
+ console.log(chalk.yellow('3. In your package.json scripts:'));
35
+ console.log(chalk.gray(' "scripts": {'));
36
+ console.log(chalk.gray(' "docs:build": "doc-builder build",'));
37
+ console.log(chalk.gray(' "docs:dev": "doc-builder dev",'));
38
+ console.log(chalk.gray(' "docs:deploy": "doc-builder deploy --prod"'));
39
+ console.log(chalk.gray(' }\n'));
40
+
41
+ console.log(chalk.yellow('4. Programmatically in your code:'));
42
+ console.log(chalk.gray(' const { build } = require("@knowcode/doc-builder");'));
43
+ console.log(chalk.gray(' await build();\n'));
44
+
45
+ // Check for common doc directories
46
+ const commonDirs = ['docs', 'documentation', 'doc'];
47
+ const foundDir = commonDirs.find(dir => fs.existsSync(path.join(process.cwd(), dir)));
48
+
49
+ if (foundDir) {
50
+ console.log(chalk.green(`โœ… Found ${foundDir}/ directory - doc-builder will use this by default\n`));
51
+ } else {
52
+ console.log(chalk.yellow(`โ„น๏ธ No docs directory found. Create a 'docs' folder with markdown files to get started.\n`));
53
+ }
54
+
55
+ console.log(chalk.gray('For more information, visit: https://github.com/knowcode/doc-builder'));
56
+ console.log(chalk.gray('To create a config file, run: doc-builder init --config\n'));
@@ -0,0 +1,43 @@
1
+ #!/bin/bash
2
+
3
+ echo "๐Ÿงน Cache Busting Test for doc-builder"
4
+ echo "===================================="
5
+
6
+ # Step 1: Clean everything
7
+ echo "1. Removing old build artifacts..."
8
+ rm -rf html/
9
+ rm -rf node_modules/
10
+ rm -rf .cache/
11
+
12
+ # Step 2: Clear npm cache
13
+ echo "2. Clearing npm cache..."
14
+ npm cache clean --force
15
+
16
+ # Step 3: Install latest version
17
+ echo "3. Installing latest doc-builder..."
18
+ npm install @knowcode/doc-builder@latest
19
+
20
+ # Step 4: Show version
21
+ echo "4. Installed version:"
22
+ npm list @knowcode/doc-builder
23
+
24
+ # Step 5: Build fresh
25
+ echo "5. Building documentation..."
26
+ npx @knowcode/doc-builder build
27
+
28
+ # Step 6: Check CSS content
29
+ echo "6. Checking if CSS has latest changes..."
30
+ echo " Looking for 'margin: 0; /* Left aligned'..."
31
+ grep -n "margin: 0; /\* Left aligned" html/css/notion-style.css || echo "NOT FOUND!"
32
+
33
+ echo " Looking for 'position: fixed; /* Use fixed'..."
34
+ grep -n "position: fixed; /\* Use fixed" html/css/notion-style.css || echo "NOT FOUND!"
35
+
36
+ echo ""
37
+ echo "โœ… If you see the CSS changes above, the package is working correctly!"
38
+ echo "๐Ÿšจ If not found, there's a build issue we need to investigate."
39
+ echo ""
40
+ echo "Next steps:"
41
+ echo "1. Deploy with: vercel --prod --force"
42
+ echo "2. Open in incognito/private browsing"
43
+ echo "3. Hard refresh: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {
Binary file