You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/FormsReadme.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,36 +30,36 @@ In the [form-playground](https://solidos.github.io/form-playground/playground.ht
30
30
31
31
To make use of Forms, you need to use solid-ui. Head over to the [solid-ui readme](https://github.com/SolidOS/solid-ui/blob/main/README.md#getting-started) for some how-to guides on how to use it in `npm` or as a `html <script>`.
32
32
33
-
Once you are set up with the code, take a look at some examples over at [solid-ui/Documentation](<https://github.com/SolidOS/solid-ui/tree/main/Documentation>). The examples there are also deployed on Git Pages:
33
+
Once you are set up with the code, take a look at some examples over at [solid-ui/docs](<https://github.com/SolidOS/solid-ui/tree/main/docs>). The examples there are also deployed on Git Pages:
34
34
35
-
-[Basic Form Demo](https://solidos.github.io/solid-ui/Documentation/form-examples/demo.html)
- if you want, you can try to wrap your head around [a rendering of the entire UI vocabulary](https://solidos.github.io/solid-ui/Documentation/form-examples/edit-form-form.html)_(Scroll to the far right if all you see is a column or two of plain text...)_
35
+
-[Basic Form Demo](https://solidos.github.io/solid-ui/docs/form-examples/demo.html)
- if you want, you can try to wrap your head around [a rendering of the entire UI vocabulary](https://solidos.github.io/solid-ui/docs/form-examples/edit-form-form.html)_(Scroll to the far right if all you see is a column or two of plain text...)_
41
41
42
-
Most interesting may be how it is all wired together in the [test-form.js](https://github.com/SolidOS/solid-ui/blob/main/Documentation/form-examples/test-form.js), while the code for the form itself is mostly under [solid-ui/src/widgets/forms.js](https://github.com/SolidOS/solid-ui/blob/main/src/widgets/forms.js).
42
+
Most interesting may be how it is all wired together in the [test-form.js](https://github.com/SolidOS/solid-ui/blob/main/docs/form-examples/test-form.js), while the code for the form itself is mostly under [solid-ui/src/widgets/forms.js](https://github.com/SolidOS/solid-ui/blob/main/src/widgets/forms.js).
43
43
44
44
## Running or testing it locally
45
45
46
-
Locally you can setup your own test of forms. All you need is the `/Documentation/form-examples` folders and the `test-form.js`.
46
+
Locally you can setup your own test of forms. All you need is the `/docs/form-examples` folders and the `test-form.js`.
47
47
48
-
1. First build solid-ui locally and copy it to `/Documentation/form-examples`
48
+
1. First build solid-ui locally and copy it to `/docs/form-examples`
49
49
Run this instruction which will do all that for you.
50
50
```
51
51
npm run build-form-examples
52
52
```
53
53
2. Use the newly build solid-ui (called main.js) in your html.
54
54
You need to use the new build main.js:
55
-
* uncommenting the usage of the main.js script; Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/Documentation/form-examples/structures3.html#L21)
56
-
* commenting out the mashlib.js usage. Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/Documentation/form-examples/structures3.html#L15)
55
+
* uncommenting the usage of the main.js script; Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/docs/form-examples/structures3.html#L21)
56
+
* commenting out the mashlib.js usage. Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/docs/form-examples/structures3.html#L15)
57
57
58
58
3. Use your own rad data and form
59
-
Switch out the `input` and `target` (form and raw data) links. Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/Documentation/form-examples/structures3.html#L56)
59
+
Switch out the `input` and `target` (form and raw data) links. Example [here](https://github.com/SolidOS/solid-ui/blob/4f620aea3e91daf5ce9591dd83d3c95c161a44ad/docs/form-examples/structures3.html#L56)
60
60
61
61
4. Run a local server
62
-
For example run `npx vite`in the `Documentation` folder and the navigate to something like: http://localhost:3000/form-examples/profile-demo.html
62
+
For example run `npx vite`in the `docs` folder and the navigate to something like: http://localhost:3000/form-examples/profile-demo.html
0 commit comments