Skip to content

Commit

Permalink
✨ feat(all): add docs pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
angelespejo committed Jan 13, 2025
1 parent 0428447 commit 8669a93
Show file tree
Hide file tree
Showing 12 changed files with 294 additions and 186 deletions.
2 changes: 1 addition & 1 deletion .dovenv/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const theme = pigeonposseMonorepoTheme( {

// Documetation in: "packages/docs/"
// remove for not make confusions
delete theme.custom.docs
delete theme.custom.predocs
// delete theme.custom.docs

export default defineConfig(
theme,
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ jobs:
run: |
export npm_config_build_from_source=false
pnpm install --no-frozen-lockfile --ignore-scripts
pnpm i sharp --platform=linux --arch=x64
- name: ⬇️🌐 Install Playwright Browsers
run: pnpx playwright install --with-deps
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
run: |
export npm_config_build_from_source=false
pnpm install --no-frozen-lockfile --ignore-scripts
pnpm i sharp --platform=linux --arch=x64
pnpm i -g wrangler
#########################################################################
Expand Down
Binary file added docs/public/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon.ico
Binary file not shown.
Binary file added docs/public/maskable-icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/pwa-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/pwa-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/pwa-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"++": "run() { pnpm -F $1 ${@:2}; }; run $@",
".": "dovenv",
"build": "pnpm build:core && pnpm build:lib && pnpm build:api && pnpm build:docs && pnpm build:web",
"build-assets": "dovenv docs generate-assets --flag=\"--preset minimal\" --flag=\"docs/public/logo.png\"",
"build:api": "pnpm + api build && pnpm + api-client build && pnpm + node-server build",
"build:bin": "binarium -c .dovenv/build.binarium.js",
"build:core": "pnpm + core build",
Expand All @@ -55,10 +56,10 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@dovenv/core": "1.2.0",
"@dovenv/theme-pigeonposse": "1.2.0",
"@dovenv/core": "1.2.2",
"@dovenv/theme-pigeonposse": "1.2.2",
"@playwright/test": "1.49.1",
"@types/node": "22.10.5",
"@types/node": "22.10.6",
"binarium": "2.0.5",
"tslib": "2.8.1",
"tsx": "4.19.2",
Expand Down
24 changes: 23 additions & 1 deletion packages/docs/dovenv.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,29 @@ export default defineConfig(
link : core.pkg.homepage,
},
],
// pwa : { pwaAssets: false },
pwa : { manifest : { icons : [
{
src : 'pwa-64x64.png',
sizes : '64x64',
type : 'image/png',
},
{
src : 'pwa-192x192.png',
sizes : '192x192',
type : 'image/png',
},
{
src : 'pwa-512x512.png',
sizes : '512x512',
type : 'image/png',
},
{
src : 'maskable-icon-512x512.png',
sizes : '512x512',
type : 'image/png',
purpose : 'maskable',
},
] } },
download : {
groups : { bin: 'Executables' },
items : {
Expand Down
445 changes: 266 additions & 179 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 8669a93

Please sign in to comment.