Skip to content

Commit b715e52

Browse files
committed
docs: change next to latest
1 parent b53958c commit b715e52

File tree

5 files changed

+32
-14
lines changed

5 files changed

+32
-14
lines changed

.github/workflows/release-docs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- next
8+
- vue2
89

910
jobs:
1011
build-and-deploy:
@@ -28,11 +29,22 @@ jobs:
2829
with:
2930
branch: gh-pages
3031
folder: docs/src/.vuepress/dist
32+
clean-exclude: |
33+
next
34+
vue2
3135
3236
- name: Deploy next
3337
if: github.ref == 'refs/heads/next'
3438
uses: JamesIves/github-pages-deploy-action@4.1.7
3539
with:
3640
branch: gh-pages
3741
folder: docs/src/.vuepress/dist
38-
target-folder: ./next
42+
target-folder: ./next
43+
44+
- name: Deploy vue2
45+
if: github.ref == 'refs/heads/vue2'
46+
uses: JamesIves/github-pages-deploy-action@4.1.7
47+
with:
48+
branch: gh-pages
49+
folder: docs/src/.vuepress/dist
50+
target-folder: ./vue2

.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"branches": [
33
{ "name": "main" },
4+
{ "name": "vue2" },
45
{ "name": "next", "channel": "next" }
56
],
67
"plugins": [

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
# Getting Started
88

9-
Vue v2: [documentation](https://abichinger.github.io/vue-js-cron)
9+
Vue v3: [documentation](https://abichinger.github.io/vue-js-cron)
1010

11-
Vue v3: [documentation](https://abichinger.github.io/vue-js-cron/next)
11+
Vue v2: [documentation](https://abichinger.github.io/vue-js-cron/vue2)
1212

1313
# Packages
1414

@@ -18,6 +18,7 @@ This monorepo includes the following packages:
1818
- light - a lightweight cron editor without external dependencies
1919
- vuetify - Vuetify component to edit cron expressions.
2020
- element-plus - Element Plus component
21+
- ant - Ant Design Vue component
2122
- docs - Vue.js Cron documentation powered by [VuePress](https://vuepress.vuejs.org/)
2223

2324
# Development

docs/src/.vuepress/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
* Ref: https://v2.vuepress.vuejs.org/guide/configuration.html#config-file
1212
*/
1313

14-
base: '/vue-js-cron/next/',
14+
base: '/vue-js-cron/',
1515

1616
title: 'Vue-js-cron Docs',
1717

@@ -32,6 +32,10 @@ module.exports = {
3232
editLinkText: '',
3333
lastUpdated: false,
3434
navbar: [
35+
{
36+
text: 'Vue v2',
37+
link: 'https://abichinger.github.io/vue-js-cron/vue2/'
38+
},
3539
{
3640
text: 'Demo',
3741
link: '/demo'

docs/src/guide/getting-started.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ If you would like to use a different UI framework, follow the quick start guide
1515
Open up a terminal and run the following command:
1616

1717
```bash
18-
yarn add @vue-js-cron/light@next
18+
yarn add @vue-js-cron/light@latest
1919
```
2020
or
2121

2222
```bash
23-
npm install @vue-js-cron/light@next
23+
npm install @vue-js-cron/light@latest
2424
```
2525

2626
Then you need to register `vue-js-cron/light` with `app.use()`
@@ -58,12 +58,12 @@ Now you can use the `cron-light` component.
5858
Open up a terminal and run the following command:
5959

6060
```bash
61-
yarn add @vue-js-cron/vuetify@next
61+
yarn add @vue-js-cron/vuetify@latest
6262
```
6363
or
6464

6565
```bash
66-
npm install @vue-js-cron/vuetify@next
66+
npm install @vue-js-cron/vuetify@latest
6767
```
6868

6969
Then you need to register `vue-js-cron/vuetify` with `app.use()`
@@ -102,12 +102,12 @@ Now you can use the `cron-vuetify` component.
102102
Open up a terminal and run the following command:
103103

104104
```bash
105-
yarn add @vue-js-cron/element-plus@next
105+
yarn add @vue-js-cron/element-plus@latest
106106
```
107107
or
108108

109109
```bash
110-
npm install @vue-js-cron/element-plus@next
110+
npm install @vue-js-cron/element-plus@latest
111111
```
112112

113113
Then you need to register `@vue-js-cron/element-plus` with `app.use()`
@@ -145,12 +145,12 @@ Now you can use the `cron-element-plus` component.
145145
Open up a terminal and run the following command:
146146

147147
```bash
148-
yarn add @vue-js-cron/ant@next
148+
yarn add @vue-js-cron/ant@latest
149149
```
150150
or
151151

152152
```bash
153-
npm install @vue-js-cron/ant@next
153+
npm install @vue-js-cron/ant@latest
154154
```
155155

156156
Then you need to register `@vue-js-cron/ant` with `app.use()`
@@ -187,12 +187,12 @@ In this example [Vuetify](https://vuetifyjs.com/en/) will be used to render the
187187
First open up a terminal and run the following command:
188188

189189
```bash
190-
yarn add @vue-js-cron/core@next
190+
yarn add @vue-js-cron/core@latest
191191
```
192192
or
193193

194194
```bash
195-
npm install @vue-js-cron/core@next
195+
npm install @vue-js-cron/core@latest
196196
```
197197

198198
Then you need to register `vue-js-cron/core` with `Vue.app()`

0 commit comments

Comments
 (0)