Skip to content

Commit fe7d6e7

Browse files
committed
feat: update docs
1 parent c1eaca4 commit fe7d6e7

48 files changed

Lines changed: 129 additions & 806 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Painless Vue forms
1818
<img src="https://img.shields.io/npm/dm/vee-validate.svg?color=05bd6d&label=">
1919
</a>
2020

21-
<a href="https://vee-validate.logaretm.com/v4/" target="_blank">
21+
<a href="https://vee-validate.logaretm.com/v5/" target="_blank">
2222
<img src="https://img.shields.io/badge/-docs%20and%20demos-009f53">
2323
</a>
2424

@@ -117,7 +117,7 @@ const onSubmit = handleSubmit(values => {
117117
</template>
118118
```
119119

120-
You can do so much more than this, for more info [check the composition API documentation](https://vee-validate.logaretm.com/v4/guide/composition-api/getting-started/).
120+
You can do so much more than this, for more info [check the composition API documentation](https://vee-validate.logaretm.com/v5/guide/composition-api/getting-started/).
121121

122122
#### Declarative Components
123123

@@ -150,7 +150,7 @@ function onSubmit(values) {
150150
</template>
151151
```
152152

153-
The `Field` component renders an `input` of type `text` by default but you can [control that](https://vee-validate.logaretm.com/v4/api/field#rendering-fields)
153+
The `Field` component renders an `input` of type `text` by default but you can [control that](https://vee-validate.logaretm.com/v5/api/field#rendering-fields)
154154

155155
## 📚 Documentation
156156

docs/_redirects

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# redirects old component api paths to new one
2-
/guide/validation /v4/guide/components/validation
3-
/guide/handling-forms /v4/guide/components/handling-forms
4-
/guide/nested-objects-and-arrays /v4/guide/components/nested-objects-and-arrays
5-
/tutorials/best-practices /v4/guide/best-practices
2+
/guide/validation /v5/guide/components/validation
3+
/guide/handling-forms /v5/guide/components/handling-forms
4+
/guide/nested-objects-and-arrays /v5/guide/components/nested-objects-and-arrays
5+
/tutorials/best-practices /v5/guide/best-practices
66

7-
/v4/guide/composition/validation /v4/guide/composition/getting-started
7+
/v5/guide/composition/validation /v5/guide/composition/getting-started

docs/astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import partytown from '@astrojs/partytown';
1313
export default defineConfig({
1414
site: process.env.NODE_ENV === 'production' ? 'https://vee-validate.logaretm.com/' : 'http://localhost:4321/',
1515
trailingSlash: 'always',
16-
base: '/v4',
16+
base: '/v5',
1717
vite: {
1818
ssr: {
1919
noExternal: ['@vue/repl'],
@@ -23,7 +23,7 @@ export default defineConfig({
2323
vue(),
2424
sitemap(),
2525
mdx({
26-
remarkPlugins: [baseLink('/v4'), highlight, remarkGfm],
26+
remarkPlugins: [baseLink('/v5'), highlight, remarkGfm],
2727
}),
2828
svgSprite,
2929
partytown({

docs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
"@stackblitz/sdk": "^1.9.0",
1818
"@types/fs-extra": "^11.0.4",
1919
"@types/lodash-es": "^4.17.12",
20-
"@vee-validate/valibot": "workspace:*",
21-
"@vee-validate/yup": "workspace:*",
22-
"@vee-validate/zod": "workspace:*",
2320
"@vue/repl": "^3.0.0",
2421
"@vueuse/core": "^10.7.0",
2522
"astro": "^3.6.4",

docs/src/components/DocFlavor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p class="mt-4">Before you go on, you should choose which flavor of vee-validate you want to use.</p>
55

66
<div class="mt-8 grid grid-cols-1 lg:grid-cols-2 gap-x-8 gap-y-8 text-white">
7-
<a :href="`/v4/guide/components/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
7+
<a :href="`/v5/guide/components/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
88
<p class="text-xl font-semibold font-display">Components</p>
99
<p class="mt-8">Simple, high-level, dynamic template-based higher-order components.</p>
1010
<p class="mt-4">Great for simple UI components and native HTML elements with custom styling.</p>
@@ -25,7 +25,7 @@
2525
</svg>
2626
</a>
2727

28-
<a :href="`/v4/guide/composition-api/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
28+
<a :href="`/v5/guide/composition-api/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
2929
<p class="text-xl font-semibold font-display">Composition API</p>
3030
<p class="mt-8">Low level, intuitive composition API functions.</p>
3131
<p class="mt-4">Great for building complex UI form components and general purpose data validation.</p>

docs/src/components/Icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ const props = defineProps<{
99
name: string;
1010
}>();
1111
12-
const basePath = import.meta.env.DEV ? '' : '/v4/sprite.svg';
12+
const basePath = import.meta.env.DEV ? '' : '/v5/sprite.svg';
1313
</script>

docs/src/components/Repl.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const store = new ReplStore({
2929
store.setImportMap({
3030
imports: {
3131
'vee-validate': 'https://unpkg.com/vee-validate@latest/dist/vee-validate.mjs',
32-
'@vee-validate/zod': 'https://unpkg.com/@vee-validate/zod@latest/dist/vee-validate-zod.mjs',
33-
'@vee-validate/yup': 'https://unpkg.com/@vee-validate/yup@latest/dist/vee-validate-yup.mjs',
34-
'@vee-validate/valibot': 'https://unpkg.com/@vee-validate/valibot@latest/dist/vee-validate-valibot.mjs',
3532
'@vee-validate/i18n': 'https://unpkg.com/@vee-validate/i18n@latest/dist/vee-validate-i18n.esm.js',
3633
'@vee-validate/rules': 'https://unpkg.com/@vee-validate/rules@latest/dist/vee-validate-rules.esm.js',
3734
'property-expr': 'https://esm-repo.netlify.app/property-expr.esm.js',

docs/src/components/SiteHead.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { frontmatter } = Astro.props;
66
77
const title = frontmatter?.title || 'VeeValidate: Painless Vue.js forms';
88
const description = frontmatter?.description || 'Painless Vue.js forms';
9-
const path = frontmatter?.url || '/v4/';
9+
const path = frontmatter?.url || '/v5/';
1010
const image = generateSocialImage({
1111
title: title,
1212
tagline: description,
@@ -28,11 +28,11 @@ const links = generateLinks({
2828
<head>
2929
<title>{title}</title>
3030
<meta charset="utf-8" />
31-
<link rel="icon" type="image/x-icon" href="/v4/img/favicon.ico" />
31+
<link rel="icon" type="image/x-icon" href="/v5/img/favicon.ico" />
3232
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
3333
{metaTags.map(t => <meta content={t.content} name={t.name} property={t.property} />)}
3434
{links.map(t => <link href={t.href} rel={t.rel} />)}
35-
<script is:inline src="/v4/loadTheme.js"></script>
35+
<script is:inline src="/v5/loadTheme.js"></script>
3636
<script type="text/partytown" src="https://www.googletagmanager.com/gtag/js?id=G-T7VXTJ0MFH"></script>
3737
<script type="text/partytown">
3838
window.dataLayer = window.dataLayer || [];

docs/src/components/TheHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</svg>
2424

2525
<div class="flex items-center header__content px-6 lg:px-10" :class="{ 'lg:mt-8': displayWarning }">
26-
<a class="mr-auto flex items-center" href="/v4/">
26+
<a class="mr-auto flex items-center" href="/v5/">
2727
<Icon name="logo" class="h-8 w-8 lg:w-10 lg:h-10 logo" />
2828

2929
<span

docs/src/components/UiLibraries.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const libraries = [
1414
{
1515
name: 'Shadcn Vue',
1616
link: 'https://www.shadcn-vue.com/docs/components/form',
17-
logoLight: '/v4/img/shadcn.svg',
18-
logoDark: '/v4/img/shadcn.svg',
17+
logoLight: '/v5/img/shadcn.svg',
18+
logoDark: '/v5/img/shadcn.svg',
1919
},
2020
{
2121
name: 'Vuetify',

0 commit comments

Comments
 (0)