Skip to content

Commit

Permalink
fix(#322): Add manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade committed Jul 28, 2023
1 parent 5fcf101 commit a06d544
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/website/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Tybalt Developer Documentation",
"short_name": "Tybalt",
"start_url": "index.html",
"display": "standalone",
"background_color": "#010b14",
"theme_color": "#c792ea",
"orientation": "portrait-primary",
"icons": [
{
"src": "/img/favico.png",
"type": "image/png",
"sizes": "32x32"
}
]
}
25 changes: 25 additions & 0 deletions packages/website/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const cacheKey = 'tybalt-docs-site-v1';
const assets = [
'/',
'/index.html',
'/css/base.css',
'/css/index.css',
'/css/page.css',
'/img/favico.png',
'/js/tybalt-out.js',
'/pages/cli.html',
'/pages/core.html',
'/pages/eleventy-plugin.html',
'/pages/esbuild-plugin.html',
'/pages/eslint-plugin.html',
'/pages/test-utils.html',
'/pages/validator.html',
];

self.addEventListener('install', (installEvent) => {
installEvent.waitUntil(
caches.open(staticDevCoffee).then((cache) => {
cache.addAll(assets);
}),
);
});

0 comments on commit a06d544

Please sign in to comment.