diff --git a/docs/docs/quickstarts/create-a-page.md b/docs/docs/quickstarts/create-a-page.md index 20e2ac3..e69de29 100644 --- a/docs/docs/quickstarts/create-a-page.md +++ b/docs/docs/quickstarts/create-a-page.md @@ -1,43 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Create a Page - -Add **Markdown or React** files to `src/pages` to create a **standalone page**: - -- `src/pages/index.js` → `localhost:3000/` -- `src/pages/foo.md` → `localhost:3000/foo` -- `src/pages/foo/bar.js` → `localhost:3000/foo/bar` - -## Create your first React Page - -Create a file at `src/pages/my-react-page.js`: - -```jsx title="src/pages/my-react-page.js" -import React from 'react'; -import Layout from '@theme/Layout'; - -export default function MyReactPage() { - return ( - -

My React page

-

This is a React page

-
- ); -} -``` - -A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page). - -## Create your first Markdown Page - -Create a file at `src/pages/my-markdown-page.md`: - -```mdx title="src/pages/my-markdown-page.md" -# My Markdown page - -This is a Markdown page -``` - -A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page). diff --git a/docs/docs/quickstarts/markdown-features.mdx b/docs/docs/quickstarts/markdown-features.mdx index 35e0082..1f42792 100644 --- a/docs/docs/quickstarts/markdown-features.mdx +++ b/docs/docs/quickstarts/markdown-features.mdx @@ -30,14 +30,14 @@ Markdown text with [links](./hello.md) Regular Markdown links are supported, using url paths or relative file paths. ```md -Let's see how to [Create a page](/create-a-page). +Let's see how to [Create a page](/recommended). ``` ```md -Let's see how to [Create a page](./create-a-page.md). +Let's see how to [Create a page](./recommended.md). ``` -**Result:** Let's see how to [Create a page](./create-a-page.md). +**Result:** Let's see how to [Create a page](./recommended.md). ## Images diff --git a/docs/docs/quickstarts/recommended.md b/docs/docs/quickstarts/recommended.md new file mode 100644 index 0000000..93cfc01 --- /dev/null +++ b/docs/docs/quickstarts/recommended.md @@ -0,0 +1,43 @@ +--- +sidebar_position: 1 +--- + +# Recommended + +Add **Markdown or React** files to `src/pages` to create a **standalone page**: + +- `src/pages/index.js` → `localhost:3000/` +- `src/pages/foo.md` → `localhost:3000/foo` +- `src/pages/foo/bar.js` → `localhost:3000/foo/bar` + +## Create your first React Page + +Create a file at `src/pages/my-react-page.js`: + +```jsx title="src/pages/my-react-page.js" +import React from 'react'; +import Layout from '@theme/Layout'; + +export default function MyReactPage() { + return ( + +

My React page

+

This is a React page

+
+ ); +} +``` + +A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page). + +## Create your first Markdown Page + +Create a file at `src/pages/my-markdown-page.md`: + +```mdx title="src/pages/my-markdown-page.md" +# My Markdown page + +This is a Markdown page +``` + +A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).