Skip to content

Commit 12e26ce

Browse files
committed
docs: split getting started
1 parent ed1fc05 commit 12e26ce

31 files changed

+577
-311
lines changed

ant/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
<p align="center">
88
<a href="https://www.npmjs.com/package/@vue-js-cron/core">Core</a> |
99
<a href="https://www.npmjs.com/package/@vue-js-cron/light">Light</a> |
10-
<a href="https://www.npmjs.com/package/@vue-js-cron/vuetify">Vuetify</a> |
11-
<a href="https://www.npmjs.com/package/@vue-js-cron/element-plus">Element Plus</a> |
1210
<a href="https://www.npmjs.com/package/@vue-js-cron/ant">Ant</a> |
13-
<a href="https://www.npmjs.com/package/@vue-js-cron/quasar">Quasar</a>
11+
<a href="https://www.npmjs.com/package/@vue-js-cron/element-plus">Element Plus</a> |
12+
<a href="https://www.npmjs.com/package/@vue-js-cron/quasar">Quasar</a> |
13+
<a href="https://www.npmjs.com/package/@vue-js-cron/vuetify">Vuetify</a>
1414
</p>
1515

1616
## Usage - Ant
1717

1818
[Demo](https://abichinger.github.io/vue-js-cron/demo.html)
1919

20-
[Get Started](https://abichinger.github.io/vue-js-cron/guide/getting-started.html#ant)
20+
[Get Started](https://abichinger.github.io/vue-js-cron/guide/getting-started-ant)
2121

2222
[API - cron-ant](https://abichinger.github.io/vue-js-cron/api/ant.html)
2323

core/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
<p align="center">
88
<a href="https://www.npmjs.com/package/@vue-js-cron/core">Core</a> |
99
<a href="https://www.npmjs.com/package/@vue-js-cron/light">Light</a> |
10-
<a href="https://www.npmjs.com/package/@vue-js-cron/vuetify">Vuetify</a> |
11-
<a href="https://www.npmjs.com/package/@vue-js-cron/element-plus">Element Plus</a> |
1210
<a href="https://www.npmjs.com/package/@vue-js-cron/ant">Ant</a> |
13-
<a href="https://www.npmjs.com/package/@vue-js-cron/quasar">Quasar</a>
11+
<a href="https://www.npmjs.com/package/@vue-js-cron/element-plus">Element Plus</a> |
12+
<a href="https://www.npmjs.com/package/@vue-js-cron/quasar">Quasar</a> |
13+
<a href="https://www.npmjs.com/package/@vue-js-cron/vuetify">Vuetify</a>
1414
</p>
1515

1616
## Usage - Core
1717

1818
[Demo](https://abichinger.github.io/vue-js-cron/demo.html)
1919

20-
[Get Started](https://abichinger.github.io/vue-js-cron/guide/getting-started.html#renderless)
20+
[Get Started](https://abichinger.github.io/vue-js-cron/guide/getting-started-core)
2121

2222
[API - cron-core](https://abichinger.github.io/vue-js-cron/api/core.html)
2323

docs/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@
1212
"scripts": {
1313
"dev": "vuepress dev src",
1414
"build": "vuepress build src",
15-
"clean": "git clean -xf src/.vuepress/dist src/.vuepress/.temp src/.vuepress/.cache"
15+
"clean": "git clean -xf src/.vuepress/dist src/.vuepress/.temp src/.vuepress/.cache",
16+
"generate": "cron-cli guide src/guide"
1617
},
1718
"license": "MIT",
1819
"devDependencies": {
19-
"@vue-js-cron/ant": "link:../ant",
20-
"@vue-js-cron/core": "link:../core",
21-
"@vue-js-cron/element-plus": "link:../element-plus",
22-
"@vue-js-cron/light": "link:../light",
23-
"@vue-js-cron/vuetify": "link:../vuetify",
20+
"@vue-js-cron/ant": "file:../ant",
21+
"@vue-js-cron/core": "file:../core",
22+
"@vue-js-cron/element-plus": "file:../element-plus",
23+
"@vue-js-cron/light": "file:../light",
24+
"@vue-js-cron/vuetify": "file:../vuetify",
2425
"@vuepress/plugin-google-analytics": "2.0.0-beta.60",
2526
"@vuepress/plugin-register-components": "2.0.0-beta.60",
2627
"vuepress": "2.0.0-beta.60"
28+
},
29+
"dependencies": {
30+
"@vue-js-cron/generated": "file:../generated"
2731
}
2832
}

docs/src/.vuepress/config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default defineUserConfig({
4242
},
4343
{
4444
text: 'Guide',
45-
link: '/guide/getting-started'
45+
link: '/guide/getting-started-light'
4646
},
4747
{
4848
text: 'API',
@@ -59,7 +59,12 @@ export default defineUserConfig({
5959
title: 'Guide',
6060
collapsable: false,
6161
children: [
62-
'getting-started',
62+
'getting-started-core',
63+
'getting-started-light',
64+
'getting-started-ant',
65+
'getting-started-element-plus',
66+
'getting-started-quasar',
67+
'getting-started-vuetify',
6368
'custom-periods',
6469
'custom-fields'
6570
]

docs/src/guide/getting-started-ant.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!-- Generated file -->
2+
# Getting Started - Ant
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- [cron-core](./getting-started-core) - renderless cron editor
6+
- [cron-light](./getting-started-light) - lightweight cron editor without external dependencies
7+
- cron-ant - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- [cron-element-plus](./getting-started-element-plus) - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- [cron-quasar](./getting-started-quasar) - cron editor for [Quasar](https://quasar.dev/)
10+
- [cron-vuetify](./getting-started-vuetify) - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
## Requirements
12+
13+
Make sure to install and setup all requirements.
14+
- [Ant Design Vue](https://www.antdv.com/components/overview/)
15+
16+
## Installation
17+
18+
Open up a terminal and run the following command:
19+
20+
```bash
21+
yarn add @vue-js-cron/ant
22+
```
23+
or
24+
25+
```bash
26+
npm install @vue-js-cron/ant
27+
```
28+
29+
Then you need to register the component
30+
31+
```js
32+
import '@vue-js-cron/ant/dist/ant.css'
33+
// registers the component globally
34+
// registered name: CronAnt
35+
import CronAntPlugin from '@vue-js-cron/ant'
36+
app.use(CronAntPlugin)
37+
38+
// alternatively you can also register the component yourself
39+
// https://vuejs.org/guide/components/registration.html
40+
import { CronAnt } from '@vue-js-cron/ant'
41+
app.component('CronAnt', CronAnt)
42+
```
43+
44+
Done! 🚀
45+
46+
<br />
47+
48+
## Example
49+
50+
@[code](../.vuepress/components/get-started-ant.vue)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!-- Generated file -->
2+
# Getting Started - Core
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- cron-core - renderless cron editor
6+
- [cron-light](./getting-started-light) - lightweight cron editor without external dependencies
7+
- [cron-ant](./getting-started-ant) - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- [cron-element-plus](./getting-started-element-plus) - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- [cron-quasar](./getting-started-quasar) - cron editor for [Quasar](https://quasar.dev/)
10+
- [cron-vuetify](./getting-started-vuetify) - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
12+
## Installation
13+
14+
Open up a terminal and run the following command:
15+
16+
```bash
17+
yarn add @vue-js-cron/core
18+
```
19+
or
20+
21+
```bash
22+
npm install @vue-js-cron/core
23+
```
24+
25+
Then you need to register the component
26+
27+
```js
28+
// registers the component globally
29+
// registered name: CronCore
30+
import CronCorePlugin from '@vue-js-cron/core'
31+
app.use(CronCorePlugin)
32+
33+
// alternatively you can also register the component yourself
34+
// https://vuejs.org/guide/components/registration.html
35+
import { CronCore } from '@vue-js-cron/core'
36+
app.component('CronCore', CronCore)
37+
```
38+
39+
Done! 🚀
40+
41+
<br />
42+
43+
## Example
44+
45+
@[code](../.vuepress/components/get-started-renderless.vue)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!-- Generated file -->
2+
# Getting Started - Element Plus
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- [cron-core](./getting-started-core) - renderless cron editor
6+
- [cron-light](./getting-started-light) - lightweight cron editor without external dependencies
7+
- [cron-ant](./getting-started-ant) - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- cron-element-plus - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- [cron-quasar](./getting-started-quasar) - cron editor for [Quasar](https://quasar.dev/)
10+
- [cron-vuetify](./getting-started-vuetify) - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
## Requirements
12+
13+
Make sure to install and setup all requirements.
14+
- [Element Plus](https://element-plus.org/en-US/)
15+
16+
## Installation
17+
18+
Open up a terminal and run the following command:
19+
20+
```bash
21+
yarn add @vue-js-cron/element-plus
22+
```
23+
or
24+
25+
```bash
26+
npm install @vue-js-cron/element-plus
27+
```
28+
29+
Then you need to register the component
30+
31+
```js
32+
import '@vue-js-cron/element-plus/dist/element-plus.css'
33+
// registers the component globally
34+
// registered name: CronElementPlus
35+
import CronElementPlusPlugin from '@vue-js-cron/element-plus'
36+
app.use(CronElementPlusPlugin)
37+
38+
// alternatively you can also register the component yourself
39+
// https://vuejs.org/guide/components/registration.html
40+
import { CronElementPlus } from '@vue-js-cron/element-plus'
41+
app.component('CronElementPlus', CronElementPlus)
42+
```
43+
44+
Done! 🚀
45+
46+
<br />
47+
48+
## Example
49+
50+
@[code](../.vuepress/components/get-started-element.vue)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!-- Generated file -->
2+
# Getting Started - Light
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- [cron-core](./getting-started-core) - renderless cron editor
6+
- cron-light - lightweight cron editor without external dependencies
7+
- [cron-ant](./getting-started-ant) - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- [cron-element-plus](./getting-started-element-plus) - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- [cron-quasar](./getting-started-quasar) - cron editor for [Quasar](https://quasar.dev/)
10+
- [cron-vuetify](./getting-started-vuetify) - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
12+
## Installation
13+
14+
Open up a terminal and run the following command:
15+
16+
```bash
17+
yarn add @vue-js-cron/light
18+
```
19+
or
20+
21+
```bash
22+
npm install @vue-js-cron/light
23+
```
24+
25+
Then you need to register the component
26+
27+
```js
28+
import '@vue-js-cron/light/dist/light.css'
29+
// registers the component globally
30+
// registered name: CronLight
31+
import CronLightPlugin from '@vue-js-cron/light'
32+
app.use(CronLightPlugin)
33+
34+
// alternatively you can also register the component yourself
35+
// https://vuejs.org/guide/components/registration.html
36+
import { CronLight } from '@vue-js-cron/light'
37+
app.component('CronLight', CronLight)
38+
```
39+
40+
Done! 🚀
41+
42+
<br />
43+
44+
## Example
45+
46+
@[code](../.vuepress/components/get-started-light.vue)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!-- Generated file -->
2+
# Getting Started - Quasar
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- [cron-core](./getting-started-core) - renderless cron editor
6+
- [cron-light](./getting-started-light) - lightweight cron editor without external dependencies
7+
- [cron-ant](./getting-started-ant) - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- [cron-element-plus](./getting-started-element-plus) - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- cron-quasar - cron editor for [Quasar](https://quasar.dev/)
10+
- [cron-vuetify](./getting-started-vuetify) - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
## Requirements
12+
13+
Make sure to install and setup all requirements.
14+
- [Quasar](https://quasar.dev/start)
15+
16+
## Installation
17+
18+
Open up a terminal and run the following command:
19+
20+
```bash
21+
yarn add @vue-js-cron/quasar
22+
```
23+
or
24+
25+
```bash
26+
npm install @vue-js-cron/quasar
27+
```
28+
29+
Then you need to register the component
30+
31+
```js
32+
// registers the component globally
33+
// registered name: CronQuasar
34+
import CronQuasarPlugin from '@vue-js-cron/quasar'
35+
app.use(CronQuasarPlugin)
36+
37+
// alternatively you can also register the component yourself
38+
// https://vuejs.org/guide/components/registration.html
39+
import { CronQuasar } from '@vue-js-cron/quasar'
40+
app.component('CronQuasar', CronQuasar)
41+
```
42+
43+
Done! 🚀
44+
45+
<br />
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!-- Generated file -->
2+
# Getting Started - Vuetify
3+
4+
The fastest way to get started, is to use one of the prebuilt components.
5+
- [cron-core](./getting-started-core) - renderless cron editor
6+
- [cron-light](./getting-started-light) - lightweight cron editor without external dependencies
7+
- [cron-ant](./getting-started-ant) - cron editor for [Ant Design Vue](https://antdv.com/)
8+
- [cron-element-plus](./getting-started-element-plus) - cron editor for [Element Plus](https://element-plus.org/en-US/)
9+
- [cron-quasar](./getting-started-quasar) - cron editor for [Quasar](https://quasar.dev/)
10+
- cron-vuetify - cron editor for [Vuetify.js](https://next.vuetifyjs.com/en/)
11+
## Requirements
12+
13+
Make sure to install and setup all requirements.
14+
- [Vuetify](https://next.vuetifyjs.com/en/)
15+
16+
## Installation
17+
18+
Open up a terminal and run the following command:
19+
20+
```bash
21+
yarn add @vue-js-cron/vuetify
22+
```
23+
or
24+
25+
```bash
26+
npm install @vue-js-cron/vuetify
27+
```
28+
29+
Then you need to register the component
30+
31+
```js
32+
import '@vue-js-cron/vuetify/dist/vuetify.css'
33+
// registers the component globally
34+
// registered name: CronVuetify
35+
import CronVuetifyPlugin from '@vue-js-cron/vuetify'
36+
app.use(CronVuetifyPlugin)
37+
38+
// alternatively you can also register the component yourself
39+
// https://vuejs.org/guide/components/registration.html
40+
import { CronVuetify } from '@vue-js-cron/vuetify'
41+
app.component('CronVuetify', CronVuetify)
42+
```
43+
44+
Done! 🚀
45+
46+
<br />
47+
48+
## Example
49+
50+
@[code](../.vuepress/components/get-started-vuetify.vue)

0 commit comments

Comments
 (0)