Skip to content

Commit 859412f

Browse files
committed
Autoupdate version on title
1 parent 7361618 commit 859412f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/.vitepress/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
const package = require('../../package.json')
12
/** @typedef {import('vitepress').UserConfig} UserConfig */
23

34
/** @type {UserConfig} */
45
const config = {
5-
title: 'Vue Test Utils for Vue 3',
6-
description: 'The documentation for the official Vue Test Utils',
6+
title: `Vue Test Utils for Vue 3 (${package.version})`,
7+
description: 'The documentation for the official Vue Test Utils for Vue 3',
78
locales: {
89
'/': {
910
lang: 'en-US',
10-
title: 'Vue Test Utils (2.0.0-rc.0)'
11+
title: `Vue Test Utils for Vue 3 (${package.version})`
1112
}
1213
},
1314
head: [['link', { rel: 'icon', href: `/logo.png` }]],

0 commit comments

Comments
 (0)