Skip to content

Commit

Permalink
feat(doc): update with migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Jul 29, 2024
1 parent 97ff357 commit d3cfb7a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Attributes changes

`dummy` <img src="https://img.shields.io/badge/removed-FF0000" />

Has been removed.

You can use the new `better-dummy` attribute to obtain the same rendering.

## Migration examples

Dummy {{> component-name}}:
```html
<ods-{{> component-name}} dummy></ods-{{> component-name}}>
<!-- is now -->
<ods-{{> component-name}} better-dummy></ods-{{> component-name}}>
```
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta } from '@storybook/addon-docs';
import Specifications{{> ComponentName }} from '@ovhcloud/ods-{{> component-dir}}/src/components/{{ name }}/documentation/specifications/specifications-{{> component-name }}.mdx';
import Specifications{{> ComponentName }} from '@ovhcloud/ods-{{> component-dir}}/src/components/{{> component-name }}/documentation/specifications/specifications-{{> component-name }}.mdx';

<Meta title="ODS Components/TODO/{{> ComponentName }} Specifications" />
<Meta title="ODS Components/TODO/{{> ComponentName }}/Specifications" />

# {{> ComponentName }} - Design Specifications
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta } from '@storybook/addon-docs';
import Usage from '@ovhcloud/ods-{{> component-dir}}/src/components/{{ name }}/documentation/usage-guidelines/usage.mdx';
import Usage from '@ovhcloud/ods-{{> component-dir}}/src/components/{{> component-name }}/documentation/usage-guidelines/usage.mdx';

<Meta title="ODS Components/TODO/{{> ComponentName }} Usage Guidelines" />
<Meta title="ODS Components/TODO/{{> ComponentName }}/Usage Guidelines" />

# {{> ComponentName }} - Usage Guidelines
----
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Meta } from '@storybook/addon-docs';
import Migration from '@ovhcloud/ods-{{> component-dir}}/src/components/{{> component-name }}/documentation/migration.from.17.x.mdx';

<Meta title="ODS Components/TODO/{{> ComponentName }}/Migration From 17.x" />

# {{> ComponentName }} - migrate from v17 to v18
----

<Migration />
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { html } from 'lit-html';
defineCustomElement();

export default {
title: 'ODS Components/TODO/{{> ComponentName }} Demo',
title: 'ODS Components/TODO/{{> ComponentName }}/Demo',
render: (args) => html`
<ods-{{> component-name }} dummy="${args.dummy}">
</ods-{{> component-name }}>
Expand Down

0 comments on commit d3cfb7a

Please sign in to comment.