Skip to content

Commit

Permalink
Docs: Update version menu title (#8887)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Apr 12, 2021
1 parent 5a27de3 commit 95faa4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/.vuepress/config.js
@@ -1,6 +1,6 @@
const path = require('path');
const docsVersion = "VERSION";
const base = process.env.NODE_ENV === "development" ? '' : `/docs/${docsVersion}/`;
const base = process.env.NODE_ENV === "development" ? '/docs/master/' : `/docs/${docsVersion}/`;

module.exports = {
title: 'Chart.js',
Expand Down Expand Up @@ -43,9 +43,11 @@ module.exports = {
],
['@simonbrunel/vuepress-plugin-versions', {
filters: {
suffix: (v) => v ? ` (${v})` : ''
suffix: (tag) => tag ? ` (${tag})` : '',
title: (v, vars) => window.location.href.includes('master') ? 'Development (master)' : v + (vars.tag ? ` (${tag})` : ''),
},
menu: {
text: '{{version|title}}',
items: [
{
text: 'Documentation',
Expand Down

0 comments on commit 95faa4f

Please sign in to comment.