Skip to content

Replace v3.ja.vuejs.org with ja.vuejs.org. #2461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2022
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
2 changes: 1 addition & 1 deletion themes/vue/layout/page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="content <%- page.type ? page.type + ' with-sidebar' : '' %> <%- page.type === 'guide' ? page.path.replace(/.+\//, '').replace('.html', '') + '-guide' : '' %>">
<p class="tip warning v3-warning">
v2.x 以前のドキュメントです。
v3.x のドキュメントを見たい場合は<a href="https://v3.ja.vuejs.org/">こちら</a>
v3.x のドキュメントを見たい場合は<a href="https://ja.vuejs.org/">こちら</a>
</p>

<% if (page.type) { %>
Expand Down
2 changes: 1 addition & 1 deletion themes/vue/layout/partials/header.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
<div id="v3-banner">
<span class="hidden-sm">v2.x 以前のドキュメントです。</span>
v3.x のドキュメントを見たい場合は<a href="https://v3.ja.vuejs.org/">こちら</a>
v3.x のドキュメントを見たい場合は<a href="https://ja.vuejs.org/">こちら</a>
</div>

<header id="header">
Expand Down
2 changes: 1 addition & 1 deletion themes/vue/source/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
var version = e.target.value
var section = window.location.pathname.match(/\/v\d\/(\w+?)\//)[1]
if (version === 'v3') {
window.location.assign('https://v3.ja.vuejs.org/' + section + '/')
window.location.assign('https://ja.vuejs.org/' + section + '/')
return
}
if (version === 'SELF') { return }
Expand Down