- Notifications
You must be signed in to change notification settings - Fork 362
Expand file tree
/
Copy pathindex.html
More file actions
155 lines (143 loc) · 5.72 KB
/
index.html
File metadata and controls
155 lines (143 loc) · 5.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>PWABuilder Suite Documentation - test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="description"
content="Documentation for building great progressive web apps with the PWABuilder tooling suite."
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
/>
<meta property="og:image" content="/assets/icons/share-logo.png" />
<!-- Google Site Verification for Google Search Console dashboard -->
<meta
name="google-site-verification"
content="HPBaodfLBvVIFzKwWeIWMwaIwH_ArRkSG1xjWhpqhhg"
/>
<link rel="icon" href="/assets/icons/icon_24.png" type="image/png" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsify@^5.0.0-rc/dist/themes/core.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.20.1/dist/themes/light.css"
/>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.20.1/cdn/shoelace-autoloader.js"
></script>
<link rel="stylesheet" href="styles/global.css" />
<link rel="stylesheet" href="styles/vs-prism.css" />
<link rel="manifest" href="manifest.json" />
</head>
<body>
<div id="app"></div>
<script
type="text/javascript"
src="https://js.monitor.azure.com/scripts/c/ms.analytics-web-3.min.js"
></script>
<script type="module">
import {
recordPageView,
recordPageAction,
} from "./public/analytics/index.js";
window.recordPageView = recordPageView;
window.recordPageAction = recordPageAction;
</script>
<script>
function getPageName() {
var pageName = "docs-home-about";
try {
var results = document.location.href.match("#\/[a-zA-Z\/-]+");
var parsedSubURL = results[0];
pageName =
"docs" + parsedSubURL.replace("#", "").replaceAll("/", "-");
} catch {
console.warn(
"Failed to parse page name at: " + document.location.href
);
}
return pageName;
}
window.$docsify = {
repo: "https://github.com/pwa-builder/PWABuilder",
loadSidebar: true,
subMaxLevel: 2,
auto2top: true,
executeScript: true,
externalLinkTarget: "_self",
plugins: [
// Send telemetry for page views.
function (hook) {
hook.doneEach(function () {
window.recordPageView(document.location.href, getPageName());
});
},
// Insert a banner about a new post.
function (hook) {
var summitBanner = [
"<sl-alert open>",
'<sl-icon slot="icon" name="bookmark-heart"></sl-icon>',
"<div>",
"<strong> New blog post! See how to enable in-app purchases on iOS in your PWA! </strong><br />",
'Our latest post, <a href="https://blog.pwabuilder.com/posts/you-won\'t-believe-how-we-enabled-in-app-purchases-for-pwas-on-ios/"><b>You Won\’t Believe How We Enabled In-App Purchases for PWAs on iOS</b></a>, demonstrates what it takes to get iOS in-app purchases working on a Progressive Web App. Go check it out!',
"</div>",
"</sl-alert>",
].join("");
hook.afterEach(function (html) {
return summitBanner + html;
});
},
function (hook) {
// Rewrite the sidebar toggle button so it works with Windows narrator.
hook.doneEach(function () {
const sidebarToggleBtn =
document.querySelector(".sidebar-toggle");
if (sidebarToggleBtn) {
sidebarToggleBtn.classList.add("sidebar-toggle-button");
sidebarToggleBtn.removeAttribute("tabindex");
sidebarToggleBtn.setAttribute(
"aria-label",
"Toggle primary navigation"
);
sidebarToggleBtn.removeAttribute("title", "");
sidebarToggleBtn.setAttribute("aria-controls", "__sidebar");
sidebarToggleBtn.setAttribute(
"aria-keyshortcuts",
"Control+\\"
);
sidebarToggleBtn.innerHTML = `<span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>`;
}
});
},
],
};
</script>
<!-- Docsify v4 -->
<script src="https://cdn.jsdelivr.net/npm/docsify@^5.0.0-rc "></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js "></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@^5.0.0-rc/dist/plugins/search.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js "></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/docsify-prism@latest/dist/docsify-prism.min.js "></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js "></script> -->
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1 "></script>
<script>
if (typeof navigator.serviceWorker !== "undefined") {
navigator.serviceWorker.register("sw.js");
}
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const githubCorner = document.querySelector(".github-corner");
if (githubCorner) {
githubCorner.setAttribute("title", "View source on GitHub");
}
});
</script>
</body>
</html>