Skip to content

Commit

Permalink
docs: improve structure
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Dec 15, 2024
1 parent ad40641 commit aa9e8ba
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 489 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Special thank you for [Martins Zeltins](https://github.com/martinszeltins) who h

- [x] Unit tests
- [x] E2E tests
- [ ] Example repo, Reproduction repl
- [ ] Type tests
- [x] Example repo, Reproduction repl
- [x] Type tests

### Next iterations

Expand Down
26 changes: 18 additions & 8 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,24 @@ const Integrations: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildren
},
];

const Examples: DefaultTheme.NavItemWithLink[] = [
{ text: 'Simple form example', link: '/examples/simple' },
{ text: 'Custom rules', link: '/examples/custom-rules' },
{ text: 'Conditional rules', link: '/examples/conditional-rules' },
{ text: 'Collections', link: '/examples/collections' },
{ text: 'Server validation', link: '/examples/server-validation' },
{ text: 'Required indicators', link: '/examples/required-indicators' },
{ text: 'Advanced form example', link: '/examples/advanced' },
const Examples: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildren)[] = [
{
text: 'Complete',
items: [
{ text: 'Simple form example', link: '/examples/simple' },
{ text: 'Advanced form example', link: '/examples/advanced' },
],
},
{
text: 'Specific',
items: [
{ text: 'Custom rules', link: '/examples/custom-rules' },
{ text: 'Conditional rules', link: '/examples/conditional-rules' },
{ text: 'Collections', link: '/examples/collections' },
{ text: 'Server validation', link: '/examples/server-validation' },
{ text: 'Required indicators', link: '/examples/required-indicators' },
],
},
];

const Troubleshooting: DefaultTheme.NavItemWithLink[] = [
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ function scrollToActiveSidebarItem() {
if (activeLink) {
activeLink.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}, 1000);
}, 400);
}
}
2 changes: 1 addition & 1 deletion docs/src/examples/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Don't forgot to install the `Vue` extension in the online IDE.
</a>


<iframe style='width: 100%; height: 700px' src="https://stackblitz.com/github/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example??embed=1&file=src%2FApp.vue&theme=dark&view=preview" title="Sandbox editor" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>
<iframe style='width: 100%; height: 700px' src="https://stackblitz.com/github/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example?embed=1&file=src%2FApp.vue&theme=dark&view=preview" title="Sandbox editor" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>
Loading

0 comments on commit aa9e8ba

Please sign in to comment.