Skip to content

Commit 2684f06

Browse files
committed
Minor doc tweaks
1 parent bf93a29 commit 2684f06

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

docs/Show.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Here is the minimal code necessary to display a view to show a post:
1919

2020
{% raw %}
2121
```jsx
22-
// in src/posts.js
22+
// in src/posts.jsx
2323
import * as React from "react";
2424
import { Show, SimpleShowLayout, TextField, DateField, RichTextField } from 'react-admin';
2525

@@ -34,7 +34,7 @@ export const PostShow = () => (
3434
</Show>
3535
);
3636

37-
// in src/App.js
37+
// in src/App.jsx
3838
import * as React from "react";
3939
import { Admin, Resource } from 'react-admin';
4040
import jsonServerProvider from 'ra-data-json-server';

docs/ShowBase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Use `<ShowBase>` instead of `<Show>` when you want a completely custom page layo
2020

2121
{% raw %}
2222
```jsx
23-
// in src/posts.js
23+
// in src/posts.jsx
2424
import * as React from "react";
2525
import { ShowBase } from 'react-admin';
2626

@@ -42,7 +42,7 @@ const PostShow = () => (
4242
</ShowBase>
4343
);
4444

45-
// in src/App.js
45+
// in src/App.jsx
4646
import * as React from "react";
4747
import { Admin, Resource } from 'react-admin';
4848
import jsonServerProvider from 'ra-data-json-server';

docs/css/style-v18.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@ ul.sidenav code {
276276
text-decoration: underline;
277277
}
278278

279+
.markdown-section .highlight {
280+
margin-bottom: 1em;
281+
}
282+
283+
.marmelab-language-switcher-tabs {
284+
margin-top: -0.5em;
285+
}
286+
279287
@media only screen and (max-width: 992px) {
280288
img:not(.no-shadow) {
281289
width: 100%;
@@ -676,3 +684,4 @@ body.no-sidebar .sidenav-trigger {
676684
background-color: #f5f2f0;
677685
text-decoration: none !important;
678686
}
687+

0 commit comments

Comments
 (0)