Skip to content

Commit

Permalink
use .mdx for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jan 4, 2023
1 parent 0199230 commit af72990
Show file tree
Hide file tree
Showing 83 changed files with 39 additions and 29 deletions.
File renamed without changes.
Expand Up @@ -11,7 +11,7 @@ tags: [paginated-tag]

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
Expand Up @@ -12,4 +12,4 @@ authors:

# Post with duplicate title

See https://github.com/facebook/docusaurus/issues/6059. This one and [2021-11-13-dup-title.md](./2021-11-13-dup-title.md) should both show up.
See https://github.com/facebook/docusaurus/issues/6059. This one and [2021-11-13-dup-title.md](./2021-11-13-dup-title.mdx) should both show up.
File renamed without changes.
Expand Up @@ -2,4 +2,4 @@

Inside folder with space

[doc 2](./doc%202.md)
[doc 2](./doc%202.mdx)
Expand Up @@ -2,4 +2,4 @@

Inside folder with space

[doc 1](./doc%201.md)
[doc 1](./doc%201.mdx)
File renamed without changes.
Expand Up @@ -4,4 +4,4 @@ tags: [a, e, some-tag, some_tag]

# Another test page

[Test link](./folder%20with%20space/doc%201.md)
[Test link](./folder%20with%20space/doc%201.mdx)
Expand Up @@ -18,12 +18,12 @@ In production, draft items shouldn't be accessible:

In production, unlisted items should remain accessible, but be hidden in the sidebar (unless currently browsed):

- [./only-unlisteds/unlisted1.md](./only-unlisteds/unlisted1.md)
- [./only-unlisteds/unlisted2.md](./only-unlisteds/unlisted2.md)
- [./only-unlisteds/unlisted-subcategory/unlisted3.md](./only-unlisteds/unlisted-subcategory/unlisted3.md)
- [./some-unlisteds/unlisted1.md](./some-unlisteds/unlisted1.md)
- [./some-unlisteds/unlisted2.md](./some-unlisteds/unlisted2.md)
- [./some-unlisteds/unlisted-subcategory/unlisted3.md](./some-unlisteds/unlisted-subcategory/unlisted3.md)
- [./only-unlisteds/unlisted1.md](./only-unlisteds/unlisted1.mdx)
- [./only-unlisteds/unlisted2.md](./only-unlisteds/unlisted2.mdx)
- [./only-unlisteds/unlisted-subcategory/unlisted3.md](./only-unlisteds/unlisted-subcategory/unlisted3.mdx)
- [./some-unlisteds/unlisted1.md](./some-unlisteds/unlisted1.mdx)
- [./some-unlisteds/unlisted2.md](./some-unlisteds/unlisted2.mdx)
- [./some-unlisteds/unlisted-subcategory/unlisted3.md](./some-unlisteds/unlisted-subcategory/unlisted3.mdx)

---

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-2-2.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 2

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-2-3.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 3

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-2-4.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 4

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-2-5.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 5

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-3-5.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 5

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-3-_.mdx
Expand Up @@ -5,7 +5,7 @@ toc_min_heading_level: 3

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-4-5.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 5

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-5-5.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 5

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-_-5.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 5

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_docs tests/toc/toc-_-_.mdx
Expand Up @@ -5,7 +5,7 @@

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
File renamed without changes.
Expand Up @@ -3,7 +3,7 @@
Let's import a MDX partial at `./_pagePartial.md`:

```mdx-code-block
import PagePartial from "./_pagePartial.md"
import PagePartial from "./_pagePartial.mdx"
<PagePartial />
```
Expand All @@ -13,7 +13,7 @@ import PagePartial from "./_pagePartial.md"
Now let's import `../README.md`:

```mdx-code-block
import Readme from "../README.md"
import Readme from "../README.mdx"
<Readme />
```
Expand Down
Expand Up @@ -34,7 +34,17 @@ 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>

## Comments

Expand All @@ -58,7 +68,7 @@ My comment

## Import code block from source code file

import MyComponent from "@site/src/pages/examples/\_myComponent"
import MyComponent from '@site/src/pages/examples/_myComponent';

import BrowserWindow from '@site/src/components/BrowserWindow';

Expand All @@ -74,7 +84,7 @@ import MyComponent from './myComponent';

<BrowserWindow>

<MyComponent/>
<MyComponent />

</BrowserWindow>

Expand All @@ -88,9 +98,9 @@ import MyComponentSource from '!!raw-loader!./myComponent';
<CodeBlock className="language-jsx">{MyComponentSource}</CodeBlock>;
```

import CodeBlock from "@theme/CodeBlock"
import CodeBlock from '@theme/CodeBlock';

import MyComponentSource from '!!raw-loader!@site/src/pages/examples/\_myComponent';
import MyComponentSource from '!!raw-loader!@site/src/pages/examples/_myComponent';

<BrowserWindow>

Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_pages tests/page-toc-tests.mdx
Expand Up @@ -5,7 +5,7 @@ toc_max_heading_level: 4

import Content, {
toc as ContentToc,
} from '@site/_dogfooding/_partials/toc-tests.md';
} from '@site/_dogfooding/_partials/toc-tests.mdx';

<Content />

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit af72990

Please sign in to comment.