Skip to content

Commit

Permalink
minor md pages fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jul 31, 2020
1 parent 34d144a commit 7d25e7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/docs/creating-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ How are you?

In the same way, a page will be created at `http://localhost:3000/helloMarkdown`.

Markdown pages are a bit less flexible that React pages, because the default layout is applied.
Markdown pages are less flexible than React pages, because it always uses the theme layout.

Here's an [example markdown page](/examples/markdownPageExample).

Expand Down
12 changes: 9 additions & 3 deletions website/src/pages/examples/markdownPageExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ This is a page generated from markdown to illustrate the markdown page feature.

It supports all the regular MDX features, as you can see:

:::info Useful information. :::
:::info

Useful information.

:::

```jsx live
function Button() {
Expand All @@ -23,6 +27,8 @@ function Button() {

![](../../../static/img/docusaurus.png)

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';

import TabItem from '@theme/TabItem';

<Tabs defaultValue="apple" values={[ {label: 'Apple', value: 'apple'}, {label: 'Orange', value: 'orange'}, {label: 'Banana', value: 'banana'}, ]}> <TabItem value="apple">This is an apple 🍎</TabItem> <TabItem value="orange">This is an orange 🍊</TabItem> <TabItem value="banana">This is a banana 🍌</TabItem> </Tabs>
<Tabs defaultValue="apple" values={[ {label: 'Apple', value: 'apple'}, {label: 'Orange', value: 'orange'}, {label: 'Banana', value: 'banana'} ]}><TabItem value="apple">This is an apple 🍎</TabItem><TabItem value="orange">This is an orange 🍊</TabItem><TabItem value="banana">This is a banana 🍌</TabItem></Tabs>

0 comments on commit 7d25e7e

Please sign in to comment.