summaryrefslogtreecommitdiffstats
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
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-12-16 14:44:49 +0000
commitccbe330d6bbf3c6049a57af809b648c2c4a2155e (patch)
treebf725d3657e31a968e2b4792e833a93d88dcd3c0 /src/webenginewidgets/doc/snippets/push-notifications/commands
parent67d028e3dcbdab5ccae00b912ddb9dda7892c81e (diff)
Fix qdoc warningsv6.5.0-beta1
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). Change-Id: I2635424e24d3b9a0a02c2e6fe8ac383eec95c112 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit cbc622f158a94fea9c6af8d675a8743e98267109) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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]