Skip to content

Commit f0ff459

Browse files
armgitaarashokgelalEineeshGelal
authored
Dev (#141)
* docs for vibe cli proxy * docs for ai powered icon suggestion * docs for branch explorer * updated docs for disabling shiftcuts feature * updated docs for copy to clipboard standards * updated docs for gguf and safetensors support * docs for moving a child project to root * information about the vibe CLI proxy service * docs for enabling and disabling spellcheck feature * Refactor Vibe CLI Proxy documentation Updated section headers and improved clarity in instructions. * edits * edits * 2.4.0 updates * edit shadow persona * patch preview images --------- Co-authored-by: Ashok Gelal <ashokgelal@gmail.com> Co-authored-by: Eineesh Gelal <eineeshgelal@gmail.com>
1 parent fd2ccf6 commit f0ff459

2 files changed

Lines changed: 85 additions & 0 deletions

File tree

app.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default defineAppConfig({
44
name: "Msty Studio Docs",
55
description:
66
"Get started with guides and resources to maximize your conversational AI experience with Msty Studio.",
7+
ogImage: "https://docs.msty.studio/images/quick-start.png",
78
},
89
theme: {
910
customizable: false,

pages/[...slug].vue

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<template>
2+
<div
3+
v-if="!page?.body"
4+
class="flex h-full items-center justify-center"
5+
>
6+
<h3 class="scroll-m-20 border-r px-4 py-3 text-2xl font-semibold">
7+
404
8+
</h3>
9+
<span class="scroll-m-20 px-4">
10+
This page could not be found.
11+
</span>
12+
</div>
13+
14+
<template v-else>
15+
<div
16+
v-if="page?.fullpage"
17+
class="px-4 py-6 md:px-8"
18+
:class="[config.main.padded && 'container']"
19+
>
20+
<ContentRenderer
21+
:key="page._id"
22+
:value="page"
23+
:data="appConfig.shadcnDocs.data"
24+
/>
25+
</div>
26+
<main
27+
v-else
28+
class="relative py-6"
29+
:class="[config.toc.enable && (page.toc ?? true) && 'lg:grid lg:grid-cols-[1fr_220px] lg:gap-14 lg:py-8']"
30+
>
31+
<div class="mx-auto w-full min-w-0">
32+
<LayoutBreadcrumb v-if="page?.body && config.main.breadCrumb && (page.breadcrumb ?? true)" class="mb-4" />
33+
<LayoutTitle
34+
v-if="config.main.showTitle"
35+
:title="page?.title"
36+
:description="page?.description"
37+
:badges="page?.badges"
38+
:authors="page?.authors"
39+
/>
40+
41+
<Alert
42+
v-if="page?.body?.children?.length === 0"
43+
title="Empty Page"
44+
icon="lucide:circle-x"
45+
>
46+
Start writing in <ProseCodeInline>content/{{ page?._file }}</ProseCodeInline> to see this page taking shape.
47+
</Alert>
48+
49+
<ContentRenderer
50+
v-else
51+
:key="page._id"
52+
:value="page"
53+
:data="appConfig.shadcnDocs.data"
54+
class="docs-content"
55+
/>
56+
57+
<LayoutDocsFooter />
58+
</div>
59+
<div v-if="config.toc.enable && (page.toc ?? true)" class="hidden text-sm lg:block">
60+
<div class="sticky top-[90px] h-[calc(100vh-3.5rem)] overflow-hidden">
61+
<LayoutToc :is-small="false" />
62+
</div>
63+
</div>
64+
</main>
65+
</template>
66+
</template>
67+
68+
<script setup lang="ts">
69+
const { page } = useContent();
70+
const config = useConfig();
71+
const appConfig = useAppConfig();
72+
73+
const fallbackSocialImage = "https://docs.msty.studio/images/quick-start.png";
74+
75+
useSeoMeta({
76+
title: `${page.value?.title ?? "404"} - ${config.value.site.name}`,
77+
ogTitle: page.value?.title,
78+
description: page.value?.description,
79+
ogDescription: page.value?.description,
80+
ogImage: fallbackSocialImage,
81+
twitterCard: "summary_large_image",
82+
twitterImage: fallbackSocialImage,
83+
});
84+
</script>

0 commit comments

Comments
 (0)