diff --git a/source/conf.py b/source/conf.py index 36aa70f3a7f..886e3c22256 100644 --- a/source/conf.py +++ b/source/conf.py @@ -145,7 +145,11 @@ ], 'use_edit_page_button': False, 'navigation_with_keys': False, - 'show_prev_next': False + 'show_prev_next': False, + 'use_version_switch': True, + 'version_switch_json_url': '/versions.json', + 'version_switch_enable_locale': True, + 'version_switch_locates': ['zh', 'en'], } html_sidebars = { diff --git a/tmp/doc/latest/en b/tmp/doc/latest/en new file mode 120000 index 00000000000..a01b00e30a4 --- /dev/null +++ b/tmp/doc/latest/en @@ -0,0 +1 @@ +../../../build/html \ No newline at end of file diff --git a/tmp/doc/v1.2.0/en b/tmp/doc/v1.2.0/en new file mode 120000 index 00000000000..a01b00e30a4 --- /dev/null +++ b/tmp/doc/v1.2.0/en @@ -0,0 +1 @@ +../../../build/html \ No newline at end of file diff --git a/tmp/doc/v1.3.0/en b/tmp/doc/v1.3.0/en new file mode 120000 index 00000000000..a01b00e30a4 --- /dev/null +++ b/tmp/doc/v1.3.0/en @@ -0,0 +1 @@ +../../../build/html \ No newline at end of file diff --git a/tmp/versions.json b/tmp/versions.json new file mode 100644 index 00000000000..a82e44475ec --- /dev/null +++ b/tmp/versions.json @@ -0,0 +1,33 @@ +{ + "en": [ + { + "name": "v1.3.0", + "path": "v1.3.0", + "alias": ["latest"], + "default": true + }, + { + "name": "v1.2.0", + "path": "v1.2.0", + "alias": [] + }, + { + "name": "v1.0.0", + "path": "v1.0.0", + "alias": [] + } + ], + "zh":[ + { + "name": "v1.1.0", + "path": "v1.1.0", + "alias": ["latest"], + "default": true + }, + { + "name": "v1.0.0", + "path": "v1.0.0", + "alias": [] + } + ] +}