@baybreezy/docd 0.1.6 → 0.1.8

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.
@@ -282,6 +282,16 @@ html.light {
282
282
  color-scheme: light;
283
283
  }
284
284
 
285
+ /* Chromium/Brave on Windows renders the native <select> dropdown popup as an
286
+ OS widget outside the DOM. color-scheme must be set directly on the element
287
+ (not just inherited from html) for the popup to adopt dark styling. */
288
+ .dark select {
289
+ color-scheme: dark;
290
+ }
291
+ .light select {
292
+ color-scheme: light;
293
+ }
294
+
285
295
  h1 > a,
286
296
  h2 > a,
287
297
  h3 > a,
@@ -25,6 +25,14 @@
25
25
  </p>
26
26
 
27
27
  <div v-if="logoSvg" class="absolute bottom-7 left-7 size-10" v-html="logoSvg" />
28
+ <img
29
+ v-else-if="logoImgUrl"
30
+ class="absolute bottom-7 left-7"
31
+ :src="logoImgUrl"
32
+ width="40"
33
+ height="40"
34
+ style="object-fit: contain"
35
+ />
28
36
  </div>
29
37
  </div>
30
38
  </template>
@@ -38,8 +46,17 @@
38
46
 
39
47
  const { darkLogo, lightLogo } = useDocd();
40
48
  const logoPath = darkLogo.value || lightLogo.value;
49
+ const isSvg = logoPath?.toLowerCase().endsWith(".svg") ?? false;
41
50
 
42
- const logoSvg = await fetchLogoSvg(logoPath);
51
+ const logoSvg = isSvg ? await fetchLogoSvg(logoPath) : "";
52
+ const logoImgUrl = !isSvg ? resolveLogoUrl(logoPath) : "";
53
+
54
+ function resolveLogoUrl(path?: string): string {
55
+ if (!path) return "";
56
+ if (path.startsWith("http")) return path;
57
+ const { url: siteUrl } = useSiteConfig();
58
+ return `${siteUrl}${path}`;
59
+ }
43
60
 
44
61
  function resizeSvg(svg: string, size: number): string {
45
62
  const s = String(size);
@@ -15,6 +15,14 @@
15
15
 
16
16
  <div class="flex flex-col items-center text-center">
17
17
  <div v-if="logoSvg" v-html="logoSvg" class="mb-5" />
18
+ <img
19
+ v-else-if="logoImgUrl"
20
+ class="mb-5"
21
+ :src="logoImgUrl"
22
+ width="48"
23
+ height="48"
24
+ style="object-fit: contain"
25
+ />
18
26
 
19
27
  <h1 v-if="title" class="mb-4 text-5xl leading-none font-bold tracking-tighter">
20
28
  {{ title }}
@@ -37,8 +45,17 @@
37
45
 
38
46
  const { darkLogo, lightLogo } = useDocd();
39
47
  const logoPath = darkLogo.value || lightLogo.value;
48
+ const isSvg = logoPath?.toLowerCase().endsWith(".svg") ?? false;
49
+
50
+ const logoSvg = isSvg ? await fetchLogoSvg(logoPath) : "";
51
+ const logoImgUrl = !isSvg ? resolveLogoUrl(logoPath) : "";
40
52
 
41
- const logoSvg = await fetchLogoSvg(logoPath);
53
+ function resolveLogoUrl(path?: string): string {
54
+ if (!path) return "";
55
+ if (path.startsWith("http")) return path;
56
+ const { url: siteUrl } = useSiteConfig();
57
+ return `${siteUrl}${path}`;
58
+ }
42
59
 
43
60
  function resizeSvg(svg: string, size: number): string {
44
61
  const s = String(size);
@@ -39,7 +39,7 @@
39
39
  >Pick a style and color for your components.</UiDrawerDescription
40
40
  >
41
41
  </UiDrawerHeader>
42
- <DocsThemeCustomizerCore />
42
+ <DocsThemeCustomizerCore class="overflow-y-auto px-2" />
43
43
  </UiDrawerContent>
44
44
  </UiDrawer>
45
45
  </ClientOnly>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baybreezy/docd",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "A Nuxt layer for building documentation sites with UI Thing.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,58 +30,58 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@baybreezy/file-extension-icon": "^0.0.4",
34
- "@iconify-json/lucide": "^1.2.105",
35
- "@iconify-json/material-icon-theme": "^1.2.62",
36
- "@iconify-json/simple-icons": "^1.2.80",
37
- "@iconify/utils": "^3.1.1",
33
+ "@baybreezy/file-extension-icon": "^0.0.5",
34
+ "@iconify-json/lucide": "^1.2.111",
35
+ "@iconify-json/material-icon-theme": "^1.2.67",
36
+ "@iconify-json/simple-icons": "^1.2.86",
37
+ "@iconify/utils": "^3.1.3",
38
38
  "@morev/vue-transitions": "^3.0.5",
39
- "@nuxt/content": "3.13.0",
39
+ "@nuxt/content": "3.14.0",
40
40
  "@nuxt/fonts": "^0.14.0",
41
- "@nuxt/icon": "^2.2.1",
41
+ "@nuxt/icon": "^2.2.3",
42
42
  "@nuxt/image": "2.0.0",
43
- "@nuxt/kit": "^4.4.4",
44
- "@nuxtjs/color-mode": "^4.0.0",
45
- "@nuxtjs/mcp-toolkit": "^0.14.0",
46
- "@nuxtjs/mdc": "^0.21.1",
47
- "@nuxtjs/robots": "^6.0.8",
43
+ "@nuxt/kit": "^4.4.8",
44
+ "@nuxtjs/color-mode": "^4.0.1",
45
+ "@nuxtjs/mcp-toolkit": "^0.17.2",
46
+ "@nuxtjs/mdc": "^0.22.0",
47
+ "@nuxtjs/robots": "^6.0.9",
48
48
  "@tailwindcss/forms": "^0.5.11",
49
- "@tailwindcss/typography": "^0.5.19",
50
- "@tailwindcss/vite": "^4.2.4",
51
- "@takumi-rs/core": "^1.1.2",
49
+ "@tailwindcss/typography": "^0.5.20",
50
+ "@tailwindcss/vite": "^4.3.0",
51
+ "@takumi-rs/core": "^1.7.0",
52
52
  "@vueuse/core": "^14.3.0",
53
53
  "@vueuse/nuxt": "^14.3.0",
54
- "better-sqlite3": "^12.9.0",
54
+ "better-sqlite3": "^12.10.0",
55
55
  "defu": "^6.1.7",
56
56
  "git-url-parse": "^16.1.0",
57
57
  "lodash-es": "^4.18.1",
58
- "mermaid": "^11.14.0",
59
- "motion-v": "^2.2.1",
58
+ "mermaid": "^11.15.0",
59
+ "motion-v": "^2.3.0",
60
60
  "nuxt-component-meta": "^0.17.2",
61
61
  "nuxt-gtag": "4.1.0",
62
62
  "nuxt-llms": "^0.2.0",
63
- "nuxt-og-image": "^6.4.9",
63
+ "nuxt-og-image": "^6.5.3",
64
64
  "pkg-types": "^2.3.1",
65
- "reka-ui": "^2.9.6",
66
- "shiki": "^4.0.2",
67
- "tailwind-merge": "^3.5.0",
65
+ "reka-ui": "^2.9.9",
66
+ "shiki": "^4.2.0",
67
+ "tailwind-merge": "^3.6.0",
68
68
  "tailwind-variants": "^3.2.2",
69
- "tailwindcss": "^4.2.4",
69
+ "tailwindcss": "^4.3.0",
70
70
  "tw-animate-css": "^1.4.0",
71
71
  "ufo": "^1.6.4",
72
72
  "vaul-vue": "^0.4.1",
73
73
  "vue-sonner": "^2.0.9",
74
- "yaml": "^2.8.3",
75
- "zod": "^4.4.1"
74
+ "yaml": "^2.9.0",
75
+ "zod": "^4.4.3"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/lodash-es": "^4.17.12",
79
- "nuxt": "^4.4.4",
79
+ "nuxt": "^4.4.8",
80
80
  "typescript": "^6.0.3",
81
81
  "vue": "latest",
82
- "vue-router": "^5.0.6"
82
+ "vue-router": "^5.1.0"
83
83
  },
84
- "packageManager": "bun@1.3.13",
84
+ "packageManager": "bun@1.3.14",
85
85
  "trustedDependencies": [
86
86
  "@morev/vue-transitions",
87
87
  "@parcel/watcher",