Skip to content

Commit 0a3399e

Browse files
author
Daniel Requejo
committed
🗄 Docs started & API reference structure done
1 parent 3f6e8df commit 0a3399e

17 files changed

+44
-8
lines changed

docs/.vitepress/config.cts

+21-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export default defineConfig({
55
description: 'Discover the easy way of handling your vue forms',
66
themeConfig: {
77
logo: '/favicon.svg',
8+
editLink: {
9+
pattern: 'https://github.com/dbssman/vue-form-handler/edit/master/docs/:path',
10+
text: 'Edit this page on GitHub',
11+
},
812
nav: [
913
{ text: 'Home', link: '/' },
1014
{ text: 'Get started', link: '/get-started' },
@@ -37,7 +41,23 @@ export default defineConfig({
3741
},
3842
{
3943
text: 'API Reference', items: [
40-
{ text: 'useFormHandler()', link: '/api/use-form-handler' },
44+
{
45+
text: 'useFormHandler', link: '/api/use-form-handler/index', items: [
46+
{ text: 'clearError', link: '/api/use-form-handler/clear-error' },
47+
{ text: 'clearField', link: '/api/use-form-handler/clear-field' },
48+
{ text: 'formState', link: '/api/use-form-handler/form-state' },
49+
{ text: 'handleSubmit', link: '/api/use-form-handler/handle-submit' },
50+
{ text: 'modifiedValues', link: '/api/use-form-handler/modified-values' },
51+
{ text: 'register', link: '/api/use-form-handler/register' },
52+
{ text: 'resetField', link: '/api/use-form-handler/reset-field' },
53+
{ text: 'resetForm', link: '/api/use-form-handler/reset-form' },
54+
{ text: 'setError', link: '/api/use-form-handler/set-error' },
55+
{ text: 'setValue', link: '/api/use-form-handler/set-value' },
56+
{ text: 'triggerValidation', link: '/api/use-form-handler/trigger-validation' },
57+
{ text: 'unregister', link: '/api/use-form-handler/unregister' },
58+
{ text: 'values', link: '/api/use-form-handler/values' },
59+
]
60+
},
4161
{ text: `FormHandler`, link: '/api/form-handler' }
4262
]
4363
}
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# clearError
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# clearField
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# formState
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# handleSubmit
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# modifiedValues

docs/api/use-form-handler/register.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# register
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# resetField
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# resetForm
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# setError
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# setValue
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# triggerValidation
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# unregister

docs/api/use-form-handler/values.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# values

docs/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ hero:
1717
link: https://github.com/dbssman/vue-form-handler
1818

1919
features:
20-
- title: Fully tree shakeable
21-
details: Only take what you want
22-
icon:
20+
- title: Performant
21+
details: Great performance even with big and complex forms
22+
icon: 🏎
2323
- title: Type Strong
2424
details: Written in TypeScript, with full TS docs
2525
icon: 💪
2626
- title: Flexible
27-
details: You can wrap the handler over native inputs or any other like the ones from material libraries or custom inputs
27+
details: Use on top of native inputs, custom inputs or material libraries!
2828
icon: 🔩
2929
- title: Super light
3030
details: Small package size
@@ -33,6 +33,6 @@ features:
3333
details: Great development experience
3434
icon: 💻
3535
- title: Interactive demos
36-
details: Documentation of functions also come with interactive demos!
36+
details: Coming soon...
3737
icon: 🎪
3838
---

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2+
"author": "Dennis R. Bosmans",
23
"name": "vue-form-handler",
3-
"private": true,
4-
"version": "0.0.0",
4+
"description": "Vue 3 form handler, with validation, error handling, and more.",
5+
"license": "MIT",
6+
"private": false,
7+
"version": "1.0.0",
58
"type": "module",
69
"files": [
710
"dist"

0 commit comments

Comments
 (0)