Skip to content

Commit 5dc8711

Browse files
authored
chore(docs): update vitepress to latest (#1468)
* chore(docs): update vitepress to latest * chore(docs): cleanup styles
1 parent 78f2635 commit 5dc8711

File tree

9 files changed

+330
-147
lines changed

9 files changed

+330
-147
lines changed

docs/components/home/Acknowledgement.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Heart from '~icons/mdi/heart'
33
</script>
44

55
<template>
6-
<div id="acknowledgement">
7-
<div class="border-t-1 border-secondary pt-6">
6+
<section id="acknowledgement">
7+
<div class="border-t-1 border-secondary py-6">
88
<div class="max-w-3/4 md:max-w-4xl mx-auto py-4 md:py-12 lg:py-12 text-center">
99
<h1 class="md:(!mb-8) flex justify-center items-center gap-2"><Heart class="text-red-500 min-w-8" /> Acknowledgement</h1>
1010

@@ -33,5 +33,5 @@ import Heart from '~icons/mdi/heart'
3333
</p>
3434
</div>
3535
</div>
36-
</div>
36+
</section>
3737
</template>

docs/components/home/Banner.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Promise.all([
3535
</script>
3636

3737
<template>
38-
<div class="w-full dark:(border-white) border-black border-y-1 min-h-44">
38+
<section id="banner" class="w-full dark:(border-white) border-black border-y-1 min-h-44">
3939
<div class="max-w-full md:max-w-11/12 m-auto py-4 md:py-12 <md:(dark:border-t-1 border-white)">
4040
<div class="grid md:grid-cols-3 gap-3 text-center <md:divide-y md:divide-x dark:divide-white divide-black">
4141
<div class="grid grid-rows-auto gap-2 py-4 md:py-0">
@@ -56,5 +56,5 @@ Promise.all([
5656
</div>
5757
</div>
5858
</div>
59-
</div>
59+
</section>
6060
</template>

docs/components/home/Features.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ onBeforeUnmount(stop)
2525
</script>
2626

2727
<template>
28-
<div ref="el" class="w-full">
28+
<section id="features" ref="el" class="w-full">
2929
<div
3030
class="flex flex-col divide-y divide-secondary md:divide-y-0 gap-12 md:gap-24 lg:gap-36 max-w-5/6 2xl:max-w-7xl m-auto py-12 md:py-24 text-center md:text-left"
3131
>
@@ -45,5 +45,5 @@ onBeforeUnmount(stop)
4545
<Additional @pane="onLoad" />
4646
</div>
4747
</div>
48-
</div>
48+
</section>
4949
</template>

docs/components/home/Home.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ onMounted(() => {
1717
</script>
1818

1919
<template>
20-
<div class="relative min-h-250 h-[calc(100vh-var(--vp-nav-height))] lg:min-h-100 lg:h-[calc(100vh-var(--vp-nav-height)-176px)]">
20+
<section
21+
id="hero"
22+
class="relative min-h-250 h-[calc(100vh-var(--vp-nav-height))] lg:min-h-100 lg:h-[calc(100vh-var(--vp-nav-height)-176px)]"
23+
>
2124
<Intro />
22-
</div>
25+
</section>
2326
</template>
2427

2528
<style lang="scss">

docs/components/home/Showcase.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<script lang="ts" setup></script>
22

33
<template>
4-
<div
4+
<section
5+
id="showcase"
56
class="border-t-1 border-secondary w-full text-white bg-gradient-to-br from-secondary-500 to-secondary-100 dark:(!bg-none)"
67
>
78
<div class="max-w-5/6 2xl:max-w-7xl mx-auto py-12 md:py-16">
@@ -52,5 +53,5 @@
5253
</div>
5354
</div>
5455
</div>
55-
</div>
56+
</section>
5657
</template>

docs/components/home/flows/Intro.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function scrollTo() {
200200
<div class="font-mono flex flex-col gap-4 p-4 items-center text-center">
201201
<h1 class="text-2xl lg:text-4xl !my-0 !pt-0 font-bold">Vue Flow</h1>
202202

203-
<h2 class="text-lg lg:text-xl font-normal !border-0">
203+
<h2 class="!text-lg !lg:text-xl !tracking-normal !font-normal !p-0 !m-0 !border-0 !mb-4">
204204
The customizable Vue 3 component bringing interactivity to flowcharts and graphs.
205205
</h2>
206206
</div>
@@ -292,8 +292,9 @@ function scrollTo() {
292292
transition-colors
293293
ease-in-out
294294
rounded-lg
295-
text-white
296-
font-semibold
295+
!text-white
296+
!font-semibold
297+
!no-underline
297298
text-lg;
298299
}
299300
</style>

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"unplugin-icons": "^0.19.0",
4141
"unplugin-vue-components": "^0.27.0",
4242
"vite-plugin-windicss": "^1.9.3",
43-
"vitepress": "1.0.0-rc.40",
43+
"vitepress": "1.2.3",
4444
"windicss": "^3.5.6"
4545
}
4646
}

docs/src/.vitepress/theme/style.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@
149149
}
150150

151151
.VPHome {
152-
padding-bottom: 0 !important;
152+
@apply !mb-0;
153+
}
154+
155+
.vp-doc.container {
156+
@apply !p-0 !w-full !max-w-full;
153157
}
154158

155159
.VPFooter {
@@ -186,7 +190,7 @@ ul li {
186190
}
187191

188192
.docs-button {
189-
@apply mt-4 z-1 shadow-lg transition-colors duration-200 text-white font-semibold text-lg px-4 py-3 rounded-lg bg-accent dark:shadow-white/10;
193+
@apply mt-4 z-1 shadow-lg transition-colors duration-200 !text-white !font-semibold !no-underline text-lg px-4 py-3 rounded-lg bg-accent dark:shadow-white/10;
190194
}
191195

192196
.examples-button {

0 commit comments

Comments
 (0)