Skip to content

Commit 4d3d12a

Browse files
authored
Release 1.4.2 (#15)
2 parents c6b7bb8 + c68b87c commit 4d3d12a

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

+1151
-9732
lines changed

.github/workflows/docs.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy Documentation site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: yarn
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v3
33+
- name: Install dependencies
34+
run: yarn install
35+
- name: Build with VitePress
36+
run: |
37+
yarn docs:build
38+
touch docs/.vitepress/dist/.nojekyll
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v2
41+
with:
42+
path: docs/.vitepress/dist
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
needs: build
49+
runs-on: ubuntu-latest
50+
name: Deploy
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v2

.github/workflows/release.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## v1.4.2
6+
7+
- Update deps
8+
- Migrate docs to vitepress
9+
510
## v1.4.1
611

712
- Update deps

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ A Nuxt module for cron jobs in your app.
1919
- 🕔️  Time zone support
2020
- 🪄️  TypeScript support
2121
-  Auto imports enabled
22+
-  Zero configuration to start
2223
- 📦  Extendable by [Nuxt modules](https://nuxt.com/modules)
2324

2425
## Installation
@@ -83,16 +84,9 @@ or use with params:
8384
// server/cron/job.ts
8485
import { defineCronHandler } from '#nuxt/cron'
8586

86-
export default defineCronHandler(
87-
'everySecond',
88-
() => {
89-
console.log('I run every seconds')
90-
},
91-
{
92-
runOnInit: true,
93-
timeZone: 'Africa/Abidjan'
94-
}
95-
)
87+
export default defineCronHandler('everySecond', () => {
88+
console.log('I run every seconds')
89+
}, { runOnInit: true })
9690
```
9791

9892
<!-- Badges -->

docs/.editorconfig

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/.eslintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
node_modules
2-
*.iml
3-
.idea
4-
*.log*
5-
.nuxt
6-
.vscode
7-
.DS_Store
8-
coverage
9-
dist
10-
sw.*
11-
.env
12-
.output
1+
.vitepress/cache
2+
.vitepress/dist

docs/.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<div class="sandbox" :style="{ height }">
3+
<iframe :src="src" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" />
4+
</div>
5+
</template>
6+
7+
<script lang="ts" setup>
8+
import { withDefaults } from 'vue'
9+
10+
withDefaults(defineProps<{ src: string, height: string }>(), {
11+
height: '700px',
12+
})
13+
</script>
14+
15+
<style scoped>
16+
.sandbox {
17+
overflow: hidden;
18+
width: 100%;
19+
background-color: var(--vp-c-default-soft);
20+
border: 1px solid var(--vp-input-border-color);
21+
border-radius: 20px;
22+
margin: 16px 0;
23+
}
24+
.sandbox iframe {
25+
overflow: hidden;
26+
width: 100%;
27+
height: 100%;
28+
border: 0;
29+
}
30+
</style>

0 commit comments

Comments
 (0)