Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
naimo84 committed Sep 7, 2023
1 parent f886f95 commit 02a351f
Show file tree
Hide file tree
Showing 6 changed files with 11,059 additions and 21,552 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules
*.env
.eslintcache
build
.DS_Store
.DS_Store
.cache
.temp
183 changes: 93 additions & 90 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,94 @@
module.exports = {

import { defaultTheme } from 'vuepress'
import { searchPlugin } from '@vuepress/plugin-search'
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
import { pwaPlugin } from '@vuepress/plugin-pwa'
export default {
theme: defaultTheme({

repo: 'naimo84/kalender-events',
docsDir: 'docs',
docsBranch: 'main',
editLinks: true,
sidebarDepth: 3,
navbar: [
{
text: 'Guide',
link: '/guide/'
},
{
text: 'Configuration',
link: '/config/'
}
],
sidebar: {
'/guide/': [
'/guide/',
{
text: 'Debug',
link: '/guide/debug',
collapsable: false
},
{
text: 'Node-RED',
link: '/guide/nodes',
collapsable: false,
children: [
'/guide/upcoming',
'/guide/sensors',
'/guide/trigger',
'/guide/experimental',
]
},
{
text: 'Examples',
collapsable: false,
link: '/guide/examples',
children: [
'/guide/nodered',
'/guide/examples_lib',
'/guide/examples_cli',
]
},
],
'/config/': [
'/config/',
{
text: 'Google',
link: '/config/google',
collapsable: false
},
{
text: 'iCloud secure',
link: '/config/icloudsecure',
collapsable: false
},
]

},
locales: {
'/': {
label: 'English',
selectText: 'Languages',
lastUpdated: 'Last Updated',


}
}

}),
plugins: [
searchPlugin({
// options
}),
pwaPlugin({
// options
}),
copyCodePlugin({
// your options
}),
],

locales: {
'/': {
lang: 'en-US',
Expand All @@ -10,99 +100,12 @@ module.exports = {
dest: './build',
head: [
['link', { rel: 'icon', href: '/favicon.png' }],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'theme-color', content: '#706B69' }],
['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }]
],
plugins: {
'@vuepress/pwa': {
serviceWorker: true,
updatePopup: {
'/': {
message: "New content is available.",
buttonText: "Refresh"
}
}
},
'vuepress-plugin-code-copy': {
color: '#F6EEE9',
backgroundColor: "#706B69",
},
'flowchart': true

},
theme: '@vuepress/theme-default',
themeConfig: {
repo: 'naimo84/kalender-events',
docsDir: 'docs',
docsBranch: 'main',
editLinks: true,
sidebarDepth: 3,
locales: {
'/': {
label: 'English',
selectText: 'Languages',
lastUpdated: 'Last Updated',
nav: [
{
text: 'Guide',
link: '/guide/'
},
{
text: 'Configuration',
link: '/config/'
}
],
sidebar: {
'/guide/': [
'/guide/',
{
title: 'Debug',
path: '/guide/debug',
collapsable: false
},
{
title: 'Node-RED',
path: '/guide/nodes',
collapsable: false,
children: [
'/guide/upcoming',
'/guide/sensors',
'/guide/trigger',
'/guide/experimental',
]
},
{
title: 'Examples',
collapsable: false,
path: '/guide/examples',
children: [
'/guide/nodered',
'/guide/examples_lib',
'/guide/examples_cli',
]
},
],
'/config/': [
'/config/',
{
title: 'Google',
path: '/config/google',
collapsable: false
},
{
title: 'iCloud secure',
path: '/config/icloudsecure',
collapsable: false
},
]

}
}
}
}
}
21 changes: 21 additions & 0 deletions docs/.vuepress/public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "kalender-events",
"short_name": "kalender-events",
"description": "This Node module gets the events from an ical-URL, a caldav-server or from iCloud.",
"start_url": "/index.html",
"display": "standalone",
"background_color": "#fff",
"theme_color": "#3eaf7c",
"icons": [
{
"src": "/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
7 changes: 5 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
home: true
heroImage: /favicon.png
actionText: Get Started →
actionLink: /guide/
actions:
- text: Get Started →
link: /guide/
type: primary

features:
- title: Feature Rich
details: Execute ical, icloud or caldav queries from within your own nodejs app or CLI
Expand Down
Loading

0 comments on commit 02a351f

Please sign in to comment.