Skip to content

Commit 5a0b740

Browse files
authored
feat: introducing bumpp to help releasing (#313)
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
1 parent 5787edd commit 5a0b740

7 files changed

Lines changed: 198 additions & 62 deletions

File tree

bump.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from 'bumpp'
2+
3+
export default defineConfig({
4+
recursive: true,
5+
commit: 'release: v%s',
6+
})

docs/pages/en/index.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ features:
3434
details: From the perspective of documentation engineering, solve and simplify some UX/DX problems, aiming to let creators focus on writing documents, notes, making cards and GTD!
3535
---
3636

37+
<script setup>
38+
import biDirectionalLinksPackageJSON from '~/packages/markdown-it-bi-directional-links/package.json'
39+
import elementTransform from '~/packages/markdown-it-element-transform/package.json'
40+
import unlazyImg from '~/packages/markdown-it-unlazy-img/package.json'
41+
import enhancedReadabilities from '~/packages/vitepress-plugin-enhanced-readabilities/package.json'
42+
import inlineLinkPreview from '~/packages/vitepress-plugin-inline-link-preview/package.json'
43+
import highlightTargetedHeading from '~/packages/vitepress-plugin-highlight-targeted-heading/package.json'
44+
import gitChangelog from '~/packages/vitepress-plugin-git-changelog/package.json'
45+
import enhancedMark from '~/packages/vitepress-plugin-enhanced-mark/package.json'
46+
import thumbnailHash from '~/packages/vitepress-plugin-thumbnail-hash/package.json'
47+
</script>
48+
3749
<HomeContent>
3850

3951
## Integrations List
@@ -43,43 +55,43 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
4355
<div class="grid gap-5 lg:grid-cols-2 max-w-172 lg:max-w-none mx-auto">
4456
<IntegrationCard type="markdown-it" title="Bi-Directional Links" package="markdown-it-bi-directional-links">
4557
<template v-slot:badge>
46-
<Badge type="tip" text="v2.5.0" />
58+
<Badge type="tip" :text="`v${biDirectionalLinksPackageJSON.version}`" />
4759
</template>
4860
</IntegrationCard>
4961

5062
<IntegrationCard type="markdown-it" title="Elements Transformation" package="markdown-it-element-transform">
5163
<template v-slot:badge>
52-
<Badge type="tip" text="v2.5.0" />
64+
<Badge type="tip" :text="`v${elementTransform.version}`" />
5365
</template>
5466
</IntegrationCard>
5567

5668
<IntegrationCard type="markdown-it" title="Lazy loading blurred thumbnails" package="markdown-it-unlazy-img">
5769
<template v-slot:badge>
58-
<Badge type="tip" text="v2.5.0" />
70+
<Badge type="tip" :text="`v${unlazyImg.version}`" />
5971
</template>
6072
</IntegrationCard>
6173

6274
<IntegrationCard type="vitepress" title="Enhanced Readabilities" package="vitepress-plugin-enhanced-readabilities">
6375
<template v-slot:badge>
64-
<Badge type="tip" text="v2.5.0" />
76+
<Badge type="tip" :text="`v${enhancedReadabilities.version}`" />
6577
</template>
6678
</IntegrationCard>
6779

6880
<IntegrationCard type="vitepress" title="Inline Link Previewing" package="vitepress-plugin-inline-link-preview">
6981
<template v-slot:badge>
70-
<Badge type="tip" text="v2.5.0" />
82+
<Badge type="tip" :text="`v${inlineLinkPreview.version}`" />
7183
</template>
7284
</IntegrationCard>
7385

7486
<IntegrationCard type="vitepress" title="Blinking highlight targeted heading" package="vitepress-plugin-highlight-targeted-heading">
7587
<template v-slot:badge>
76-
<Badge type="tip" text="v2.5.0" />
88+
<Badge type="tip" :text="`v${highlightTargetedHeading.version}`" />
7789
</template>
7890
</IntegrationCard>
7991

8092
<IntegrationCard type="vitepress" title="Git-based page histories" package="vitepress-plugin-git-changelog">
8193
<template v-slot:badge>
82-
<Badge type="tip" text="v2.5.0" />
94+
<Badge type="tip" :text="`v${gitChangelog.version}`" />
8395
</template>
8496
</IntegrationCard>
8597

@@ -109,13 +121,13 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
109121
Enhanced <code>&lt;mark&gt;</code> elements
110122
</template>
111123
<template v-slot:badge>
112-
<Badge type="tip" text="v2.5.0" />
124+
<Badge type="tip" :text="`v${enhancedMark.version}`" />
113125
</template>
114126
</IntegrationCard>
115127

116128
<IntegrationCard type="vitepress" title="Thumbnail hashing for images" package="vitepress-plugin-thumbnail-hash">
117129
<template v-slot:badge>
118-
<Badge type="tip" text="v2.5.0" />
130+
<Badge type="tip" :text="`v${thumbnailHash.version}`" />
119131
</template>
120132
</IntegrationCard>
121133

docs/pages/en/integrations/index.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<script setup>
2+
import biDirectionalLinksPackageJSON from '~/packages/markdown-it-bi-directional-links/package.json'
3+
import elementTransform from '~/packages/markdown-it-element-transform/package.json'
4+
import unlazyImg from '~/packages/markdown-it-unlazy-img/package.json'
5+
import enhancedReadabilities from '~/packages/vitepress-plugin-enhanced-readabilities/package.json'
6+
import inlineLinkPreview from '~/packages/vitepress-plugin-inline-link-preview/package.json'
7+
import highlightTargetedHeading from '~/packages/vitepress-plugin-highlight-targeted-heading/package.json'
8+
import gitChangelog from '~/packages/vitepress-plugin-git-changelog/package.json'
9+
import enhancedMark from '~/packages/vitepress-plugin-enhanced-mark/package.json'
10+
import thumbnailHash from '~/packages/vitepress-plugin-thumbnail-hash/package.json'
11+
</script>
12+
113
# Integrations
214

315
Welcome to the integrations section of the documentation!
@@ -8,55 +20,55 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
820

921
<IntegrationCard type="markdown-it" title="Bi-Directional Links" package="markdown-it-bi-directional-links">
1022
<template v-slot:badge>
11-
<Badge type="tip" text="v2.5.0" />
23+
<Badge type="tip" :text="`v${biDirectionalLinksPackageJSON.version}`" />
1224
</template>
1325
</IntegrationCard>
1426

1527
<br />
1628

1729
<IntegrationCard type="markdown-it" title="Elements Transformation" package="markdown-it-element-transform">
1830
<template v-slot:badge>
19-
<Badge type="tip" text="v2.5.0" />
31+
<Badge type="tip" :text="`v${elementTransform.version}`" />
2032
</template>
2133
</IntegrationCard>
2234

2335
<br />
2436

2537
<IntegrationCard type="markdown-it" title="Lazy loading blurred thumbnails" package="markdown-it-unlazy-img">
2638
<template v-slot:badge>
27-
<Badge type="tip" text="v2.5.0" />
39+
<Badge type="tip" :text="`v${unlazyImg.version}`" />
2840
</template>
2941
</IntegrationCard>
3042

3143
<br />
3244

3345
<IntegrationCard type="vitepress" title="Enhanced Readabilities" package="vitepress-plugin-enhanced-readabilities">
3446
<template v-slot:badge>
35-
<Badge type="tip" text="v2.5.0" />
47+
<Badge type="tip" :text="`v${enhancedReadabilities.version}`" />
3648
</template>
3749
</IntegrationCard>
3850

3951
<br />
4052

4153
<IntegrationCard type="vitepress" title="Inline Link Previewing" package="vitepress-plugin-inline-link-preview">
4254
<template v-slot:badge>
43-
<Badge type="tip" text="v2.5.0" />
55+
<Badge type="tip" :text="`v${inlineLinkPreview.version}`" />
4456
</template>
4557
</IntegrationCard>
4658

4759
<br />
4860

4961
<IntegrationCard type="vitepress" title="Blinking highlight targeted heading" package="vitepress-plugin-highlight-targeted-heading">
5062
<template v-slot:badge>
51-
<Badge type="tip" text="v2.5.0" />
63+
<Badge type="tip" :text="`v${highlightTargetedHeading.version}`" />
5264
</template>
5365
</IntegrationCard>
5466

5567
<br />
5668

5769
<IntegrationCard type="vitepress" title="Git-based page histories" package="vitepress-plugin-git-changelog">
5870
<template v-slot:badge>
59-
<Badge type="tip" text="v2.5.0" />
71+
<Badge type="tip" :text="`v${gitChangelog.version}`" />
6072
</template>
6173
</IntegrationCard>
6274

@@ -94,15 +106,15 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
94106
Enhanced <code>&lt;mark&gt;</code> elements
95107
</template>
96108
<template v-slot:badge>
97-
<Badge type="tip" text="v2.5.0" />
109+
<Badge type="tip" :text="`v${enhancedMark.version}`" />
98110
</template>
99111
</IntegrationCard>
100112

101113
<br />
102114

103115
<IntegrationCard type="vitepress" title="Thumbnail hashing for images" package="vitepress-plugin-thumbnail-hash">
104116
<template v-slot:badge>
105-
<Badge type="tip" text="v2.5.0" />
117+
<Badge type="tip" :text="`v${thumbnailHash.version}`" />
106118
</template>
107119
</IntegrationCard>
108120

docs/pages/zh-CN/index.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ features:
3434
details: 从文档工程的角度出发,解决和简化若干 UX/DX 的问题和困境,旨在让创作者更好地专注于撰写文档、笔记、制作卡片以及 GTD。
3535
---
3636

37+
<script setup>
38+
import biDirectionalLinksPackageJSON from '~/packages/markdown-it-bi-directional-links/package.json'
39+
import elementTransform from '~/packages/markdown-it-element-transform/package.json'
40+
import unlazyImg from '~/packages/markdown-it-unlazy-img/package.json'
41+
import enhancedReadabilities from '~/packages/vitepress-plugin-enhanced-readabilities/package.json'
42+
import inlineLinkPreview from '~/packages/vitepress-plugin-inline-link-preview/package.json'
43+
import highlightTargetedHeading from '~/packages/vitepress-plugin-highlight-targeted-heading/package.json'
44+
import gitChangelog from '~/packages/vitepress-plugin-git-changelog/package.json'
45+
import enhancedMark from '~/packages/vitepress-plugin-enhanced-mark/package.json'
46+
import thumbnailHash from '~/packages/vitepress-plugin-thumbnail-hash/package.json'
47+
</script>
48+
3749
<HomeContent>
3850

3951
## 集成列表
@@ -43,43 +55,43 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
4355
<div class="grid gap-5 lg:grid-cols-2 max-w-172 lg:max-w-none mx-auto">
4456
<IntegrationCard type="markdown-it" title="双向链接" package="markdown-it-bi-directional-links">
4557
<template v-slot:badge>
46-
<Badge type="tip" text="v2.5.0" />
58+
<Badge type="tip" :text="`v${biDirectionalLinksPackageJSON.version}`" />
4759
</template>
4860
</IntegrationCard>
4961

5062
<IntegrationCard type="markdown-it" title="元素转换" package="markdown-it-element-transform">
5163
<template v-slot:badge>
52-
<Badge type="tip" text="v2.5.0" />
64+
<Badge type="tip" :text="`v${elementTransform.version}`" />
5365
</template>
5466
</IntegrationCard>
5567

5668
<IntegrationCard type="markdown-it" title="懒加载模糊缩略图" package="markdown-it-unlazy-img">
5769
<template v-slot:badge>
58-
<Badge type="tip" text="v2.5.0" />
70+
<Badge type="tip" :text="`v${unlazyImg.version}`" />
5971
</template>
6072
</IntegrationCard>
6173

6274
<IntegrationCard type="vitepress" title="阅读增强" package="vitepress-plugin-enhanced-readabilities">
6375
<template v-slot:badge>
64-
<Badge type="tip" text="v2.5.0" />
76+
<Badge type="tip" :text="`v${enhancedReadabilities.version}`" />
6577
</template>
6678
</IntegrationCard>
6779

6880
<IntegrationCard type="vitepress" title="行内链接预览" package="vitepress-plugin-inline-link-preview">
6981
<template v-slot:badge>
70-
<Badge type="tip" text="v2.5.0" />
82+
<Badge type="tip" :text="`v${inlineLinkPreview.version}`" />
7183
</template>
7284
</IntegrationCard>
7385

7486
<IntegrationCard type="vitepress" title="闪烁高亮当前的目标标题" package="vitepress-plugin-highlight-targeted-heading">
7587
<template v-slot:badge>
76-
<Badge type="tip" text="v2.5.0" />
88+
<Badge type="tip" :text="`v${highlightTargetedHeading.version}`" />
7789
</template>
7890
</IntegrationCard>
7991

8092
<IntegrationCard type="vitepress" title="基于 Git 的页面历史" package="vitepress-plugin-git-changelog">
8193
<template v-slot:badge>
82-
<Badge type="tip" text="v2.5.0" />
94+
<Badge type="tip" :text="`v${gitChangelog.version}`" />
8395
</template>
8496
</IntegrationCard>
8597

@@ -109,13 +121,13 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
109121
<code>&lt;mark&gt;</code> 元素增强
110122
</template>
111123
<template v-slot:badge>
112-
<Badge type="tip" text="v2.5.0" />
124+
<Badge type="tip" :text="`v${enhancedMark.version}`" />
113125
</template>
114126
</IntegrationCard>
115127

116128
<IntegrationCard type="vitepress" title="缩略图模糊哈希生成" package="vitepress-plugin-thumbnail-hash">
117129
<template v-slot:badge>
118-
<Badge type="tip" text="v2.5.0" />
130+
<Badge type="tip" :text="`v${thumbnailHash.version}`" />
119131
</template>
120132
</IntegrationCard>
121133

docs/pages/zh-CN/integrations/index.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<script setup>
2+
import biDirectionalLinksPackageJSON from '~/packages/markdown-it-bi-directional-links/package.json'
3+
import elementTransform from '~/packages/markdown-it-element-transform/package.json'
4+
import unlazyImg from '~/packages/markdown-it-unlazy-img/package.json'
5+
import enhancedReadabilities from '~/packages/vitepress-plugin-enhanced-readabilities/package.json'
6+
import inlineLinkPreview from '~/packages/vitepress-plugin-inline-link-preview/package.json'
7+
import highlightTargetedHeading from '~/packages/vitepress-plugin-highlight-targeted-heading/package.json'
8+
import gitChangelog from '~/packages/vitepress-plugin-git-changelog/package.json'
9+
import enhancedMark from '~/packages/vitepress-plugin-enhanced-mark/package.json'
10+
import thumbnailHash from '~/packages/vitepress-plugin-thumbnail-hash/package.json'
11+
</script>
12+
113
# 集成
214

315
欢迎来到集成页面!
@@ -8,55 +20,55 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
820

921
<IntegrationCard type="markdown-it" title="双向链接" package="markdown-it-bi-directional-links">
1022
<template v-slot:badge>
11-
<Badge type="tip" text="v2.5.0" />
23+
<Badge type="tip" :text="`v${biDirectionalLinksPackageJSON.version}`" />
1224
</template>
1325
</IntegrationCard>
1426

1527
<br />
1628

1729
<IntegrationCard type="markdown-it" title="元素转换" package="markdown-it-element-transform">
1830
<template v-slot:badge>
19-
<Badge type="tip" text="v2.5.0" />
31+
<Badge type="tip" :text="`v${elementTransform.version}`" />
2032
</template>
2133
</IntegrationCard>
2234

2335
<br />
2436

2537
<IntegrationCard type="markdown-it" title="懒加载模糊缩略图" package="markdown-it-unlazy-img">
2638
<template v-slot:badge>
27-
<Badge type="tip" text="v2.5.0" />
39+
<Badge type="tip" :text="`v${unlazyImg.version}`" />
2840
</template>
2941
</IntegrationCard>
3042

3143
<br />
3244

3345
<IntegrationCard type="vitepress" title="阅读增强" package="vitepress-plugin-enhanced-readabilities">
3446
<template v-slot:badge>
35-
<Badge type="tip" text="v2.5.0" />
47+
<Badge type="tip" :text="`v${enhancedReadabilities.version}`" />
3648
</template>
3749
</IntegrationCard>
3850

3951
<br />
4052

4153
<IntegrationCard type="vitepress" title="行内链接预览" package="vitepress-plugin-inline-link-preview">
4254
<template v-slot:badge>
43-
<Badge type="tip" text="v2.5.0" />
55+
<Badge type="tip" :text="`v${inlineLinkPreview.version}`" />
4456
</template>
4557
</IntegrationCard>
4658

4759
<br />
4860

4961
<IntegrationCard type="vitepress" title="闪烁高亮当前的目标标题" package="vitepress-plugin-highlight-targeted-heading">
5062
<template v-slot:badge>
51-
<Badge type="tip" text="v2.5.0" />
63+
<Badge type="tip" :text="`v${highlightTargetedHeading.version}`" />
5264
</template>
5365
</IntegrationCard>
5466

5567
<br />
5668

5769
<IntegrationCard type="vitepress" title="基于 Git 的页面历史" package="vitepress-plugin-git-changelog">
5870
<template v-slot:badge>
59-
<Badge type="tip" text="v2.5.0" />
71+
<Badge type="tip" :text="`v${gitChangelog.version}`" />
6072
</template>
6173
</IntegrationCard>
6274

@@ -94,15 +106,15 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
94106
<code>&lt;mark&gt;</code> 元素增强
95107
</template>
96108
<template v-slot:badge>
97-
<Badge type="tip" text="v2.5.0" />
109+
<Badge type="tip" :text="`v${enhancedMark.version}`" />
98110
</template>
99111
</IntegrationCard>
100112

101113
<br />
102114

103115
<IntegrationCard type="vitepress" title="缩略图模糊哈希生成" package="vitepress-plugin-thumbnail-hash">
104116
<template v-slot:badge>
105-
<Badge type="tip" text="v2.5.0" />
117+
<Badge type="tip" :text="`v${thumbnailHash.version}`" />
106118
</template>
107119
</IntegrationCard>
108120

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@vitest/coverage-v8": "^1.6.0",
4949
"@vitest/ui": "^1.6.0",
5050
"@vueuse/core": "^10.11.0",
51+
"bumpp": "^9.5.2",
5152
"concurrently": "^8.2.2",
5253
"eslint": "^8.57.0",
5354
"less": "^4.2.0",

0 commit comments

Comments
 (0)