lildocs 0.1.20 → 0.1.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.
@@ -277,8 +277,13 @@ function NavList({
277
277
  }) @{
278
278
  <ul class="navList">
279
279
  @for (const item of items; key item.route) {
280
+ const isReferenceGroup = item.route === "reference/index.html";
280
281
  <li class={item.children.length > 0 ? "navGroup" : undefined}>
281
- @if (item.children.length > 0 && item.hasPage) {
282
+ @if (isReferenceGroup) {
283
+ <span class="navFolder">
284
+ {item.title as string}
285
+ </span>
286
+ } @else if (item.children.length > 0 && item.hasPage) {
282
287
  <details
283
288
  class="navDisclosure"
284
289
  open={isActiveBranch(item, currentRoute)}
@@ -304,7 +309,7 @@ function NavList({
304
309
  {item.title as string}
305
310
  </a>
306
311
  }
307
- @if (item.children.length > 0 && !item.hasPage) {
312
+ @if (item.children.length > 0 && !item.hasPage && !isReferenceGroup) {
308
313
  <NavList
309
314
  items={item.children}
310
315
  currentRoute={currentRoute}
@@ -193,7 +193,8 @@ html.is-animating .transition-scale {
193
193
  top: 0;
194
194
  align-self: start;
195
195
  max-height: 100vh;
196
- overflow: auto;
196
+ overflow-x: hidden;
197
+ overflow-y: auto;
197
198
  padding-block: 70px 24px;
198
199
  }
199
200
 
@@ -850,8 +851,12 @@ html.mermaidFullscreenOpen {
850
851
  }
851
852
 
852
853
  .toc a {
854
+ display: block;
855
+ overflow: hidden;
853
856
  color: var(--ld-color-muted-text);
854
857
  text-decoration: none;
858
+ text-overflow: ellipsis;
859
+ white-space: nowrap;
855
860
  }
856
861
 
857
862
  .tocDepth3 {
@@ -1042,6 +1047,10 @@ html.mermaidFullscreenOpen {
1042
1047
  text-decoration: none;
1043
1048
  }
1044
1049
 
1050
+ .tocRepoLink:first-child {
1051
+ border-top: 0;
1052
+ }
1053
+
1045
1054
  .tocRepoLink:hover,
1046
1055
  .tocRepoLink:focus-visible {
1047
1056
  color: var(--ld-color-link);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lildocs",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "A lightweight CLI that turns Markdown docs into a static searchable documentation site.",
5
5
  "homepage": "https://aleclarson.github.io/lildocs/",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "cmd-ts": "^0.15.0",
29
29
  "culori": "^4.0.2",
30
30
  "entities": "^8.0.0",
31
- "exports-md": "^0.2.5",
31
+ "exports-md": "^0.2.7",
32
32
  "gray-matter": "^4.0.3",
33
33
  "marked": "^18.0.3",
34
34
  "marked-shiki": "^1.2.1",