diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index e4fb3c1d188..77d1d19d971 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -45,7 +45,11 @@ module.exports = { ['@simonbrunel/vuepress-plugin-versions', { filters: { suffix: (tag) => tag ? ` (${tag})` : '', - title: (v, vars) => window.location.href.includes('master') ? 'Development (master)' : v + (vars.tag ? ` (${tag})` : ''), + title: (v, vars) => { + return window.location.href.includes('master') ? 'Development (master)' : + vars.tag === 'latest' ? 'Latest (' + v + ')' : + v + (vars.tag ? ` (${tag})` : '') + ' (outdated)'; + }, }, menu: { text: '{{version|title}}', @@ -57,6 +61,10 @@ module.exports = { text: 'Development (master)', link: '/docs/master/', }, + { + text: 'Latest version', + link: '/docs/latest/', + }, { type: 'versions', text: '{{version}}{{tag|suffix}}',