Add PWA manifest
Some checks are pending
Deploy to GitHub Pages / Build Docusaurus (push) Waiting to run
Deploy to GitHub Pages / Deploy to GitHub Pages (push) Blocked by required conditions

This commit is contained in:
Sergey Shorokhov 2024-11-09 15:40:41 +03:00
parent fc6399e59d
commit e97f0aa9de
4 changed files with 1565 additions and 0 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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
View 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
}