@knowcode/doc-builder 1.4.7 → 1.4.9

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/CHANGELOG.md CHANGED
@@ -5,6 +5,31 @@ 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.9] - 2025-07-21
9
+
10
+ ### Added
11
+ - Documentation section explaining Claude Code integration
12
+ - Best practices for using Claude Code to generate and maintain documentation
13
+ - Examples of Claude Code workflows for documentation tasks
14
+ - "Claude Code Ready" feature to the features list
15
+
16
+ ### Documentation
17
+ - Enhanced README with comprehensive Claude Code usage instructions
18
+ - Added documentation conventions and patterns used by Claude Code
19
+ - Included examples of common documentation generation tasks
20
+
21
+ ## [1.4.8] - 2025-07-21
22
+
23
+ ### Fixed
24
+ - Fixed excessive spacing between breadcrumbs and navigation menu
25
+ - Changed breadcrumb default positioning from `calc(var(--header-height) + 3.5rem)` to `var(--header-height)`
26
+ - Removed duplicate `.sidebar` and `.main-wrapper` CSS definitions causing layout conflicts
27
+
28
+ ### Background
29
+ - The breadcrumb bar was incorrectly adding banner height (3.5rem) even when no banner was visible
30
+ - Duplicate CSS definitions for `.main-wrapper` were using conflicting spacing approaches (padding vs margin)
31
+ - This fixes the final spacing issue in the CSS cleanup series from v1.4.5-v1.4.7
32
+
8
33
  ## [1.4.7] - 2025-07-21
9
34
 
10
35
  ### Fixed
package/README.md CHANGED
@@ -41,6 +41,7 @@ This aligns perfectly with our mission: beautiful documentation should be access
41
41
  - 🔄 **Live Reload** - Development server with hot reloading
42
42
  - ☁️ **Vercel Integration** - One-command deployment to Vercel
43
43
  - 📦 **Self-Contained** - No configuration or setup required
44
+ - 🤖 **Claude Code Ready** - Optimized for AI-generated documentation workflows
44
45
 
45
46
  ## Quick Start
46
47
 
@@ -221,6 +222,50 @@ my-project/
221
222
  └── package.json
222
223
  ```
223
224
 
225
+ ## Working with Claude Code
226
+
227
+ Many users leverage Claude Code to create and maintain their documentation. Claude Code is particularly effective at:
228
+
229
+ ### Generating Documentation
230
+ Claude Code can analyze your codebase and automatically generate comprehensive documentation:
231
+ - API documentation from code comments and function signatures
232
+ - User guides based on your application structure
233
+ - Installation and setup instructions
234
+ - Troubleshooting guides
235
+
236
+ ### Documentation Conventions
237
+ When using Claude Code to generate documentation, it typically follows these patterns:
238
+ - Creates properly structured markdown files with hierarchical headings
239
+ - Includes code examples with syntax highlighting
240
+ - Generates Mermaid diagrams for visual representations
241
+ - Follows consistent naming conventions (e.g., `component-guide.md`, `api-reference.md`)
242
+ - Adds metadata headers for document tracking
243
+
244
+ ### Example Claude Code Workflow
245
+ 1. **Initial Documentation Generation**
246
+ ```
247
+ "Create comprehensive API documentation for this project"
248
+ ```
249
+ Claude Code will scan your codebase and generate appropriate markdown files in your `docs/` directory.
250
+
251
+ 2. **Updating Documentation**
252
+ ```
253
+ "Update the API documentation to reflect the new authentication methods"
254
+ ```
255
+ Claude Code will modify existing files while preserving structure and formatting.
256
+
257
+ 3. **Adding Visual Documentation**
258
+ ```
259
+ "Add a Mermaid diagram showing the application architecture"
260
+ ```
261
+ Claude Code will create diagrams that are automatically rendered by doc-builder.
262
+
263
+ ### Best Practices with Claude Code
264
+ - **Structured Requests**: Be specific about what documentation you need
265
+ - **Iterative Updates**: Claude Code can update existing docs without starting from scratch
266
+ - **Review Generated Content**: Always review AI-generated documentation for accuracy
267
+ - **Maintain CLAUDE.md**: Keep project-specific instructions in a CLAUDE.md file for consistent documentation style
268
+
224
269
  ## Using in Other Projects
225
270
 
226
271
  ### Option 1: NPM Link (Development)
@@ -450,7 +450,7 @@ pre code {
450
450
  border-bottom: 1px solid var(--color-border-default);
451
451
  padding: var(--space-2) 0;
452
452
  position: fixed;
453
- top: calc(var(--header-height) + 3.5rem);
453
+ top: var(--header-height);
454
454
  left: 0;
455
455
  right: 0;
456
456
  z-index: 900;
@@ -506,16 +506,6 @@ pre code {
506
506
  margin-top: calc(var(--header-height) + var(--breadcrumb-height) + 3.5rem);
507
507
  }
508
508
 
509
- /* Sidebar */
510
- .sidebar {
511
- width: var(--sidebar-width);
512
- background: var(--color-bg-secondary);
513
- border-right: 1px solid var(--color-border-default);
514
- display: flex;
515
- flex-direction: column;
516
- position: relative;
517
- }
518
-
519
509
  .sidebar-header {
520
510
  padding: var(--space-3);
521
511
  border-bottom: 1px solid var(--color-border-default);
@@ -681,18 +671,6 @@ pre code {
681
671
  }
682
672
 
683
673
  /* Main Content */
684
- .main-wrapper {
685
- display: flex;
686
- padding-top: calc(var(--header-height) + var(--breadcrumb-height));
687
- min-height: 100vh;
688
- transition: padding-top var(--duration-normal);
689
- }
690
-
691
- /* Adjust layout when banner is visible */
692
- .main-wrapper.banner-visible {
693
- padding-top: calc(var(--header-height) + var(--breadcrumb-height) + 3.5rem);
694
- }
695
-
696
674
  .content {
697
675
  flex: 1;
698
676
  padding: 40px var(--space-8);
package/html/README.html CHANGED
@@ -29,7 +29,7 @@
29
29
 
30
30
  <div class="header-actions">
31
31
  <div class="deployment-info">
32
- <span class="deployment-date" title="Built with doc-builder v1.4.6">Last updated: Jul 21, 2025, 11:05 AM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.8">Last updated: Jul 21, 2025, 11:30 AM UTC</span>
33
33
  </div>
34
34
 
35
35
 
@@ -450,7 +450,7 @@ pre code {
450
450
  border-bottom: 1px solid var(--color-border-default);
451
451
  padding: var(--space-2) 0;
452
452
  position: fixed;
453
- top: calc(var(--header-height) + 3.5rem);
453
+ top: var(--header-height);
454
454
  left: 0;
455
455
  right: 0;
456
456
  z-index: 900;
@@ -506,16 +506,6 @@ pre code {
506
506
  margin-top: calc(var(--header-height) + var(--breadcrumb-height) + 3.5rem);
507
507
  }
508
508
 
509
- /* Sidebar */
510
- .sidebar {
511
- width: var(--sidebar-width);
512
- background: var(--color-bg-secondary);
513
- border-right: 1px solid var(--color-border-default);
514
- display: flex;
515
- flex-direction: column;
516
- position: relative;
517
- }
518
-
519
509
  .sidebar-header {
520
510
  padding: var(--space-3);
521
511
  border-bottom: 1px solid var(--color-border-default);
@@ -681,18 +671,6 @@ pre code {
681
671
  }
682
672
 
683
673
  /* Main Content */
684
- .main-wrapper {
685
- display: flex;
686
- padding-top: calc(var(--header-height) + var(--breadcrumb-height));
687
- min-height: 100vh;
688
- transition: padding-top var(--duration-normal);
689
- }
690
-
691
- /* Adjust layout when banner is visible */
692
- .main-wrapper.banner-visible {
693
- padding-top: calc(var(--header-height) + var(--breadcrumb-height) + 3.5rem);
694
- }
695
-
696
674
  .content {
697
675
  flex: 1;
698
676
  padding: 40px var(--space-8);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,22 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(node:*)",
5
- "Bash(git add:*)",
6
- "Bash(git commit:*)",
7
- "Bash(npm version:*)",
8
- "Bash(npm pack)",
9
- "Bash(cat:*)",
10
- "Bash(rm:*)",
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:*)"
19
- ],
20
- "deny": []
21
- }
22
- }
Binary file
@@ -1,82 +0,0 @@
1
- # Cache Busting Guide for @knowcode/doc-builder
2
-
3
- If you're not seeing updates after upgrading to a new version, it's likely due to caching. Follow these steps:
4
-
5
- ## 1. Clean Everything Locally
6
-
7
- ```bash
8
- # Remove old build artifacts
9
- rm -rf html/
10
-
11
- # Clear npm cache
12
- npm cache clean --force
13
-
14
- # Remove node_modules and reinstall
15
- rm -rf node_modules
16
- npm install
17
-
18
- # Make sure you have the latest version
19
- npm install @knowcode/doc-builder@latest
20
- ```
21
-
22
- ## 2. Rebuild with Fresh Files
23
-
24
- ```bash
25
- # Build fresh documentation
26
- npx @knowcode/doc-builder build
27
- ```
28
-
29
- ## 3. Deploy with Force Flag
30
-
31
- ```bash
32
- # Force Vercel to ignore cache
33
- vercel --prod --force
34
- ```
35
-
36
- ## 4. Clear Browser Cache
37
-
38
- - **Chrome/Edge**: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
39
- - **Firefox**: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
40
- - **Safari**: Cmd+Option+R
41
- - Or use Incognito/Private browsing mode
42
-
43
- ## 5. Clear Vercel/CDN Cache (if applicable)
44
-
45
- If using Vercel:
46
- 1. Go to your project dashboard
47
- 2. Settings → Functions → Purge Cache
48
- 3. Or redeploy with a different domain temporarily
49
-
50
- ## 6. Add Cache Busting to Your Build
51
-
52
- Edit your `doc-builder.config.js` to add version query strings:
53
-
54
- ```javascript
55
- module.exports = {
56
- // ... other config
57
- cacheBust: true, // This will add ?v=timestamp to CSS/JS files
58
- };
59
- ```
60
-
61
- ## Common Issues
62
-
63
- - **"I updated but nothing changed"** - It's cache. Follow all steps above.
64
- - **"Tooltips still don't work"** - Clear browser cache and check console for errors
65
- - **"Spacing is still wrong"** - The CSS is cached. Hard refresh the page.
66
-
67
- ## Verify You Have The Right Version
68
-
69
- Check the version in your package.json:
70
- ```bash
71
- npm list @knowcode/doc-builder
72
- ```
73
-
74
- Should show: `@knowcode/doc-builder@1.3.13` or higher.
75
-
76
- ## Still Not Working?
77
-
78
- 1. Open browser DevTools
79
- 2. Go to Network tab
80
- 3. Check "Disable cache" checkbox
81
- 4. Refresh the page
82
- 5. Look at the CSS/JS files being loaded - they should not show "(from cache)"