You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Yu-Lin Chen (Jira)" <ji...@apache.org> on 2023/12/16 05:18:00 UTC
[jira] [Created] (YUNIKORN-2274) Improve document version routing in YuniKorn documentation
Yu-Lin Chen created YUNIKORN-2274:
-------------------------------------
Summary: Improve document version routing in YuniKorn documentation
Key: YUNIKORN-2274
URL: https://issues.apache.org/jira/browse/YUNIKORN-2274
Project: Apache YuniKorn
Issue Type: Improvement
Components: documentation
Reporter: Yu-Lin Chen
Assignee: Yu-Lin Chen
When changing document version on YuniKorn document page, it alway redirects to root page, ex:
* [https://yunikorn.apache.org/docs/next/] (Master/Next)
* [https://yunikorn.apache.org/docs/(Current)]
* [https://yunikorn.apache.org/docs/1.3.0] (Other version)
We can enable the build-in navbar item ‘[docsVersionDropdown|https://docusaurus.io/docs/next/versioning#navbar-items]’ in docusaurus, allowing the framework handle versioned routes.
For example:
# Go to any sub-page in the user_guide, such as: [http://localhost:3000/docs/user_guide/sorting_policies] (1.4.0)
# Change version to 1.3.0 and it will route to:
Was: [http://localhost:3000/docs/1.3.0/]
Will be: [http://localhost:3000/docs/1.3.0/user_guide/sorting_policies]
Reference:
# You could try switching from '3.0.1' to '2.x' on this website: [https://docusaurus.io/docs/api/themes/configuration]
# The source code of reference page. [https://github.com/facebook/docusaurus/blob/main/website/docusaurus.config.ts#L575-L577]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org