@knowcode/doc-builder 1.4.20 → 1.4.21

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,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.21] - 2025-07-21
9
+
10
+ ### Fixed
11
+ - Fixed hidden sidebar still taking up vertical space on mobile
12
+ - Made sidebar absolutely positioned on mobile to remove it from document flow
13
+ - Eliminated the gap that matched the collapsed menu height
14
+
15
+ ### Background
16
+ - Sidebar was hidden with translateX but still occupied 250px in the flex column
17
+ - This created a gap exactly the height of the collapsed menu
18
+ - Now sidebar is position: absolute on mobile, completely removing it from layout
19
+
8
20
  ## [1.4.20] - 2025-07-21
9
21
 
10
22
  ### Fixed
@@ -954,6 +954,11 @@ tr:hover {
954
954
 
955
955
  /* Hide sidebar on mobile */
956
956
  .sidebar {
957
+ position: absolute;
958
+ top: calc(var(--header-height) + var(--breadcrumb-height));
959
+ left: 0;
960
+ height: calc(100vh - var(--header-height) - var(--breadcrumb-height));
961
+ z-index: 999;
957
962
  transform: translateX(-100%);
958
963
  transition: transform var(--duration-normal) var(--easing-out);
959
964
  }
@@ -1588,12 +1593,7 @@ tr:hover {
1588
1593
  margin-top: calc(var(--header-height) + var(--breadcrumb-height)); /* Account for both fixed elements */
1589
1594
  }
1590
1595
 
1591
- .sidebar {
1592
- width: 100%;
1593
- max-height: 250px;
1594
- border-right: none;
1595
- border-bottom: 1px solid var(--color-border-default);
1596
- }
1596
+ /* Sidebar positioning handled in earlier media query */
1597
1597
 
1598
1598
  .content {
1599
1599
  padding: var(--space-4);
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.20">Last updated: Jul 21, 2025, 06:04 PM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 21, 2025, 06:12 PM UTC</span>
33
33
  </div>
34
34
 
35
35
 
@@ -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.20">Last updated: Jul 21, 2025, 06:04 PM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 21, 2025, 06:12 PM UTC</span>
33
33
  </div>
34
34
 
35
35
 
@@ -954,6 +954,11 @@ tr:hover {
954
954
 
955
955
  /* Hide sidebar on mobile */
956
956
  .sidebar {
957
+ position: absolute;
958
+ top: calc(var(--header-height) + var(--breadcrumb-height));
959
+ left: 0;
960
+ height: calc(100vh - var(--header-height) - var(--breadcrumb-height));
961
+ z-index: 999;
957
962
  transform: translateX(-100%);
958
963
  transition: transform var(--duration-normal) var(--easing-out);
959
964
  }
@@ -1588,12 +1593,7 @@ tr:hover {
1588
1593
  margin-top: calc(var(--header-height) + var(--breadcrumb-height)); /* Account for both fixed elements */
1589
1594
  }
1590
1595
 
1591
- .sidebar {
1592
- width: 100%;
1593
- max-height: 250px;
1594
- border-right: none;
1595
- border-bottom: 1px solid var(--color-border-default);
1596
- }
1596
+ /* Sidebar positioning handled in earlier media query */
1597
1597
 
1598
1598
  .content {
1599
1599
  padding: var(--space-4);
@@ -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.20">Last updated: Jul 21, 2025, 06:04 PM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 21, 2025, 06:12 PM UTC</span>
33
33
  </div>
34
34
 
35
35
 
@@ -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.20">Last updated: Jul 21, 2025, 06:04 PM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 21, 2025, 06:12 PM UTC</span>
33
33
  </div>
34
34
 
35
35
 
package/html/index.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.20">Last updated: Jul 21, 2025, 06:04 PM UTC</span>
32
+ <span class="deployment-date" title="Built with doc-builder v1.4.21">Last updated: Jul 21, 2025, 06:12 PM UTC</span>
33
33
  </div>
34
34
 
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.4.20",
3
+ "version": "1.4.21",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {