mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
chore: prepare v1-v2 domain switch (#4475)
* prepare v1-v2 domain switch * rename v1 changelog as CHANGELOG-1.x.md * switch v1/v2 changelogs
This commit is contained in:
parent
f12e8b596d
commit
aaea26602b
27 changed files with 4355 additions and 4349 deletions
|
@ -5,7 +5,7 @@ title: Navigation and Sidebars
|
|||
|
||||
## Referencing Site Documents
|
||||
|
||||
If you want to reference another document in your `docs` directory (or the location you set via the [optional `customDocsPath`](https://docusaurus.io/docs/en/site-config.html#optional-fields) path site configuration option), then you just use the name of the document you want to reference.
|
||||
If you want to reference another document in your `docs` directory (or the location you set via the [optional `customDocsPath`](https://v1.docusaurus.io/docs/en/site-config.html#optional-fields) path site configuration option), then you just use the name of the document you want to reference.
|
||||
|
||||
For example, if you are in `doc2.md` and you want to reference `doc1.md`:
|
||||
|
||||
|
|
|
@ -66,8 +66,8 @@ npm run version 1.0.1
|
|||
|
||||
Version 1.0.0 remains available as a past version. You can view it by adding `1.0.0` to the URL, http://localhost:3000/docusaurus-tutorial/docs/1.0.0/doc1. Also, a link to version 1.0.0 appears on the versions page.
|
||||
|
||||
Go ahead and [publish](https://docusaurus.io/docs/en/next/tutorial-publish-site) your versioned site with the `publish-gh-pages` script!
|
||||
Go ahead and [publish](https://v1.docusaurus.io/docs/en/next/tutorial-publish-site) your versioned site with the `publish-gh-pages` script!
|
||||
|
||||
## Wrap Up
|
||||
|
||||
That's all folks! In this short tutorial, you have experienced how easy it is to create a documentation website from scratch and make versions for them. There are many more things you can do with Docusaurus, such as adding a blog, search and translations. Check out the [Guides](https://docusaurus.io/docs/en/next/versioning) section for more.
|
||||
That's all folks! In this short tutorial, you have experienced how easy it is to create a documentation website from scratch and make versions for them. There are many more things you can do with Docusaurus, such as adding a blog, search and translations. Check out the [Guides](https://v1.docusaurus.io/docs/en/next/versioning) section for more.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue