Jacky Zhao
2023-09-20 52a172d1a4911080444ff797183e29ba8175741e
docs: wording changes for offline support
4 files modified
7 ■■■■■ changed files
docs/features/offline access.md 2 ●●● patch | view | raw | blame | history
quartz/components/Explorer.tsx 1 ●●●● patch | view | raw | blame | history
quartz/components/pages/OfflineFallbackPage.tsx 2 ●●● patch | view | raw | blame | history
quartz/plugins/emitters/offline.ts 2 ●●● patch | view | raw | blame | history
docs/features/offline access.md
@@ -4,7 +4,7 @@
  - plugin/emitter
---
This plugin allows your website to be accessible offline and be installed as an app. You can use it by adding `Plugin.Offline(),` to the `emitters` in `quartz.config.ts`
This plugin allows your website to be accessible offline and be installed as an app. You can enable it by adding `Plugin.Offline(),` to the `emitters` in `quartz.config.ts`
## Offline Capability
quartz/components/Explorer.tsx
@@ -22,6 +22,7 @@
      return -1
    }
  },
  filterFn: (node) => node.name !== "tags",
  order: ["filter", "map", "sort"],
} satisfies Options
quartz/components/pages/OfflineFallbackPage.tsx
@@ -4,7 +4,7 @@
  return (
    <article class="popover-hint">
      <h1>Offline</h1>
      <p>This page isn't offline available yet.</p>
      <p>You're offline and this page hasn't been cached yet.</p>
    </article>
  )
}
quartz/plugins/emitters/offline.ts
@@ -62,7 +62,7 @@
      const [tree, vfile] = defaultProcessedContent({
        slug,
        text: "Offline",
        description: "This page isn't offline available yet.",
        description: "You're offline and this page hasn't been cached yet.",
        frontmatter: { title: "Offline", tags: [] },
      })