Skip to content

Commit 6a9e635

Browse files
committed
Revert "feat: Making Quartz available offline by making it a PWA (#465)"
This reverts commit d6301fa.
1 parent 70e029d commit 6a9e635

File tree

13 files changed

+6
-235
lines changed

13 files changed

+6
-235
lines changed

docs/configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ const config: QuartzConfig = {
2121
This part of the configuration concerns anything that can affect the whole site. The following is a list breaking down all the things you can configure:
2222

2323
- `pageTitle`: title of the site. This is also used when generating the [[RSS Feed]] for your site.
24-
- `description`: description of the site. This will be used when someone installs your site as an App.
2524
- `enableSPA`: whether to enable [[SPA Routing]] on your site.
2625
- `enablePopovers`: whether to enable [[popover previews]] on your site.
2726
- `analytics`: what to use for analytics on your site. Values can be
2827
- `null`: don't use analytics;
29-
- `{ provider: "umami", websiteId: <your-umami-id> }`: easy, privacy-friendly, open source, GDPR Compliant analytics;
3028
- `{ provider: 'plausible' }`: use [Plausible](https://plausible.io/), a privacy-friendly alternative to Google Analytics; or
3129
- `{ provider: 'google', tagId: <your-google-tag> }`: use Google Analytics
3230
- `baseUrl`: this is used for sitemaps and RSS feeds that require an absolute URL to know where the canonical 'home' of your site lives. This is normally the deployed URL of your site (e.g. `quartz.jzhao.xyz` for this site). Do not include the protocol (i.e. `https://`) or any leading or trailing slashes.

docs/features/offline access.md

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

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This will guide you through initializing your Quartz with content. Once you've d
3030
3131
## 🔧 Features
3232

33-
- [[Obsidian compatibility]], [[full-text search]], [[graph view]], note transclusion, [[wikilinks]], [[backlinks]], [[Latex]], [[syntax highlighting]], [[popover previews]], [[offline access]] and [many more](./features) right out of the box
33+
- [[Obsidian compatibility]], [[full-text search]], [[graph view]], note transclusion, [[wikilinks]], [[backlinks]], [[Latex]], [[syntax highlighting]], [[popover previews]], and [many more](./features) right out of the box
3434
- Hot-reload for both configuration and content
3535
- Simple JSX layouts and [[creating components|page components]]
3636
- [[SPA Routing|Ridiculously fast page loads]] and tiny bundle sizes

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"@types/flexsearch": "^0.7.3",
9595
"@types/hast": "^2.3.4",
9696
"@types/js-yaml": "^4.0.5",
97-
"@types/node": "^20.6.2",
97+
"@types/node": "^20.1.2",
9898
"@types/pretty-time": "^1.1.2",
9999
"@types/source-map-support": "^0.5.6",
100100
"@types/workerpool": "^6.4.0",

quartz.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as Plugin from "./quartz/plugins"
44
const config: QuartzConfig = {
55
configuration: {
66
pageTitle: "🪴 Quartz 4.0",
7-
description: "Quartz Documentation Page and Demo",
87
enableSPA: true,
98
enablePopovers: true,
109
analytics: {

quartz/cfg.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export type Analytics =
1919

2020
export interface GlobalConfiguration {
2121
pageTitle: string
22-
description: string
2322
/** Whether to enable single-page-app style rendering. this prevents flashes of unstyled content and improves smoothness of Quartz */
2423
enableSPA: boolean
2524
/** Whether to display Wikipedia-style popovers when hovering over links */

quartz/components/Head.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ export default (() => {
1414

1515
const iconPath = joinSegments(baseDir, "static/icon.png")
1616
const ogImagePath = `https://${cfg.baseUrl}/static/og-image.png`
17-
const manifest =
18-
cfg.baseUrl == undefined ? "/manifest.json" : `https://${cfg.baseUrl}/manifest.json`
1917

2018
return (
2119
<head>
@@ -27,9 +25,7 @@ export default (() => {
2725
{cfg.baseUrl && <meta property="og:image" content={ogImagePath} />}
2826
<meta property="og:width" content="1200" />
2927
<meta property="og:height" content="675" />
30-
<meta name="theme-color" content="#faf8f8" />
3128
<link rel="icon" href={iconPath} />
32-
<link rel="manifest" href={manifest} />
3329
<meta name="description" content={description} />
3430
<meta name="generator" content="Quartz" />
3531
<link rel="preconnect" href="https://fonts.googleapis.com" />

quartz/components/pages/OfflineFallbackPage.tsx

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

quartz/plugins/emitters/componentResources.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ function addGlobalPageResources(
116116
document.dispatchEvent(event)`)
117117
}
118118

119-
componentResources.afterDOMLoaded.push(`
120-
if ('serviceWorker' in navigator) {
121-
navigator.serviceWorker.register('/sw.js');
122-
}`)
123-
124119
let wsUrl = `ws://localhost:${ctx.argv.wsPort}`
125120

126121
if (ctx.argv.remoteDevHost) {

0 commit comments

Comments
 (0)