summaryrefslogtreecommitdiff
path: root/src/webenginewidgets/doc/snippets/push-notifications/commands
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-12-09 10:46:23 +0100
committerMichal Klocek <michal.klocek@qt.io>2022-12-16 08:58:48 +0000
commitcbc622f158a94fea9c6af8d675a8743e98267109 (patch)
tree9e67fabc151190b34d4dd2dfc2db09ff88f3aae5 /src/webenginewidgets/doc/snippets/push-notifications/commands
parentae2ca250efd331d4eb1d843a91735020cbb87be2 (diff)
downloadqtwebengine-cbc622f158a94fea9c6af8d675a8743e98267109.tar.gz
Fix qdoc warnings
As JavaScript parsing issue got fixed , the limit was not changed, meaning there where 4 "unused" warnings possibilities. In the meantime another change e6a13d97898f3f4b19f61006d0716ca9e1b9f037 was merged which had 3 qdoc issues, which got therefore unnoticed. Fix those issues. Do not use underscore in example name and rename push_notification to push-notifications (like qtbase network-chat). Pick-to: 6.5 Change-Id: I2635424e24d3b9a0a02c2e6fe8ac383eec95c112 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webenginewidgets/doc/snippets/push-notifications/commands')
-rw-r--r--src/webenginewidgets/doc/snippets/push-notifications/commands19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/webenginewidgets/doc/snippets/push-notifications/commands b/src/webenginewidgets/doc/snippets/push-notifications/commands
new file mode 100644
index 000000000..aee9761c1
--- /dev/null
+++ b/src/webenginewidgets/doc/snippets/push-notifications/commands
@@ -0,0 +1,19 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+//! [0]
+npm init -y
+npm install web-push express
+//! [0]
+
+//! [1]
+"start": "node server.js"
+//! [1]
+
+//! [2]
+./node_odules/.bin/web-push generate-vapid-keys
+//! [2]
+
+//! [3]
+npm start
+//! [3]