-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue-3666] Add PWA to docusaurus #3693
Conversation
"theme_color": "#121D59", | ||
"background_color": "#FFFFFF", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to make use of the theme colours defined here
--ifm-color-primary: #121d59; |
--ifm-color-primary-lightest: #ffffff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be
"theme_color": var(--ifm-color-primary)
without the quotes around var()
but, I am quite weak at front-end so I'll let the front-end gurus decide what to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I initially thought, too, but apparently
"theme_color": var(--ifm-color-primary)
is not valid JSON... this can totally be someone else's issue ;D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you can use variable see https://web.dev/learn/pwa/web-app-manifest/#recommended-fields
TIL about |
Wow, I didn't know |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on my machine. Very cool.
Running into this
|
What is your node version? |
Right now I'm trying to build the containers in docker to see if it works. Line 86 in 3f7f5e4
|
It suppose to have but running on dev mode it won't be shown |
You might want some more experienced (with docusaurus and front-end) reviewers to review this, since this is out of my comfort zone. Line 86 in 3f7f5e4
And since its hidden in dev mode, I can't see if its working through docker containers locally |
@RC-Lee I believe your browser is running under Firefox. Use a Chromium-based browser
|
Having a link to do it makes sense I think, yes. |
@humphd Added |
@cindyledev Just need a re-approval, then I will squash those commit and merge |
I don't care how you want to do it so long as we don't end-up with |
Alright, I rebased/Squash manually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue This PR Addresses
Fixes #3666
Type of Change
Description
Steps to test the PR
pnpm i
pnpm --filter @senecacdot/telescope-docs build && pnpm --filter @senecacdot/telescope-docs serve
Should able to see this button to use PWA
Checklist