Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation improvements #1229

Merged
merged 3 commits into from
Aug 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/layout/styleOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ export const createOverrides = (theme: Theme): StyleRules<any> => ({
wordWrap: 'normal',
backgroundColor: theme.palette.background.paper + ' !important',
},
blockquote: {
marginLeft: 0,
paddingLeft: '1em',
borderLeft: `3px solid ${theme.palette.grey[200]}`,

'& > p': {
fontSize: '0.9rem',
},
},
'h1, h2, h3, h4, h5': {
position: 'relative',
'& a.anchor-link': {
Expand Down
5 changes: 5 additions & 0 deletions docs/pages/api/props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ const Docs: React.FC<WithRouterProps> = ({ router }) => {
component.
</Typography>

<Typography gutterBottom>
<code>DateIOType</code> — date object type of your linked date-io adapter (Moment, DayJS,
etc.)
</Typography>

<PropTypesTable src={componentName} />

{!internalComponents.includes(componentName) && (
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/demo/datepicker/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ color and type weight.
It is recommended to use keyboard input with mask for better desktop experience. Make sure that mask will be automatically
generated from passed `format`. It's recommended to use only robust formats for keyboard input.

> Make sure that `onChange` have second parameter here. So if you will not do `onChange={date => handleDateChange(date)}` you will get error [useState hook dose not accept a second callback argument](https://github.com/facebook/react/issues/14174)
> Make sure that `onChange` have second parameter here. So if you will not do `onChange={date => handleDateChange(date)}` you will get console warning [useState hook dose not accept a second callback argument](https://github.com/facebook/react/issues/14174)

<Example source={KeyboardDatePicker} />

Expand Down
30 changes: 30 additions & 0 deletions docs/patrons.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,36 @@
"vanity": "P4ulBr4ndt",
"youtube": null
},
{
"about": null,
"created": "2019-07-30T14:05:20.000+00:00",
"default_country_code": null,
"email": "[email protected]",
"facebook": null,
"first_name": "Felipe",
"full_name": "Felipe Pastor de Freitas Ferreira",
"gender": 0,
"image_url": "https://c8.patreon.com/2/200/22732849",
"is_email_verified": true,
"last_name": "Pastor de Freitas Ferreira",
"social_connections": {
"deviantart": null,
"discord": null,
"facebook": null,
"instagram": null,
"reddit": null,
"spotify": null,
"twitch": null,
"twitter": null,
"youtube": null
},
"thumb_url": "https://c8.patreon.com/2/200/22732849",
"twitch": null,
"twitter": null,
"url": "https://www.patreon.com/user?u=22732849",
"vanity": null,
"youtube": null
},
{
"about": null,
"created": "2018-08-02T01:46:34.000+00:00",
Expand Down
Loading