Skip to content

Commit

Permalink
docs: add v3.x entry
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Feb 25, 2025
1 parent 474a055 commit c0b4450
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ labels:
- label: v3
sync: true
matcher:
baseBranch: main
- label: v4
sync: true
matcher:
baseBranch: v4
baseBranch: v3.x
8 changes: 8 additions & 0 deletions packages/docs/fluent-editor/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { fileURLToPath, URL } from 'node:url'
import { demoPreviewPlugin } from '@vitepress-code-preview/plugin'
import packageJson from '@opentiny/fluent-editor/package.json' with { type: 'json'}
import { defineConfig, loadEnv } from 'vitepress'
import { sidebar } from './sidebar'

const env = loadEnv(process.env.VITE_BASE_URL, fileURLToPath(new URL('../', import.meta.url)))
const currentVersion = packageJson.version

export default defineConfig({
title: 'TinyEditor',
Expand Down Expand Up @@ -32,6 +34,12 @@ export default defineConfig({
{ text: 'TinyVue', link: 'https://opentiny.design/tiny-vue/' },
],
},
{
text: currentVersion,
items: [
{ text: 'v3.x', link: 'https://tiny-editor-v3.github.io' },
],
},
{
component: 'TranslateComponent',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/fluent-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opentiny/fluent-editor",
"type": "module",
"version": "3.25.3",
"version": "4.0.0-alpha.0",
"description": "A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.",
"author": "OpenTiny Team",
"license": "MIT",
Expand Down

0 comments on commit c0b4450

Please sign in to comment.