Skip to content

Commit ff109fc

Browse files
SaraVieirasapegin
authored andcommitted
Fix: Add Server restart warning when no Readme.md file is present (#409)
1 parent cab9256 commit ff109fc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/rsg-components/ExamplePlaceholder/ExamplePlaceholderRenderer.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const styles = ({ font, light, lightest }) => ({
1313
color: light,
1414
border: 0,
1515
cursor: 'pointer',
16+
background: 'transparent',
1617
'&:hover, &:active': {
1718
isolate: false,
1819
color: lightest,
@@ -51,14 +52,18 @@ Create **Readme.md** or **${name}.md** file in the component’s folder like thi
5152
5253
<${name} pizza="🍕" />
5354
55+
You may need to **restart** the style guide server after adding an example file.
56+
5457
Read more in the [documenting components guide](${DOCS_DOCUMENTING}).
5558
`}
5659
/>
5760
);
5861
}
5962

6063
return (
61-
<button className={classes.button} onClick={this.handleOpen}>Add examples to this component</button>
64+
<button className={classes.button} onClick={this.handleOpen}>
65+
Add examples to this component
66+
</button>
6267
);
6368
}
6469
}

src/rsg-components/ExamplePlaceholder/__snapshots__/ExamplePlaceholder.spec.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Create **Readme.md** or **Pizza.md** file in the component’s folder like this:
1717
1818
&lt;Pizza pizza=\\"&#x1f355;\\" /&gt;
1919
20+
You may need to **restart** the style guide server after adding an example file.
21+
2022
Read more in the [documenting components guide](https://github.com/styleguidist/react-styleguidist/blob/master/docs/Documenting.md).
2123
"
2224
/>

0 commit comments

Comments
 (0)