Skip to content

Commit

Permalink
docs(web-core): update documentation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ByScripts committed Nov 14, 2024
1 parent 224c09e commit 81a7cb3
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 310 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ If no style is applied to the root element, the class name will be omitted
```

> [!TIP]
> See also [Component variants guidelines](./component-variants.md)
> See also [Component variants guidelines](component-variants.md)
> to learn how to handle different component styles based on its props or states.
## Optional slots container SHOULD use `v-if="$slots.<slotName>"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A variant is a specific style that a component can have. It is usually determine
These variants are defined in the Design System and are reflected in the component's CSS.

See also:
[toVariants utility](../utils/to-variants.util.md) to help you generate variant CSS classes for your components.
[toVariants utility](../lib/utils/to-variants.util.md) to help you generate variant CSS classes for your components.

## Base class

Expand Down
158 changes: 0 additions & 158 deletions @xen-orchestra/web-core/docs/composables/context.composable.md

This file was deleted.

150 changes: 0 additions & 150 deletions @xen-orchestra/web-core/docs/contexts/color-context.md

This file was deleted.

File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions @xen-orchestra/web-core/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Guidelines

- [Component Definition](./component-definition.md)
- [Component Variants](./component-variants.md)
- [Internationalization (i18n)](./i18n.md)
- [Icons](./icons.md)
- [Stores](./stores.md)
- [Subscribable stores](./subscribable-stores.md)

# Composables

- [useItemCounter](../lib/composables/item-counter.composable.md)
- [useRouteQuery](../lib/composables/route-query.composable.md)
- [useTable](../lib/composables/table.composable.md)
- [useTree](../lib/composables/tree.composable.md)

# Directives

- [vTooltip](../lib/directives/tooltip.directive.md)

# Utils

- [isElse](../lib/utils/if-else.utils.md)
- [toVariants](../lib/utils/to-variants.util.md)
File renamed without changes.

0 comments on commit 81a7cb3

Please sign in to comment.