pingcap / website-docs

The next generation of PingCAP Docs. Powered by Gatsby ⚛️.
https://docs.pingcap.com/
MIT License
22 stars 33 forks source link

change the Archived Docs url in version-select dropdowns for kubernetes and dm docs #419

Closed ran-huang closed 1 year ago

ran-huang commented 1 year ago

Currently, it's difficult for users to find where are the archived docs of TiDB in Kubernetes or TiDB data migration. This is because, when they click on the Archived Docs label in the version-select dropdown, they are taken to the archived docs of TiDB, rather than Kubernetes/DM.

This PR tries to improve user experience on this issue. If the doc type is tidb-in-kubernetes or dm, the archived URL should be the earliest archived version of the respective docs: v1.0 for TiDB in Kuberenetes and v1.0 for TiDB Data Migration.

image
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website-docs ❌ Failed (Inspect) Jun 18, 2023 2:26pm
vercel[bot] commented 1 year ago

@ran-huang is attempting to deploy a commit to the pingcap Team on Vercel.

A member of the Team first needs to authorize it.