Skip to content

Commit 8f64eb7

Browse files
authored
feat: implement PWA features and interactive components (#472)
- Added PWA support with the @docusaurus/plugin-pwa, including a manifest file and service worker registration. - Introduced new interactive components: FeatureShowcase, InteractiveCard, and StepByStep for enhanced user engagement. - Removed outdated build notes and technical debt analysis documents to streamline project documentation. - Updated docusaurus.config.js for improved theme configuration and search functionality. - Enhanced CSS styles for new components and improved overall UI consistency.
1 parent 953694f commit 8f64eb7

15 files changed

+1861
-320
lines changed

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/dependency-review-action@v3
5757
with:
5858
fail-on-severity: moderate
59-
allow-licenses: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, GPL-3.0, MIT-0, CC0-1.0, (MIT AND CC0-1.0), (CC0-1.0 AND MIT), 0BSD, Unlicense
59+
allow-licenses: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, GPL-3.0, MIT-0, CC0-1.0, (MIT AND CC0-1.0), (CC0-1.0 AND MIT), (ISC AND MIT), 0BSD, Unlicense
6060

6161
codeql-analysis:
6262
runs-on: ubuntu-latest

BUILD_NOTES.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

TECHNICAL_DEBT_ANALYSIS.md

Lines changed: 0 additions & 156 deletions
This file was deleted.

docusaurus.config.js

Lines changed: 67 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,66 @@ const config = {
159159
],
160160
},
161161
],
162+
[
163+
'@docusaurus/plugin-pwa',
164+
{
165+
debug: false,
166+
offlineModeActivationStrategies: [
167+
'appInstalled',
168+
'standalone',
169+
'queryString',
170+
],
171+
pwaHead: [
172+
{
173+
tagName: 'link',
174+
rel: 'icon',
175+
href: '/img/logo.png',
176+
},
177+
{
178+
tagName: 'link',
179+
rel: 'manifest',
180+
href: '/manifest.json',
181+
},
182+
{
183+
tagName: 'meta',
184+
name: 'theme-color',
185+
content: '#25c2a0',
186+
},
187+
{
188+
tagName: 'meta',
189+
name: 'apple-mobile-web-app-capable',
190+
content: 'yes',
191+
},
192+
{
193+
tagName: 'meta',
194+
name: 'apple-mobile-web-app-status-bar-style',
195+
content: '#000',
196+
},
197+
{
198+
tagName: 'link',
199+
rel: 'apple-touch-icon',
200+
href: '/img/logo.png',
201+
},
202+
{
203+
tagName: 'link',
204+
rel: 'mask-icon',
205+
href: '/img/logo.png',
206+
color: '#25c2a0',
207+
},
208+
{
209+
tagName: 'meta',
210+
name: 'msapplication-TileImage',
211+
content: '/img/logo.png',
212+
},
213+
{
214+
tagName: 'meta',
215+
name: 'msapplication-TileColor',
216+
content: '#000',
217+
},
218+
],
219+
swCustom: require.resolve('./src/registerSW.js'),
220+
},
221+
],
162222
],
163223

164224
themeConfig:
@@ -168,11 +228,16 @@ const config = {
168228
appId: 'OFOYRKZKKB',
169229
apiKey: 'f70587b4279fabdac7fd30732de4e5de',
170230
indexName: 'docs-daily',
231+
contextualSearch: true,
232+
searchParameters: {
233+
hitsPerPage: 25,
234+
},
235+
placeholder: 'Search documentation...',
171236
},
172237
colorMode: {
173-
defaultMode: 'dark',
238+
defaultMode: 'light',
174239
disableSwitch: false,
175-
respectPrefersColorScheme: true,
240+
respectPrefersColorScheme: false,
176241
},
177242
navbar: {
178243
logo: {
@@ -242,13 +307,6 @@ const config = {
242307
],
243308
copyright: ${new Date().getFullYear()} All rights reserved.`,
244309
},
245-
announcementBar: {
246-
id: 'support_us',
247-
content: 'Try daily.dev <a target="_blank" rel="noopener noreferrer" href="https://daily.dev"> now!</a>',
248-
backgroundColor: '#fafbfc',
249-
textColor: '#091E42',
250-
isCloseable: true,
251-
},
252310
prism: {
253311
theme: lightCodeTheme,
254312
darkTheme: darkCodeTheme,

0 commit comments

Comments
 (0)