Skip to content

Commit dec88bb

Browse files
committed
feat: disable zero docs
1 parent 5d52d87 commit dec88bb

File tree

4 files changed

+22
-275
lines changed

4 files changed

+22
-275
lines changed

.vitepress/config/sidebar.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,28 @@ const sidebar = [
136136
{ text: 'Introduction', link: '/docs/frontend/' },
137137
{ text: 'Bare UI', link: '/docs/frontend/bareui' },
138138
{ text: 'Leaf Blade', link: '/docs/frontend/blade' },
139-
{ text: 'Leaf Zero', link: '/docs/frontend/zero' },
140139
{ text: 'Other Engines', link: '/docs/frontend/third-party' },
141140
{ text: 'Vite JS', link: '/docs/frontend/vite' },
142141
{ text: 'Tailwind CSS', link: '/docs/frontend/tailwind' },
143142
{ text: 'Inertia JS', link: '/docs/frontend/inertia' },
144143
// { text: 'Leaf UI', link: '/docs/frontend/leaf-ui' },
144+
// {
145+
// text: 'Leaf Zero',
146+
// collapsible: true,
147+
// collapsed: true,
148+
// items: [
149+
// { text: 'Introduction', link: '/docs/frontend/zero/' },
150+
// { text: 'Layouts', link: '/docs/frontend/zero/layouts' },
151+
// { text: 'Forms', link: '/docs/frontend/zero/forms' },
152+
// { text: 'Modals', link: '/docs/frontend/zero/modals' },
153+
// { text: 'Alerts', link: '/docs/frontend/zero/alerts' },
154+
// { text: 'Loading', link: '/docs/frontend/zero/loading' },
155+
// { text: 'Icons', link: '/docs/frontend/zero/icons' },
156+
// { text: 'Forms', link: '/docs/frontend/zero/forms' },
157+
// { text: 'Merketing Sections', link: '/docs/frontend/zero/marketing' },
158+
// { text: 'Dashboard Sections', link: '/docs/frontend/zero/dashboard' },
159+
// ],
160+
// },
145161
],
146162
},
147163
{

.vitepress/theme/components/shared/PreviewCode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const repositionTabMarker = (el) => {
1515
</script>
1616

1717
<template>
18-
<div class="relative z-30 w-full mb-5 rounded-lg">
18+
<div class="relative z-10 w-full mb-5 rounded-lg">
1919
<div class="flex items-center justify-between mb-3">
20-
<h4 class="!m-0 !p-0">{{ props.title }}</h4>
20+
<h3 class="!m-0 !p-0">{{ props.title }}</h3>
2121
<div
2222
class="relative inline-grid items-center justify-center w-auto h-10 grid-cols-2 p-1 bg-[var(--vp-c-bg-alt)] rounded-xl select-none">
2323
<button type="button" @click="repositionTabMarker($event.target); tab = 'preview';"

src/docs/frontend/blade.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Blade views are a pretty sweet mixture of HTML, PHP, and clean syntax. You can c
9090

9191
This should look pretty familiar if you know HTML (of course you do). The only difference is the <span v-pre>`{{ $name }}`</span> part. This is Blade's way of creating a variable in your view. When you render this view, Blade will allow you pass in a variable called `$name` and it will be displayed in place of <span v-pre>`{{ $name }}`</span>. Let's see how you can render this view.
9292

93-
<section id="leaf-zero" class="rounded-2xl shadow-md outline outline-gray-100 dark:outline-gray-800 p-4 md:p-10 bg-[var(--vp-c-bg-alt)]">
93+
<!-- <section id="leaf-zero" class="rounded-2xl shadow-md outline outline-gray-100 dark:outline-gray-800 p-4 md:p-10 bg-[var(--vp-c-bg-alt)]">
9494
<p
9595
class="mt-4 text-3xl sm:text-4xl text-slate-900 font-extrabold tracking-tight dark:text-slate-50"
9696
>
@@ -99,7 +99,7 @@ This should look pretty familiar if you know HTML (of course you do). The only d
9999
<p class="mt-4 max-w-3xl space-y-6">
100100
Zero is a collection of free pre-built components, page sections, and templates powered by Blade, Tailwind and Alpine JS to help you build your UIs faster.
101101
</p>
102-
<Button as="a" href="/docs/frontend/zero" class="!text-white bg-red-500 hover:bg-red-600">View Leaf Zero</Button>
102+
<Button as="a" href="/docs/frontend/zero/" class="!text-white bg-red-500 hover:bg-red-600">View Leaf Zero</Button>
103103
<div class="relative pt-10 xl:pt-0 mt-10">
104104
<div
105105
class="hidden dark:block absolute top-0 inset-x-0 h-[37.5rem] bg-gradient-to-b from-[#0c1120] xl:top-18"
@@ -204,7 +204,7 @@ This should look pretty familiar if you know HTML (of course you do). The only d
204204
</div>
205205
</div>
206206
</div>
207-
</section>
207+
</section> -->
208208

209209
## Rendering Blade Views
210210

0 commit comments

Comments
 (0)