Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions themes/vue/_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
site_description: Vue.js - The Progressive JavaScript Framework
google_analytics: UA-46852172-3
# TODO: update when v3 becomes the main docsite?
root_domain: cn.vuejs.org
root_domain: v2.cn.vuejs.org
vue_version: 2.7.10
# START SPONSORS
special:
Expand Down
4 changes: 2 additions & 2 deletions themes/vue/layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- TODO: update when v3 becomes the main docsite -->
<link rel="alternate" hreflang="x-default" href="https://vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="zh" href="https://cn.vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="x-default" href="https://v2.vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="zh" href="https://v2.cn.vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/<%- page.path %>">
<link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/<%- page.path %>">
Expand Down
5 changes: 2 additions & 3 deletions themes/vue/source/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,9 @@

// function: special logic for cn
function getVersionOrigin (version) {
// TODO: update when v3 becomes the main docsite
var originMap = {
'v3': 'https://v3.cn.vuejs.org/',
'SELF': 'https://cn.vuejs.org/',
'v3': 'https://cn.vuejs.org/',
'SELF': 'https://v2.cn.vuejs.org/',
'v1': 'https://v1-cn.vuejs.org/',
'012': 'https://012-cn.vuejs.org/'
}
Expand Down