@knowcode/doc-builder 1.3.2 → 1.3.4
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 +15 -0
- package/assets/css/notion-style.css +32 -5
- package/assets/css/style.css +36 -0
- package/lib/core-builder.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.3.4] - 2025-07-19
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Properly fixed spacing between breadcrumb and filter box in sidebar
|
|
12
|
+
- Increased sidebar-breadcrumbs margin-bottom to 24px for better separation
|
|
13
|
+
- Removed unnecessary margin from sidebar-header elements
|
|
14
|
+
- Applied consistent spacing across both style themes
|
|
15
|
+
|
|
16
|
+
## [1.3.3] - 2025-07-19
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Added spacing between breadcrumb and filter box in sidebar
|
|
20
|
+
- Added margin-bottom to sidebar-header for better visual separation
|
|
21
|
+
- Improved sidebar navigation layout with consistent spacing
|
|
22
|
+
|
|
8
23
|
## [1.3.2] - 2025-07-19
|
|
9
24
|
|
|
10
25
|
### Added
|
|
@@ -169,7 +169,6 @@ h2 {
|
|
|
169
169
|
h3 {
|
|
170
170
|
font-size: var(--text-xl);
|
|
171
171
|
margin-top: var(--space-8);
|
|
172
|
-
margin-bottom: var(--space-4);
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
h4 {
|
|
@@ -338,6 +337,33 @@ pre code {
|
|
|
338
337
|
border-bottom: 1px solid var(--color-border-default);
|
|
339
338
|
}
|
|
340
339
|
|
|
340
|
+
/* Sidebar Breadcrumbs */
|
|
341
|
+
.sidebar-breadcrumbs {
|
|
342
|
+
margin-bottom: var(--space-6);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.sidebar-home-link {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: var(--space-2);
|
|
349
|
+
padding: var(--space-2) var(--space-3);
|
|
350
|
+
color: var(--color-text-secondary);
|
|
351
|
+
text-decoration: none;
|
|
352
|
+
border-radius: var(--radius-base);
|
|
353
|
+
font-size: 0.875rem;
|
|
354
|
+
font-weight: 500;
|
|
355
|
+
transition: all 0.2s;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.sidebar-home-link:hover {
|
|
359
|
+
background: var(--color-bg-secondary);
|
|
360
|
+
color: var(--color-text-primary);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.sidebar-home-link i {
|
|
364
|
+
font-size: 1rem;
|
|
365
|
+
}
|
|
366
|
+
|
|
341
367
|
.filter-box {
|
|
342
368
|
position: relative;
|
|
343
369
|
}
|
|
@@ -503,6 +529,11 @@ pre code {
|
|
|
503
529
|
border-bottom: 1px solid var(--color-border-default);
|
|
504
530
|
}
|
|
505
531
|
|
|
532
|
+
/* Already defined above, but ensure consistency */
|
|
533
|
+
.sidebar-breadcrumbs {
|
|
534
|
+
margin-bottom: var(--space-6);
|
|
535
|
+
}
|
|
536
|
+
|
|
506
537
|
.filter-box {
|
|
507
538
|
position: relative;
|
|
508
539
|
display: flex;
|
|
@@ -806,7 +837,6 @@ tr:hover {
|
|
|
806
837
|
border: 1px solid var(--color-border-default);
|
|
807
838
|
border-radius: var(--radius-lg);
|
|
808
839
|
padding: var(--space-6);
|
|
809
|
-
margin-bottom: var(--space-4);
|
|
810
840
|
box-shadow: var(--shadow-sm);
|
|
811
841
|
transition: all var(--duration-normal) var(--easing-out);
|
|
812
842
|
}
|
|
@@ -1415,7 +1445,6 @@ tr:hover {
|
|
|
1415
1445
|
font-size: var(--text-lg);
|
|
1416
1446
|
font-weight: var(--font-semibold);
|
|
1417
1447
|
color: var(--color-text-primary);
|
|
1418
|
-
margin-bottom: var(--space-4);
|
|
1419
1448
|
padding-bottom: var(--space-2);
|
|
1420
1449
|
border-bottom: 2px solid var(--color-divider);
|
|
1421
1450
|
}
|
|
@@ -1788,11 +1817,9 @@ tr:hover {
|
|
|
1788
1817
|
.auth-box p {
|
|
1789
1818
|
color: var(--color-text-secondary);
|
|
1790
1819
|
text-align: center;
|
|
1791
|
-
margin-bottom: var(--space-4);
|
|
1792
1820
|
}
|
|
1793
1821
|
|
|
1794
1822
|
.form-group {
|
|
1795
|
-
margin-bottom: var(--space-4);
|
|
1796
1823
|
}
|
|
1797
1824
|
|
|
1798
1825
|
.form-group label {
|
package/assets/css/style.css
CHANGED
|
@@ -865,6 +865,33 @@ em, i {
|
|
|
865
865
|
z-index: 10;
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
+
/* Sidebar Breadcrumbs */
|
|
869
|
+
.sidebar-breadcrumbs {
|
|
870
|
+
margin-bottom: var(--space-xl);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.sidebar-home-link {
|
|
874
|
+
display: inline-flex;
|
|
875
|
+
align-items: center;
|
|
876
|
+
gap: 0.5rem;
|
|
877
|
+
padding: 0.5rem 0.75rem;
|
|
878
|
+
color: var(--text-secondary);
|
|
879
|
+
text-decoration: none;
|
|
880
|
+
border-radius: 0.375rem;
|
|
881
|
+
font-size: 0.875rem;
|
|
882
|
+
font-weight: 500;
|
|
883
|
+
transition: all 0.2s;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.sidebar-home-link:hover {
|
|
887
|
+
background: var(--bg-secondary);
|
|
888
|
+
color: var(--text-primary);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.sidebar-home-link i {
|
|
892
|
+
font-size: 1rem;
|
|
893
|
+
}
|
|
894
|
+
|
|
868
895
|
.filter-box {
|
|
869
896
|
position: relative;
|
|
870
897
|
width: 100%;
|
|
@@ -952,6 +979,15 @@ em, i {
|
|
|
952
979
|
background: var(--bg-secondary);
|
|
953
980
|
}
|
|
954
981
|
|
|
982
|
+
[data-theme="dark"] .sidebar-home-link {
|
|
983
|
+
color: var(--text-secondary);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
[data-theme="dark"] .sidebar-home-link:hover {
|
|
987
|
+
background: var(--bg-tertiary);
|
|
988
|
+
color: var(--text-primary);
|
|
989
|
+
}
|
|
990
|
+
|
|
955
991
|
[data-theme="dark"] .filter-input {
|
|
956
992
|
border-color: rgba(255, 255, 255, 0.1);
|
|
957
993
|
background: var(--bg-tertiary);
|
package/lib/core-builder.js
CHANGED
|
@@ -144,6 +144,12 @@ function generateHTML(title, content, navigation, currentPath = '', config = {})
|
|
|
144
144
|
<!-- Sidebar -->
|
|
145
145
|
<aside class="sidebar">
|
|
146
146
|
<div class="sidebar-header">
|
|
147
|
+
<div class="sidebar-breadcrumbs">
|
|
148
|
+
<a href="/index.html" class="sidebar-home-link">
|
|
149
|
+
<i class="fas fa-home"></i>
|
|
150
|
+
<span>Home</span>
|
|
151
|
+
</a>
|
|
152
|
+
</div>
|
|
147
153
|
<div class="filter-box">
|
|
148
154
|
<input type="text" placeholder="Filter items..." class="filter-input" id="nav-filter">
|
|
149
155
|
<i class="fas fa-search filter-icon"></i>
|