@knowcode/doc-builder 1.3.3 → 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 +8 -0
- package/assets/css/notion-style.css +32 -7
- package/assets/css/style.css +36 -1
- package/lib/core-builder.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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
|
+
|
|
8
16
|
## [1.3.3] - 2025-07-19
|
|
9
17
|
|
|
10
18
|
### Fixed
|
|
@@ -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 {
|
|
@@ -336,7 +335,33 @@ pre code {
|
|
|
336
335
|
.sidebar-header {
|
|
337
336
|
padding: var(--space-4);
|
|
338
337
|
border-bottom: 1px solid var(--color-border-default);
|
|
339
|
-
|
|
338
|
+
}
|
|
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;
|
|
340
365
|
}
|
|
341
366
|
|
|
342
367
|
.filter-box {
|
|
@@ -502,7 +527,11 @@ pre code {
|
|
|
502
527
|
.sidebar-header {
|
|
503
528
|
padding: var(--space-3);
|
|
504
529
|
border-bottom: 1px solid var(--color-border-default);
|
|
505
|
-
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* Already defined above, but ensure consistency */
|
|
533
|
+
.sidebar-breadcrumbs {
|
|
534
|
+
margin-bottom: var(--space-6);
|
|
506
535
|
}
|
|
507
536
|
|
|
508
537
|
.filter-box {
|
|
@@ -808,7 +837,6 @@ tr:hover {
|
|
|
808
837
|
border: 1px solid var(--color-border-default);
|
|
809
838
|
border-radius: var(--radius-lg);
|
|
810
839
|
padding: var(--space-6);
|
|
811
|
-
margin-bottom: var(--space-4);
|
|
812
840
|
box-shadow: var(--shadow-sm);
|
|
813
841
|
transition: all var(--duration-normal) var(--easing-out);
|
|
814
842
|
}
|
|
@@ -1417,7 +1445,6 @@ tr:hover {
|
|
|
1417
1445
|
font-size: var(--text-lg);
|
|
1418
1446
|
font-weight: var(--font-semibold);
|
|
1419
1447
|
color: var(--color-text-primary);
|
|
1420
|
-
margin-bottom: var(--space-4);
|
|
1421
1448
|
padding-bottom: var(--space-2);
|
|
1422
1449
|
border-bottom: 2px solid var(--color-divider);
|
|
1423
1450
|
}
|
|
@@ -1790,11 +1817,9 @@ tr:hover {
|
|
|
1790
1817
|
.auth-box p {
|
|
1791
1818
|
color: var(--color-text-secondary);
|
|
1792
1819
|
text-align: center;
|
|
1793
|
-
margin-bottom: var(--space-4);
|
|
1794
1820
|
}
|
|
1795
1821
|
|
|
1796
1822
|
.form-group {
|
|
1797
|
-
margin-bottom: var(--space-4);
|
|
1798
1823
|
}
|
|
1799
1824
|
|
|
1800
1825
|
.form-group label {
|
package/assets/css/style.css
CHANGED
|
@@ -863,7 +863,33 @@ em, i {
|
|
|
863
863
|
position: sticky;
|
|
864
864
|
top: 0;
|
|
865
865
|
z-index: 10;
|
|
866
|
-
|
|
866
|
+
}
|
|
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;
|
|
867
893
|
}
|
|
868
894
|
|
|
869
895
|
.filter-box {
|
|
@@ -953,6 +979,15 @@ em, i {
|
|
|
953
979
|
background: var(--bg-secondary);
|
|
954
980
|
}
|
|
955
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
|
+
|
|
956
991
|
[data-theme="dark"] .filter-input {
|
|
957
992
|
border-color: rgba(255, 255, 255, 0.1);
|
|
958
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>
|