diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 9ba66685..b00da36f 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -46,7 +46,7 @@ const docusaurusConfig = { title: "Auth.js", logo: { alt: "Auth.js Logo", - src: "img/logo/logo-xs.png", + src: "img/logo/logo-xs.webp", }, items: [ { @@ -101,7 +101,7 @@ const docusaurusConfig = { announcementBar: { id: "new-major-announcement", content: - "NextAuth.js is becoming Auth.js! 🎉 We're creating Authentication for the Web. Everyone included. Starting with SvelteKit, check out the docs here.", + "NextAuth.js is becoming Auth.js! 🎉 We're creating Authentication for the Web. Everyone included. Starting with SvelteKit, check out the docs.", backgroundColor: "#000", textColor: "#fff", }, @@ -121,6 +121,7 @@ const docusaurusConfig = { alt="Powered by Vercel" style="margin-top: 8px" height="32" + width="167" src="https://raw.githubusercontent.com/nextauthjs/next-auth/main/docs/static/img/powered-by-vercel.svg" /> `, @@ -181,7 +182,10 @@ const docusaurusConfig = { lastVersion: "current", showLastUpdateAuthor: true, showLastUpdateTime: true, - remarkPlugins: [require("@sapphire/docusaurus-plugin-npm2yarn2pnpm").npm2yarn2pnpm, require("remark-github")], + remarkPlugins: [ + require("@sapphire/docusaurus-plugin-npm2yarn2pnpm").npm2yarn2pnpm, + require("remark-github"), + ], versions: { current: { label: "experimental", @@ -201,7 +205,15 @@ const docusaurusConfig = { ...typedocConfig, id: "core", plugin: ["./tyepdoc"], - entryPoints: ["index.ts", "adapters.ts", "errors.ts", "jwt.ts", "types.ts"].map((e) => `${coreSrc}/${e}`).concat(providers), + entryPoints: [ + "index.ts", + "adapters.ts", + "errors.ts", + "jwt.ts", + "types.ts", + ] + .map((e) => `${coreSrc}/${e}`) + .concat(providers), tsconfig: "../packages/core/tsconfig.json", out: "reference/03-core", watch: process.env.TYPEDOC_WATCH, @@ -214,7 +226,9 @@ const docusaurusConfig = { ...typedocConfig, id: "sveltekit", plugin: ["./tyepdoc"], - entryPoints: ["index.ts", "client.ts"].map((e) => `../packages/frameworks-sveltekit/src/lib/${e}`), + entryPoints: ["index.ts", "client.ts"].map( + (e) => `../packages/frameworks-sveltekit/src/lib/${e}` + ), tsconfig: "../packages/frameworks-sveltekit/tsconfig.json", out: "reference/04-sveltekit", watch: process.env.TYPEDOC_WATCH, diff --git a/docs/sidebars.js b/docs/sidebars.js index dfd7af26..3c40fb1e 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -58,9 +58,9 @@ module.exports = { label: "@auth/solid-start", link: { type: "doc", - id: "reference/solid-start/index", + id: "reference/solidstart/index", }, - items: ["reference/solid-start/client", "reference/solid-start/protected"], + items: ["reference/solidstart/client", "reference/solidstart/protected"], }, { type: "category", diff --git a/docs/src/css/index.css b/docs/src/css/index.css index 7d2d8cfc..f5f096a4 100644 --- a/docs/src/css/index.css +++ b/docs/src/css/index.css @@ -140,19 +140,19 @@ html[data-theme="dark"] hr { border-radius: 10rem; overflow: visible; box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1); - background-image: url("/img/mesh-1.jpg"); + background-image: url("/img/mesh-1.webp"); background-size: cover; background-origin: center; } .home-main .section-features .row .col:nth-child(2) .feature-image-wrapper { - background-image: url("/img/mesh-2.jpg"); + background-image: url("/img/mesh-2.webp"); background-size: cover; background-origin: center; } .home-main .section-features .row .col:nth-child(3) .feature-image-wrapper { - background-image: url("/img/mesh-3.jpg"); + background-image: url("/img/mesh-3.webp"); background-size: cover; background-origin: center; } diff --git a/docs/src/css/navbar.css b/docs/src/css/navbar.css index 8541ee50..a3dd966b 100644 --- a/docs/src/css/navbar.css +++ b/docs/src/css/navbar.css @@ -6,6 +6,11 @@ margin-right: 1rem !important; } +.navbar__logo { + width: 29px; + height: 32px; +} + .navbar__title { font-size: 1.2rem; margin-left: 0.2rem; diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 1af4502a..2bf32c91 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -117,9 +117,11 @@ export default function Home() {
Shield with key icon

{siteConfig.title}

@@ -214,9 +216,9 @@ export default function Home() {
-

+
Next.js /pages/api/auth/[...nextauth].ts -

+
{nextJsCode} @@ -224,9 +226,9 @@ export default function Home() {
-

+
SvelteKit /hooks.server.ts -

+
{svelteKitCode} @@ -234,9 +236,9 @@ export default function Home() {
-

+
SolidStart /routes/api/auth/[...solidauth].ts -

+
{solidStartCode} diff --git a/docs/static/img/logo/logo-sm.webp b/docs/static/img/logo/logo-sm.webp new file mode 100644 index 00000000..d06ca723 Binary files /dev/null and b/docs/static/img/logo/logo-sm.webp differ diff --git a/docs/static/img/logo/logo-xs.webp b/docs/static/img/logo/logo-xs.webp new file mode 100644 index 00000000..44eed9b1 Binary files /dev/null and b/docs/static/img/logo/logo-xs.webp differ diff --git a/docs/static/img/logo/logo.webp b/docs/static/img/logo/logo.webp new file mode 100644 index 00000000..a6582347 Binary files /dev/null and b/docs/static/img/logo/logo.webp differ diff --git a/docs/static/img/mesh-1.webp b/docs/static/img/mesh-1.webp new file mode 100644 index 00000000..2aa206f4 Binary files /dev/null and b/docs/static/img/mesh-1.webp differ diff --git a/docs/static/img/mesh-2.webp b/docs/static/img/mesh-2.webp new file mode 100644 index 00000000..2f66e42b Binary files /dev/null and b/docs/static/img/mesh-2.webp differ diff --git a/docs/static/img/mesh-3.webp b/docs/static/img/mesh-3.webp new file mode 100644 index 00000000..6943db25 Binary files /dev/null and b/docs/static/img/mesh-3.webp differ diff --git a/docs/vercel.json b/docs/vercel.json index 1ba19f42..233979ad 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -60,6 +60,11 @@ "destination": "https://github.com/nextauthjs/next-auth/discussions/categories/questions", "permanent": true }, + { + "source": "/reference/solid-start/:path*", + "destination": "/reference/solidstart/:path*", + "permanent": true + }, { "source": "/", "has": [