mirror of
https://github.com/rehlds/rehlds.github.io.git
synced 2025-03-03 17:15:23 +03:00
Add PWA manifest
This commit is contained in:
parent
fc6399e59d
commit
e97f0aa9de
@ -158,6 +158,34 @@ const config: Config = {
|
||||
webvisor: true,
|
||||
},
|
||||
],
|
||||
[
|
||||
"@docusaurus/plugin-pwa",
|
||||
{
|
||||
debug: false,
|
||||
offlineModeActivationStrategies: [
|
||||
"appInstalled",
|
||||
"standalone",
|
||||
"queryString",
|
||||
],
|
||||
pwaHead: [
|
||||
{
|
||||
tagName: "link",
|
||||
rel: "icon",
|
||||
href: "/img/rehlds.png",
|
||||
},
|
||||
{
|
||||
tagName: "link",
|
||||
rel: "manifest",
|
||||
href: "/manifest.json",
|
||||
},
|
||||
{
|
||||
tagName: "meta",
|
||||
name: "theme-color",
|
||||
content: "rgb(255, 100, 5)",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
|
||||
|
1506
package-lock.json
generated
1506
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^3.6.1",
|
||||
"@docusaurus/plugin-pwa": "^3.6.1",
|
||||
"@docusaurus/preset-classic": "^3.6.1",
|
||||
"@mdx-js/react": "^3.0.0",
|
||||
"clsx": "^2.0.0",
|
||||
|
30
static/manifest.json
Normal file
30
static/manifest.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "ReHLDS Documentation",
|
||||
"short_name": "ReHLDS",
|
||||
"description": "Refined HLDS with fixes and new features for better performance.",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#ffffff",
|
||||
"theme_color": "rgb(255, 100, 5)",
|
||||
"orientation": "portrait",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/img/logo.svg",
|
||||
"type": "image/svg+xml",
|
||||
"sizes": "512x512"
|
||||
},
|
||||
{
|
||||
"src": "/img/rehlds.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"scope": "/",
|
||||
"lang": "en",
|
||||
"categories": [
|
||||
"documentation",
|
||||
"software",
|
||||
"open-source"
|
||||
],
|
||||
"prefer_related_applications": false
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user