@knowcode/doc-builder 1.4.19 → 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,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.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
+
20
+ ## [1.4.20] - 2025-07-21
21
+
22
+ ### Fixed
23
+ - Properly fixed the persistent white gap at 768px breakpoint
24
+ - Resolved conflicting media query styles
25
+ - Kept breadcrumbs in fixed position on mobile
26
+
27
+ ### Background
28
+ - Multiple 768px media queries were conflicting with each other
29
+ - Last media query was changing breadcrumbs to relative positioning
30
+ - This caused double spacing (margin + breadcrumb height)
31
+ - Now breadcrumbs remain fixed and margin-top properly accounts for both elements
32
+
8
33
  ## [1.4.19] - 2025-07-21
9
34
 
10
35
  ### 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
  }
@@ -1585,14 +1590,10 @@ tr:hover {
1585
1590
  flex-direction: column;
1586
1591
  height: auto;
1587
1592
  min-height: calc(100vh - var(--header-height) - var(--breadcrumb-height));
1593
+ margin-top: calc(var(--header-height) + var(--breadcrumb-height)); /* Account for both fixed elements */
1588
1594
  }
1589
1595
 
1590
- .sidebar {
1591
- width: 100%;
1592
- max-height: 250px;
1593
- border-right: none;
1594
- border-bottom: 1px solid var(--color-border-default);
1595
- }
1596
+ /* Sidebar positioning handled in earlier media query */
1596
1597
 
1597
1598
  .content {
1598
1599
  padding: var(--space-4);
@@ -1613,10 +1614,7 @@ tr:hover {
1613
1614
  top: 0;
1614
1615
  }
1615
1616
 
1616
- .breadcrumbs {
1617
- position: relative;
1618
- top: 0;
1619
- }
1617
+ /* Keep breadcrumbs fixed on mobile to prevent double spacing */
1620
1618
  }
1621
1619
 
1622
1620
  /* Navigation Sections */
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.19">Last updated: Jul 21, 2025, 05:36 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.19">Last updated: Jul 21, 2025, 05:36 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
  }
@@ -1585,14 +1590,10 @@ tr:hover {
1585
1590
  flex-direction: column;
1586
1591
  height: auto;
1587
1592
  min-height: calc(100vh - var(--header-height) - var(--breadcrumb-height));
1593
+ margin-top: calc(var(--header-height) + var(--breadcrumb-height)); /* Account for both fixed elements */
1588
1594
  }
1589
1595
 
1590
- .sidebar {
1591
- width: 100%;
1592
- max-height: 250px;
1593
- border-right: none;
1594
- border-bottom: 1px solid var(--color-border-default);
1595
- }
1596
+ /* Sidebar positioning handled in earlier media query */
1596
1597
 
1597
1598
  .content {
1598
1599
  padding: var(--space-4);
@@ -1613,10 +1614,7 @@ tr:hover {
1613
1614
  top: 0;
1614
1615
  }
1615
1616
 
1616
- .breadcrumbs {
1617
- position: relative;
1618
- top: 0;
1619
- }
1617
+ /* Keep breadcrumbs fixed on mobile to prevent double spacing */
1620
1618
  }
1621
1619
 
1622
1620
  /* Navigation Sections */
@@ -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.19">Last updated: Jul 21, 2025, 05:36 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.19">Last updated: Jul 21, 2025, 05:36 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.19">Last updated: Jul 21, 2025, 05:36 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.19",
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": {