mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-09 14:22:27 +02:00
docs(v2): Add migration info doc regarding docs folder location (#3962)
This commit is contained in:
parent
141d062c3b
commit
e5610a475d
1 changed files with 19 additions and 11 deletions
|
@ -33,22 +33,30 @@ Your Docusaurus 1 site should have the following structure:
|
||||||
|
|
||||||
## Docusaurus 2 structure
|
## Docusaurus 2 structure
|
||||||
|
|
||||||
After the migration, your Docusaurus 2 site should look like:
|
After the migration, your Docusaurus 2 site could look like:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
website
|
|
||||||
├── blog
|
|
||||||
├── docs
|
├── docs
|
||||||
├── src
|
└── website
|
||||||
│ ├── components
|
├── blog
|
||||||
│ ├── css
|
├── src
|
||||||
│ └── pages
|
│ ├── components
|
||||||
├── static
|
│ ├── css
|
||||||
├── package.json
|
│ └── pages
|
||||||
├── sidebars.json
|
├── static
|
||||||
├── docusaurus.config.js
|
├── package.json
|
||||||
|
├── sidebars.json
|
||||||
|
├── docusaurus.config.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:::info
|
||||||
|
|
||||||
|
This migration does not change the `/docs` folder location, but Docusaurus v2 sites generally have the `/docs` folder inside `/website`
|
||||||
|
|
||||||
|
You are free to put the `/docs` folder anywhere you want after having migrated to v2.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Migration process
|
## Migration process
|
||||||
|
|
||||||
There are multiple things to migrate to obtain a fully functional Docusaurus 2 website:
|
There are multiple things to migrate to obtain a fully functional Docusaurus 2 website:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue