@baybreezy/docd 0.1.5 → 0.1.7
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.
|
@@ -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
|
-
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baybreezy/docd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A Nuxt layer for building documentation sites with UI Thing.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@nuxt/image": "2.0.0",
|
|
43
43
|
"@nuxt/kit": "^4.4.4",
|
|
44
44
|
"@nuxtjs/color-mode": "^4.0.0",
|
|
45
|
-
"@nuxtjs/mcp-toolkit": "^0.
|
|
45
|
+
"@nuxtjs/mcp-toolkit": "^0.16.0",
|
|
46
46
|
"@nuxtjs/mdc": "^0.21.1",
|
|
47
47
|
"@nuxtjs/robots": "^6.0.8",
|
|
48
48
|
"@tailwindcss/forms": "^0.5.11",
|
|
@@ -60,7 +60,7 @@
|
|
|
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.
|
|
63
|
+
"nuxt-og-image": "^6.4.11",
|
|
64
64
|
"pkg-types": "^2.3.1",
|
|
65
65
|
"reka-ui": "^2.9.6",
|
|
66
66
|
"shiki": "^4.0.2",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"ufo": "^1.6.4",
|
|
72
72
|
"vaul-vue": "^0.4.1",
|
|
73
73
|
"vue-sonner": "^2.0.9",
|
|
74
|
-
"yaml": "^2.8.
|
|
75
|
-
"zod": "^4.4.
|
|
74
|
+
"yaml": "^2.8.4",
|
|
75
|
+
"zod": "^4.4.3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/lodash-es": "^4.17.12",
|