+
diff --git a/docs/src/app/docs/not-found.tsx b/docs/src/app/docs/not-found.tsx
index 0727a05f..b8ad6030 100644
--- a/docs/src/app/docs/not-found.tsx
+++ b/docs/src/app/docs/not-found.tsx
@@ -1,5 +1,5 @@
import { Heading } from "@/components/Heading.js";
-const NotFound = () =>
Page not found.;
+const NotFound = () =>
Page not found.;
export default NotFound;
diff --git a/docs/src/app/docs/opengraph-image.ts b/docs/src/app/docs/opengraph-image.ts
index 1477152c..75d3f72e 100644
--- a/docs/src/app/docs/opengraph-image.ts
+++ b/docs/src/app/docs/opengraph-image.ts
@@ -1,6 +1,6 @@
import { generateOGImage } from "@/utils/generateOGImage.js";
-export const alt = "Next PWA - Docs";
+export const alt = "next-pwa - Docs";
export const size = {
width: 1200,
height: 600,
diff --git a/docs/src/app/globals.css b/docs/src/app/globals.css
index 5a46efb8..453beca9 100644
--- a/docs/src/app/globals.css
+++ b/docs/src/app/globals.css
@@ -26,6 +26,19 @@ html[data-theme="dark"] .shiki span:not([class^="twoslash-"]) {
body {
@apply box-border bg-neutral-50 transition-colors duration-100 dark:bg-neutral-950;
}
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ blockquote {
+ @apply text-balance break-words;
+ }
+ p,
+ video {
+ @apply my-3;
+ }
details > summary {
@apply cursor-pointer select-none list-none;
@@ -66,6 +79,27 @@ html[data-theme="dark"] .shiki span:not([class^="twoslash-"]) {
.text-toc.active {
@apply xl:text-primary-light xl:dark:text-primary-dark;
}
+ .text-comment {
+ @apply text-neutral-600 dark:text-neutral-400;
+ }
+ .heading.h1 {
+ @apply text-4xl font-semibold leading-10 tracking-tight mb-6;
+ }
+ .heading.h2 {
+ @apply text-3xl font-semibold leading-10 tracking-tight mb-3 mt-6;
+ }
+ .heading.h3 {
+ @apply text-2xl font-semibold leading-7 tracking-tight my-3;
+ }
+ .heading.h4 {
+ @apply text-xl font-medium leading-5 tracking-tight my-3;
+ }
+ .heading.default {
+ @apply text-black dark:text-white;
+ }
+ .heading.error {
+ @apply text-red-500 dark:text-red-400;
+ }
}
@media (prefers-reduced-motion) {
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx
index 5d2d101c..e5ae466e 100644
--- a/docs/src/app/layout.tsx
+++ b/docs/src/app/layout.tsx
@@ -18,27 +18,27 @@ export const metadata: Metadata = {
},
referrer: "no-referrer",
title: {
- default: "Next PWA",
- template: "%s - Next PWA",
+ default: "next-pwa",
+ template: "%s - next-pwa",
},
description: "Make performant web apps with Next.js & PWA.",
- applicationName: "Next PWA",
+ applicationName: "next-pwa",
manifest: "/manifest.webmanifest",
authors: [{ name: "DuCanhGH", url: "https://github.com/DuCanhGH/" }],
keywords: "react, pwa, service-worker, progressive-web-app, nextjs, next.js, workbox",
openGraph: {
type: "website",
title: {
- default: "Next PWA",
- template: "%s - Next PWA",
+ default: "next-pwa",
+ template: "%s - next-pwa",
},
description: "Make performant web apps with Next.js & PWA.",
},
twitter: {
card: "summary_large_image",
title: {
- default: "Next PWA",
- template: "%s - Next PWA",
+ default: "next-pwa",
+ template: "%s - next-pwa",
},
description: "Make performant web apps with Next.js & PWA.",
},
diff --git a/docs/src/app/opengraph-image.ts b/docs/src/app/opengraph-image.ts
index 9c377ac2..b43b3dd1 100644
--- a/docs/src/app/opengraph-image.ts
+++ b/docs/src/app/opengraph-image.ts
@@ -1,6 +1,6 @@
import { generateOGImage } from "@/utils/generateOGImage.js";
-export const alt = "Next PWA";
+export const alt = "next-pwa";
export const size = {
width: 1200,
height: 600,
diff --git a/docs/src/app/~offline/ReloadButton.tsx b/docs/src/app/~offline/ReloadButton.tsx
index 9ec7d0ab..0fb5d267 100644
--- a/docs/src/app/~offline/ReloadButton.tsx
+++ b/docs/src/app/~offline/ReloadButton.tsx
@@ -4,7 +4,7 @@ import { Heading } from "@/components/Heading";
export const ReloadButton = () => {
return (
);
};
diff --git a/docs/src/app/~offline/page.tsx b/docs/src/app/~offline/page.tsx
index 229694c6..77c3ba6d 100644
--- a/docs/src/app/~offline/page.tsx
+++ b/docs/src/app/~offline/page.tsx
@@ -5,7 +5,7 @@ import { ReloadButton } from "./ReloadButton.js";
const Page = () => {
return (
- offline.
+ offline.
);
diff --git a/docs/src/components/ActiveBox.tsx b/docs/src/components/ActiveBox.tsx
index cd4e0a79..eb666fba 100644
--- a/docs/src/components/ActiveBox.tsx
+++ b/docs/src/components/ActiveBox.tsx
@@ -4,9 +4,9 @@ import type { DetailedHTMLProps, HTMLAttributes } from "react";
import { clsx } from "@/utils/clsx";
-const baseActiveBoxClassName = "items-center justify-between gap-2 text-left w-full flex rounded text-sm transition-colors [word-break:break-word] font-medium";
-const hoverActiveBoxClassName =
- "text-black dark:text-white hover:bg-neutral-200 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white";
+const baseActiveBoxClassName =
+ "items-center justify-between gap-2 text-left w-full flex rounded text-sm transition-colors [word-break:break-word] font-medium";
+const hoverActiveBoxClassName = "text-black dark:text-white hover:bg-neutral-200 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white";
const activeActiveBoxClassName = "bg-neutral-200 text-black dark:bg-neutral-800 dark:text-white";
export interface ActiveBoxProps extends DetailedHTMLProps
, HTMLDivElement> {
diff --git a/docs/src/components/GitHubLogo.tsx b/docs/src/components/GitHubLogo.tsx
index e137334c..5e86ed87 100644
--- a/docs/src/components/GitHubLogo.tsx
+++ b/docs/src/components/GitHubLogo.tsx
@@ -1,8 +1,6 @@
import type { SVGProps } from "react";
-export const GitHubLogo = (
- props: Omit, "ref" | "viewBox" | "xmlns">
-) => (
+export const GitHubLogo = (props: Omit, "ref" | "viewBox" | "xmlns">) => (