From 530a92096247885376c900a588e1e7557c458d21 Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Tue, 22 Jun 2021 15:56:07 +0100 Subject: [PATCH] docs: link directly to equivalent pages in translations --- src/.vuepress/config.js | 15 ++++++---- src/.vuepress/theme/components/NavLink.vue | 32 ++++++++++++++++++++-- src/.vuepress/theme/layouts/404.vue | 31 ++++++++++++++------- 3 files changed, 61 insertions(+), 17 deletions(-) diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index fb2599f477..d3c1a92e09 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -423,23 +423,28 @@ module.exports = { // Translation maintainers: Please include the link below to the English documentation // { // text: 'English', - // link: 'https://v3.vuejs.org/' + // link: 'https://v3.vuejs.org/', + // isTranslation: true // }, { text: '中文', - link: 'https://v3.cn.vuejs.org/' + link: 'https://v3.cn.vuejs.org/', + isTranslation: true }, { text: '한국어', - link: 'https://v3.ko.vuejs.org/' + link: 'https://v3.ko.vuejs.org/', + isTranslation: true }, { text: '日本語', - link: 'https://v3.ja.vuejs.org/' + link: 'https://v3.ja.vuejs.org/', + isTranslation: true }, { text: 'Русский', - link: 'https://v3.ru.vuejs.org/' + link: 'https://v3.ru.vuejs.org/ru/', + isTranslation: true }, { text: 'More Translations', diff --git a/src/.vuepress/theme/components/NavLink.vue b/src/.vuepress/theme/components/NavLink.vue index 4ccd13d88b..3f4754f4d1 100644 --- a/src/.vuepress/theme/components/NavLink.vue +++ b/src/.vuepress/theme/components/NavLink.vue @@ -22,8 +22,26 @@ diff --git a/src/.vuepress/theme/layouts/404.vue b/src/.vuepress/theme/layouts/404.vue index 2cbfa0f179..915deb1d51 100644 --- a/src/.vuepress/theme/layouts/404.vue +++ b/src/.vuepress/theme/layouts/404.vue @@ -3,7 +3,13 @@
{{ getMsg() }}+
++ +Whoops! This page doesn't exist.
+
+ New pages are added to the documentation all the time. This page might not be included in all of the translations yet. +