From 07914985634d1b099e50b8f08cab462088ab6a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E5=8D=81=E4=B8=80?= Date: Wed, 5 Nov 2025 10:23:18 +0800 Subject: [PATCH 1/2] change1 --- docs/_static/versions.json | 10 ++++++++++ docs/conf.py | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 docs/_static/versions.json diff --git a/docs/_static/versions.json b/docs/_static/versions.json new file mode 100644 index 0000000..dcfe9bd --- /dev/null +++ b/docs/_static/versions.json @@ -0,0 +1,10 @@ +[ + { + "version": "latest", + "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/latest/index.html" + }, + { + "version": "0.5.0", + "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/0.5.0/index.html" + } +] \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index f21ba17..0408cb7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -107,6 +107,13 @@ html_theme_options = { "show_navbar_depth": 1, "max_navbar_depth": 7, "collapse_navigation": True, + "navbar_end": [ + "version-switcher", + ], + "switcher": { + "json_url": "https://gitee.com/openeuler/yuanrong-runtime/blob/master/docs/_static/versions.json", + "version_match": "latest", + }, "extra_footer": """ Built with Sphinx -- Gitee From a4b6a7b06fe76f8c4c32a74998a9be30c01fcf13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E5=8D=81=E4=B8=80?= Date: Wed, 5 Nov 2025 11:31:57 +0800 Subject: [PATCH 2/2] change1 --- docs/_static/versions.json | 4 ++-- docs/conf.py | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/_static/versions.json b/docs/_static/versions.json index dcfe9bd..67a12dc 100644 --- a/docs/_static/versions.json +++ b/docs/_static/versions.json @@ -1,10 +1,10 @@ [ { "version": "latest", - "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/latest/index.html" + "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/latest/" }, { "version": "0.5.0", - "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/0.5.0/index.html" + "url": "https://pages.openeuler.openatom.cn/openyuanrong/docs/zh-cn/0.5.0/" } ] \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 0408cb7..f21ba17 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -107,13 +107,6 @@ html_theme_options = { "show_navbar_depth": 1, "max_navbar_depth": 7, "collapse_navigation": True, - "navbar_end": [ - "version-switcher", - ], - "switcher": { - "json_url": "https://gitee.com/openeuler/yuanrong-runtime/blob/master/docs/_static/versions.json", - "version_match": "latest", - }, "extra_footer": """ Built with Sphinx -- Gitee