[ https://issues.apache.org/jira/browse/YUNIKORN-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated YUNIKORN-2274: ------------------------------------- Labels: pull-request-available (was: ) > 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 > Priority: Major > Labels: pull-request-available > > 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: issues-unsubscr...@yunikorn.apache.org For additional commands, e-mail: issues-h...@yunikorn.apache.org