Skip to content

Commit c5bf8cd

Browse files
authored
Merge pull request #690 from feathersjs-ecosystem/docs/navbar-add-version
docs: add version to navbar
2 parents 8f0ea84 + a71a857 commit c5bf8cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/.vitepress/config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig } from "vitepress";
22
import { name, description, ogUrl, ogImage } from "./meta";
3+
import { version } from '../../package.json'
34

45
export default defineConfig({
56
title: "feathers-hooks-common",
@@ -51,6 +52,21 @@ export default defineConfig({
5152
],
5253
},
5354
],
55+
nav: [
56+
{
57+
text: `v${version}`,
58+
items: [
59+
{
60+
text: 'Changelog',
61+
link: 'https://github.com/feathersjs-ecosystem/feathers-hooks-common/blob/master/CHANGELOG.md'
62+
},
63+
{
64+
text: 'Contributing',
65+
link: 'https://github.com/feathersjs-ecosystem/feathers-hooks-common/blob/master/.github/contributing.md'
66+
}
67+
]
68+
}
69+
],
5470
footer: {
5571
message: "Released under the MIT License.",
5672
copyright: "Copyright © 2016-present Feathers contributors",

0 commit comments

Comments
 (0)