From 09f9ed2e8ab0c5955144e05330ae7fdb3f3ed14c Mon Sep 17 00:00:00 2001 From: Aviv Ben Shahar Date: Fri, 7 Jun 2024 14:12:19 +0300 Subject: [PATCH] docs: add `npm` link --- docs/.vitepress/config.mts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index df48dc4..7410726 100755 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,6 +1,6 @@ import { defineConfig } from 'vitepress' // @ts-expect-error -import { description } from '../../package.json' +import { author, description, name } from '../../package.json' import { GOOGLE_ANALYTICS_ID, GOOGLE_ANALYTICS_SCRIPT } from './analytics/google-analytics.config' import { REPOSITORY_FULLNAME, getDocsBase, remoteDefaultBranch } from './constants/repository.mjs' import { NAVBAR } from './navbar.config.mjs' @@ -38,6 +38,7 @@ export default defineConfig({ socialLinks: [ // { icon: 'github', link: `https://github.com/${REPOSITORY_FULLNAME}#readme` }, + { icon: 'npm', link: `https://www.npmjs.com/package/${name}` }, ], search: { provider: 'local' }, editLink: { @@ -49,7 +50,7 @@ export default defineConfig({ }, footer: { message: 'Released under the MIT License', - copyright: 'Copyright © 2024-present Aviv Ben Shahar', + copyright: `Copyright © 2024-present ${author.name}`, }, }, })