lildocs 0.1.14 → 0.1.15

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/dist/cli.mjs CHANGED
@@ -1533,21 +1533,19 @@ function titleFromDir(dir) {
1533
1533
  return dir.replace(/[-_]+/g, " ").replace(/\S+/g, (word) => `${word[0]?.toLocaleUpperCase() ?? ""}${word.slice(1)}`);
1534
1534
  }
1535
1535
  function PageNav({ pageNavigation }) {
1536
- if (!pageNavigation?.previous && !pageNavigation?.next) return null;
1537
- return /* @__PURE__ */ jsxs("nav", {
1536
+ if (!pageNavigation?.next) return null;
1537
+ return /* @__PURE__ */ jsx("nav", {
1538
1538
  className: "pageNav",
1539
1539
  "aria-label": "Page navigation",
1540
- children: [pageNavigation.previous ? /* @__PURE__ */ jsxs("a", {
1541
- className: "pageNavLink pageNavPrevious",
1542
- rel: "prev",
1543
- href: pageNavigation.previous.href,
1544
- children: [/* @__PURE__ */ jsx("span", { children: "Previous" }), pageNavigation.previous.title]
1545
- }) : /* @__PURE__ */ jsx("span", {}), pageNavigation.next ? /* @__PURE__ */ jsxs("a", {
1546
- className: "pageNavLink pageNavNext",
1547
- rel: "next",
1548
- href: pageNavigation.next.href,
1549
- children: [/* @__PURE__ */ jsx("span", { children: "Next" }), pageNavigation.next.title]
1550
- }) : null]
1540
+ children: /* @__PURE__ */ jsxs("p", { children: [
1541
+ "Next:",
1542
+ " ",
1543
+ /* @__PURE__ */ jsx("a", {
1544
+ rel: "next",
1545
+ href: pageNavigation.next.href,
1546
+ children: pageNavigation.next.title
1547
+ })
1548
+ ] })
1551
1549
  });
1552
1550
  }
1553
1551
  function NavList({ items, currentRoute, pageRoute }) {
@@ -469,49 +469,13 @@ html.is-animating .transition-scale {
469
469
  }
470
470
 
471
471
  .pageNav {
472
- display: grid;
473
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
474
- gap: 16px;
475
472
  margin-top: 48px;
476
473
  padding-top: 24px;
477
474
  border-top: 1px solid var(--ld-color-border);
478
475
  }
479
476
 
480
- .pageNavLink {
481
- display: block;
482
- min-width: 0;
483
- padding: 12px 14px;
484
- border: 1px solid var(--ld-color-border);
485
- border-radius: 8px;
486
- color: var(--ld-color-link);
487
- line-height: 1.25;
488
- text-decoration: none;
489
- }
490
-
491
- .content .pageNavLink,
492
- .content .pageNavLink:hover {
493
- text-decoration: none;
494
- }
495
-
496
- .pageNavLink span {
497
- display: block;
498
- margin-bottom: 2px;
499
- color: var(--ld-color-muted-text);
500
- font-size: 0.84rem;
501
- }
502
-
503
- .pageNavNext {
504
- text-align: right;
505
- }
506
-
507
- .pageNavLink:hover {
508
- background: var(--ld-color-code-background);
509
- text-decoration: none;
510
- }
511
-
512
- .pageNavLink:focus-visible {
513
- outline: 2px solid var(--ld-color-link);
514
- outline-offset: 2px;
477
+ .pageNav p {
478
+ margin: 0;
515
479
  }
516
480
 
517
481
  .toc {
@@ -709,12 +673,4 @@ html.is-animating .transition-scale {
709
673
  .sidebar {
710
674
  padding-bottom: 24px;
711
675
  }
712
-
713
- .pageNav {
714
- grid-template-columns: 1fr;
715
- }
716
-
717
- .pageNavNext {
718
- text-align: left;
719
- }
720
676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lildocs",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
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": {
@@ -29,7 +29,7 @@
29
29
  "beautiful-mermaid": "^1.1.3",
30
30
  "cmd-ts": "^0.15.0",
31
31
  "culori": "^4.0.2",
32
- "exports-md": "^0.2.3",
32
+ "exports-md": "^0.2.5",
33
33
  "gray-matter": "^4.0.3",
34
34
  "marked": "^18.0.3",
35
35
  "marked-shiki": "^1.2.1",