chore: fix storybook

This commit is contained in:
Joren Broekema 2020-07-23 13:26:34 +02:00
parent 8563826486
commit 36dd63d715

View file

@ -222,11 +222,7 @@ Use triple backtick \` to create a fenced codeblock ` ``` `, and put inside it:
::addMdAfter(':root') ::addMdAfter(':root')
``` ```
<!-- markdownlint-disable no-space-in-code --> Then below that, create another fenced codeblock with `js script` annotation with your imports inside it:
Then below that, create another fenced codeblock ` ```js script ` with your imports inside it:
<!-- markdownlint-enable no-space-in-code -->
```js ```js
import '../lea-tab.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. 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')` annotation:
Create another fenced codeblock with ` ```js ::replaceFrom(':root') `:
<!-- markdownlint-enable no-space-in-code -->
```js ```js
module.exports.replaceSection = node => { 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 ```md
::removeFrom('heading:has([value=Distribute New Elements])') ::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 ```md
::removeMdAfter(':scope:last-child') ::removeMdAfter(':scope:last-child')