Files
ant-design/public/versions.json
ug f62d50533b docs: load version data dynamically JSON (#56464)
* docs: load version data dynamically via JSON

* update

* update

* Update .dumi/theme/slots/Header/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Fix window location check in Header component

Update condition to check for window and location existence.

Signed-off-by: lijianan <574980606@qq.com>

* Refactor Header component for improved logic

Signed-off-by: lijianan <574980606@qq.com>

* Change import path for versions.json file

Signed-off-by: lijianan <574980606@qq.com>

* Refactor fetcher and update VersionItem interface

Signed-off-by: lijianan <574980606@qq.com>

* Fix version URL to use window.location.origin

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-01-11 23:17:33 +08:00

46 lines
861 B
JSON

[
{
"version": "6.x",
"url": "https://ant.design",
"chineseMirrorUrl": "https://ant-design.antgroup.com"
},
{
"version": "5.x",
"url": "https://5x.ant.design",
"chineseMirrorUrl": "https://5x-ant-design.antgroup.com"
},
{
"version": "4.x",
"url": "https://4x.ant.design",
"chineseMirrorUrl": "https://4x-ant-design.antgroup.com"
},
{
"version": "3.x",
"url": "https://3x.ant.design"
},
{
"version": "2.x",
"url": "https://2x.ant.design"
},
{
"version": "1.x",
"url": "https://1x.ant.design"
},
{
"version": "0.12.x",
"url": "https://012x.ant.design"
},
{
"version": "0.11.x",
"url": "https://011x.ant.design"
},
{
"version": "0.10.x",
"url": "https://010x.ant.design"
},
{
"version": "0.9.x",
"url": "https://09x.ant.design"
}
]