-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(doc): update with migration files
- Loading branch information
Showing
5 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...s/component-generator/templates/component/documentation/migration.from.17.x.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}> | ||
``` |
4 changes: 2 additions & 2 deletions
4
scripts/component-generator/templates/storybook/1_specifications.stories.mdx.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
scripts/component-generator/templates/storybook/2_usage.stories.mdx.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
scripts/component-generator/templates/storybook/3_migration_.from.17.x.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters