Merge pull request #831 from ing-bank/chore/storybook

chore: fix storybook
This commit is contained in:
gerjanvangeest 2020-07-23 13:42:43 +02:00 committed by GitHub
commit 1ba24c7a06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,11 +222,7 @@ Use triple backtick \` to create a fenced codeblock ` ``` `, and put inside it:
::addMdAfter(':root')
```
<!-- markdownlint-disable no-space-in-code -->
Then below that, create another fenced codeblock ` ```js script ` with your imports inside it:
<!-- markdownlint-enable no-space-in-code -->
Then below that, create another fenced codeblock with `js script` annotation with your imports inside it:
```js
import '../lea-tab.js';
@ -235,11 +231,7 @@ import '../lea-tab-panel.js';
And then replace each reference to `lion-tab` with `lea-tab` inside the documentation content, this also covers `lion-tab` and `lion-tab-panel`. We exclude JS snippets 'nodes', those are handled by the babel plugin already.
<!-- markdownlint-disable no-space-in-code -->
Create another fenced codeblock with ` ```js ::replaceFrom(':root') `:
<!-- markdownlint-enable no-space-in-code -->
Create another fenced codeblock with `js ::replaceFrom(':root')` annotation:
```js
module.exports.replaceSection = node => {
@ -252,13 +244,13 @@ module.exports.replaceSection = node => {
};
```
You can remove content as well. Create a fenced codeblock ` ``` `:
You can remove content as well. Create a fenced codeblock:
```md
::removeFrom('heading:has([value=Distribute New Elements])')
```
Or you can add an extra paragraph below the content. Create a fenced codeblock ` ``` `:
Or you can add an extra paragraph below the content. Create a fenced codeblock:
```md
::removeMdAfter(':scope:last-child')