seemore 1.3.1 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seemore",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Let AI write the Markdown. Let seemore show it better — zero config documentation framework.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -65,7 +65,7 @@ export function BackToTop() {
65
65
  className="seemore-back-to-top"
66
66
  onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}
67
67
  >
68
- <ArrowUp aria-hidden="true" />
68
+ <ArrowUp aria-hidden="true" className="size-3.5" />
69
69
  <span>Back to top</span>
70
70
  </button>
71
71
  );
@@ -1,5 +1,6 @@
1
- import { Component, Suspense, type ReactNode } from 'react';
1
+ import { Component, Suspense, useEffect, type ReactNode } from 'react';
2
2
  import { useLocation, type RouteObject } from 'react-router';
3
+ import { config } from 'virtual:seemore/config';
3
4
  import { decodePath } from '../shared/base.js';
4
5
  import type { RouteEntry } from '../shared/types.js';
5
6
  import { DocPage, DocsLayout, NotFound, Overview, PageError } from './layout/DocsLayout.js';
@@ -15,6 +16,10 @@ export function useRouteUrl(): string {
15
16
  function Page() {
16
17
  const url = useRouteUrl();
17
18
  const entry = useRouteEntry(url);
19
+ useEffect(() => {
20
+ document.title =
21
+ entry === undefined || url === '/' ? config.title : `${entry.title} · ${config.title}`;
22
+ }, [url, entry?.title]);
18
23
  // Keyed by address, so navigating away from a page that threw starts clean rather than
19
24
  // carrying its error to every page after it. Reset by content version, so in dev an edit
20
25
  // that fixes the file gets to render — a boundary in its error state has unmounted the
@@ -241,7 +241,7 @@
241
241
  }
242
242
 
243
243
  .seemore-back-to-top {
244
- @apply fixed bottom-6 end-6 inline-flex items-center gap-2 rounded-full border border-fd-border bg-fd-background px-4 py-2 text-sm shadow;
244
+ @apply fixed bottom-6 end-6 inline-flex items-center gap-1.5 rounded-full border border-fd-border/60 bg-fd-background/60 px-3 py-1.5 text-xs text-fd-muted-foreground shadow-sm backdrop-blur-sm transition-colors hover:border-fd-border hover:bg-fd-background hover:text-fd-foreground;
245
245
  }
246
246
 
247
247
  .seemore-selection-copy {