mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
docs: make localhost links clickable (#7582)
* docs: clickable localhost links * revert changes in auto-generated examples folder Co-authored-by: dht <dht@users.noreply.github.com>
This commit is contained in:
parent
7869e74fd7
commit
5c9e4a2dcd
17 changed files with 21 additions and 21 deletions
|
@ -31,4 +31,4 @@ Congratulations, you have made your first post!
|
|||
Feel free to play around and edit this post as much you like.
|
||||
```
|
||||
|
||||
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
||||
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
|
||||
|
|
|
@ -20,7 +20,7 @@ Create a markdown file at `docs/hello.md`:
|
|||
This is my **first Docusaurus document**!
|
||||
```
|
||||
|
||||
A new document is now available at `http://localhost:3000/docs/hello`.
|
||||
A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
|
||||
|
||||
## Configure the Sidebar
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ export default function MyReactPage() {
|
|||
}
|
||||
```
|
||||
|
||||
A new page is now available at `http://localhost:3000/my-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
|
||||
|
||||
|
@ -40,4 +40,4 @@ Create a file at `src/pages/my-markdown-page.md`:
|
|||
This is a Markdown page
|
||||
```
|
||||
|
||||
A new page is now available at `http://localhost:3000/my-markdown-page`.
|
||||
A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
|
||||
|
|
|
@ -26,6 +26,6 @@ Test your production build locally:
|
|||
npm run serve
|
||||
```
|
||||
|
||||
The `build` folder is now served at `http://localhost:3000/`.
|
||||
The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
|
||||
|
||||
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
||||
|
|
|
@ -39,7 +39,7 @@ Start your site on the French locale:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Your localized site is accessible at `http://localhost:3000/fr/` and the `Getting Started` page is translated.
|
||||
Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
|
||||
|
||||
:::caution
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function Hello() {
|
|||
}
|
||||
```
|
||||
|
||||
Once you save the file, the development server will automatically reload the changes. Now open `http://localhost:3000/helloReact` and you will see the new page you just created.
|
||||
Once you save the file, the development server will automatically reload the changes. Now open [http://localhost:3000/helloReact](http://localhost:3000/helloReact) and you will see the new page you just created.
|
||||
|
||||
Each page doesn't come with any styling. You will need to import the `Layout` component from `@theme/Layout` and wrap your contents within that component if you want the navbar and/or footer to appear.
|
||||
|
||||
|
@ -77,7 +77,7 @@ hide_table_of_contents: true
|
|||
How are you?
|
||||
```
|
||||
|
||||
In the same way, a page will be created at `http://localhost:3000/helloMarkdown`.
|
||||
In the same way, a page will be created at [http://localhost:3000/helloMarkdown](http://localhost:3000/helloMarkdown).
|
||||
|
||||
Markdown pages are less flexible than React pages because it always uses the theme layout.
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ Start your site on the French locale:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Make sure that your website is now translated in French at `http://localhost:3000/fr/`.
|
||||
Make sure that your website is now translated in French at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
### Automate with CI {#automate-with-ci}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ Start your localized site in dev mode, using the locale of your choice:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Your site is accessible at **`http://localhost:3000/fr/`**.
|
||||
Your site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
We haven't provided any translation yet, so the site is mostly untranslated.
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ cd my-website
|
|||
npx docusaurus start
|
||||
```
|
||||
|
||||
Open `http://localhost:3000` and follow the tutorial.
|
||||
Open [http://localhost:3000](http://localhost:3000) and follow the tutorial.
|
||||
|
||||
:::tip
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function Hello() {
|
|||
}
|
||||
```
|
||||
|
||||
Once you save the file, the development server will automatically reload the changes. Now open `http://localhost:3000/helloReact` and you will see the new page you just created.
|
||||
Once you save the file, the development server will automatically reload the changes. Now open [http://localhost:3000/helloReact](http://localhost:3000/helloReact) and you will see the new page you just created.
|
||||
|
||||
Each page doesn't come with any styling. You will need to import the `Layout` component from `@theme/Layout` and wrap your contents within that component if you want the navbar and/or footer to appear.
|
||||
|
||||
|
@ -77,7 +77,7 @@ hide_table_of_contents: true
|
|||
How are you?
|
||||
```
|
||||
|
||||
In the same way, a page will be created at `http://localhost:3000/helloMarkdown`.
|
||||
In the same way, a page will be created at [http://localhost:3000/helloMarkdown](http://localhost:3000/helloMarkdown).
|
||||
|
||||
Markdown pages are less flexible than React pages because it always uses the theme layout.
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ Start your site on the French locale:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Make sure that your website is now translated in French at `http://localhost:3000/fr/`.
|
||||
Make sure that your website is now translated in French at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
### Automate with CI {#automate-with-ci}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ Start your localized site in dev mode, using the locale of your choice:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Your site is accessible at **`http://localhost:3000/fr/`**.
|
||||
Your site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
We haven't provided any translation yet, so the site is mostly untranslated.
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ cd my-website
|
|||
npx docusaurus start
|
||||
```
|
||||
|
||||
Open `http://localhost:3000` and follow the tutorial.
|
||||
Open [http://localhost:3000](http://localhost:3000) and follow the tutorial.
|
||||
|
||||
:::tip
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function Hello() {
|
|||
}
|
||||
```
|
||||
|
||||
Once you save the file, the development server will automatically reload the changes. Now open `http://localhost:3000/helloReact` and you will see the new page you just created.
|
||||
Once you save the file, the development server will automatically reload the changes. Now open [http://localhost:3000/helloReact](http://localhost:3000/helloReact) and you will see the new page you just created.
|
||||
|
||||
Each page doesn't come with any styling. You will need to import the `Layout` component from `@theme/Layout` and wrap your contents within that component if you want the navbar and/or footer to appear.
|
||||
|
||||
|
@ -77,7 +77,7 @@ hide_table_of_contents: true
|
|||
How are you?
|
||||
```
|
||||
|
||||
In the same way, a page will be created at `http://localhost:3000/helloMarkdown`.
|
||||
In the same way, a page will be created at [http://localhost:3000/helloMarkdown](http://localhost:3000/helloMarkdown).
|
||||
|
||||
Markdown pages are less flexible than React pages because it always uses the theme layout.
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ Start your site on the French locale:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Make sure that your website is now translated in French at `http://localhost:3000/fr/`.
|
||||
Make sure that your website is now translated in French at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
### Automate with CI {#automate-with-ci}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ Start your localized site in dev mode, using the locale of your choice:
|
|||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Your site is accessible at **`http://localhost:3000/fr/`**.
|
||||
Your site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/).
|
||||
|
||||
We haven't provided any translation yet, so the site is mostly untranslated.
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ cd my-website
|
|||
npx docusaurus start
|
||||
```
|
||||
|
||||
Open `http://localhost:3000` and follow the tutorial.
|
||||
Open [http://localhost:3000](http://localhost:3000) and follow the tutorial.
|
||||
|
||||
:::tip
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue