Skip to content

Commit 9ee43b3

Browse files
committed
feat(docs): add package version
1 parent a577e62 commit 9ee43b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+66
-48
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script setup lang="ts">
2+
defineProps<{
3+
name: string
4+
}>()
5+
</script>
6+
7+
<template>
8+
<a
9+
ml2
10+
inline-block
11+
:href="`https://www.npmjs.com/package/${name}`"
12+
target="_blank"
13+
>
14+
<img alt="NPM Version" :src="`https://img.shields.io/npm/v/${name}`" />
15+
</a>
16+
</template>

docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
22
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
33
import Theme from 'vitepress/theme'
4+
import PackageVersion from '../components/PackageVersion.vue'
45
import StabilityLevel from '../components/StabilityLevel.vue'
56
import WarnBadge from '../components/WarnBadge.vue'
67
import Layout from './Layout.vue'
@@ -17,6 +18,7 @@ export default {
1718
enhanceApp({ app }: EnhanceAppContext) {
1819
app.component('WarnBadge', WarnBadge)
1920
app.component('StabilityLevel', StabilityLevel)
21+
app.component('PackageVersion', PackageVersion)
2022
app.use(NolebaseGitChangelogPlugin, {
2123
mapAuthors: [
2224
{

docs/features/better-define.md

Lines changed: 1 addition & 1 deletion

docs/features/boolean-prop.md

Lines changed: 1 addition & 1 deletion

docs/features/export-expose.md

Lines changed: 1 addition & 1 deletion

docs/features/export-props.md

Lines changed: 1 addition & 1 deletion

docs/features/export-render.md

Lines changed: 1 addition & 1 deletion

docs/features/hoist-static.md

Lines changed: 1 addition & 1 deletion

docs/features/jsx-directive.md

Lines changed: 1 addition & 1 deletion

docs/features/named-template.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)