How to make current version as default when homepage loaded? #4873
Replies: 4 comments 2 replies
-
|
https://docusaurus.io/docs/versioning#figure-out-the-behavior-for-the-current-version |
Beta Was this translation helpful? Give feedback.
-
|
As far I good understand your situation, you need to set /**
* URL route for the docs section of your site.
* *DO NOT* include a trailing slash.
* INFO: It is possible to set just `/` for shipping docs without base path.
*/
routeBasePath: '/',Source: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs |
Beta Was this translation helpful? Give feedback.
-
|
@Siemienik Thanks for your information. My purpose is to load unreleased version (like 2.0.0-beta.1 🚧 in docusaurus ) by default when the homepage opened. After change configuration with your guide, we can not build successfully. In my project, The docs folder is in the outside of website folder, so the path is assigned to '../docs' as showed in the following. What configuration should adapt to let unreleased version loaded by default? |
Beta Was this translation helpful? Give feedback.
-
We can't help you if you don't tell why the project refuse to build, it should I suggest using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all , The docusaurus is very useful for me to build my personal website. Now the v1 have been released, and will maintain it for a long time before thinking about v2 (current version). After the homepage loaded, the v1 is selected defaultly. Could docusaurus let the v2 load defaultly when users access the homepage? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions