From fcd6db39c8ea30e4016da4c5b67f5ab3192ef54f Mon Sep 17 00:00:00 2001 From: Ali Samadi Date: Fri, 25 Oct 2024 14:14:49 -0700 Subject: [PATCH] docs: smooth animation for sidebar links and changelogs (#336) --- docs/.source/index.d.ts | 10 +- docs/.source/index.js | 396 ++++------------------ docs/.source/source.config.mjs | 48 +-- docs/app/changelogs/_components/icons.tsx | 35 ++ docs/app/changelogs/_logs/2024-08-09.tsx | 51 --- docs/app/changelogs/_logs/2024-09-28.tsx | 36 -- docs/app/changelogs/_logs/2024-09-29.tsx | 48 --- docs/app/changelogs/_logs/2024-10-04.tsx | 56 --- docs/app/changelogs/_logs/index.ts | 20 -- docs/app/changelogs/layout.tsx | 112 ------ docs/app/changelogs/page.tsx | 157 ++++++++- docs/components/side-bar.tsx | 142 ++++---- docs/content/changelog/index.mdx | 61 ++++ 13 files changed, 412 insertions(+), 760 deletions(-) create mode 100644 docs/app/changelogs/_components/icons.tsx delete mode 100644 docs/app/changelogs/_logs/2024-08-09.tsx delete mode 100644 docs/app/changelogs/_logs/2024-09-28.tsx delete mode 100644 docs/app/changelogs/_logs/2024-09-29.tsx delete mode 100644 docs/app/changelogs/_logs/2024-10-04.tsx delete mode 100644 docs/app/changelogs/_logs/index.ts delete mode 100644 docs/app/changelogs/layout.tsx create mode 100644 docs/content/changelog/index.mdx diff --git a/docs/.source/index.d.ts b/docs/.source/index.d.ts index 645bb49caa..9ef0ee88cd 100644 --- a/docs/.source/index.d.ts +++ b/docs/.source/index.d.ts @@ -1,6 +1,4 @@ -import type { GetOutput } from "fumadocs-mdx/config"; -export declare const changelog: GetOutput< - typeof import("../source.config.ts").changelog ->; -export declare const docs: GetOutput; -export declare const meta: GetOutput; +import type { GetOutput } from "fumadocs-mdx/config" +export declare const changelog: GetOutput +export declare const docs: GetOutput +export declare const meta: GetOutput \ No newline at end of file diff --git a/docs/.source/index.js b/docs/.source/index.js index e3028909a3..b2e735839c 100644 --- a/docs/.source/index.js +++ b/docs/.source/index.js @@ -1,336 +1,60 @@ -import { toRuntime, toRuntimeAsync } from "fumadocs-mdx"; -import * as docs_0 from "../content/docs/basic-usage.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_1 from "../content/docs/installation.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_2 from "../content/docs/introduction.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_3 from "../content/docs/concepts/api.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_4 from "../content/docs/concepts/cli.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_5 from "../content/docs/concepts/client.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_6 from "../content/docs/concepts/cookies.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_7 from "../content/docs/concepts/database.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_8 from "../content/docs/concepts/email.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_9 from "../content/docs/concepts/plugins.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_10 from "../content/docs/concepts/rate-limit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_11 from "../content/docs/concepts/session-management.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_12 from "../content/docs/concepts/typescript.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_13 from "../content/docs/concepts/users-accounts.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_14 from "../content/docs/authentication/apple.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_15 from "../content/docs/authentication/discord.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_16 from "../content/docs/authentication/dropbox.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_17 from "../content/docs/authentication/email-password.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_18 from "../content/docs/authentication/facebook.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_19 from "../content/docs/authentication/github.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_20 from "../content/docs/authentication/google.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_21 from "../content/docs/authentication/linkedin.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_22 from "../content/docs/authentication/microsoft.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_23 from "../content/docs/authentication/spotify.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_24 from "../content/docs/authentication/twitch.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_25 from "../content/docs/authentication/twitter.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_26 from "../content/docs/examples/astro.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_27 from "../content/docs/examples/next-js.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_28 from "../content/docs/examples/nuxt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_29 from "../content/docs/examples/remix.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_30 from "../content/docs/examples/svelte-kit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_31 from "../content/docs/integrations/astro.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_32 from "../content/docs/integrations/elysia.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_33 from "../content/docs/integrations/hono.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_34 from "../content/docs/integrations/next.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_35 from "../content/docs/integrations/node.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_36 from "../content/docs/integrations/nuxt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_37 from "../content/docs/integrations/remix.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_38 from "../content/docs/integrations/solid-start.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_39 from "../content/docs/integrations/svelte-kit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_40 from "../content/docs/reference/options.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_41 from "../content/docs/reference/security.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_42 from "../content/docs/plugins/2fa.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_43 from "../content/docs/plugins/admin.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_44 from "../content/docs/plugins/anonymous.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_45 from "../content/docs/plugins/bearer.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_46 from "../content/docs/plugins/generic-oauth.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_47 from "../content/docs/plugins/jwt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_48 from "../content/docs/plugins/magic-link.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_49 from "../content/docs/plugins/multi-session.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_50 from "../content/docs/plugins/organization.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_51 from "../content/docs/plugins/passkey.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_52 from "../content/docs/plugins/phone-number.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as docs_53 from "../content/docs/plugins/username.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -import * as meta_0 from "../content/docs/meta.json?collection=meta&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4"; -export const changelog = []; -export const docs = [ - toRuntime("doc", docs_0, { - path: "basic-usage.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/basic-usage.mdx", - }), - toRuntime("doc", docs_1, { - path: "installation.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/installation.mdx", - }), - toRuntime("doc", docs_2, { - path: "introduction.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/introduction.mdx", - }), - toRuntime("doc", docs_3, { - path: "concepts/api.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/api.mdx", - }), - toRuntime("doc", docs_4, { - path: "concepts/cli.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/cli.mdx", - }), - toRuntime("doc", docs_5, { - path: "concepts/client.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/client.mdx", - }), - toRuntime("doc", docs_6, { - path: "concepts/cookies.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/cookies.mdx", - }), - toRuntime("doc", docs_7, { - path: "concepts/database.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/database.mdx", - }), - toRuntime("doc", docs_8, { - path: "concepts/email.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/email.mdx", - }), - toRuntime("doc", docs_9, { - path: "concepts/plugins.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/plugins.mdx", - }), - toRuntime("doc", docs_10, { - path: "concepts/rate-limit.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/rate-limit.mdx", - }), - toRuntime("doc", docs_11, { - path: "concepts/session-management.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/session-management.mdx", - }), - toRuntime("doc", docs_12, { - path: "concepts/typescript.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/typescript.mdx", - }), - toRuntime("doc", docs_13, { - path: "concepts/users-accounts.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/concepts/users-accounts.mdx", - }), - toRuntime("doc", docs_14, { - path: "authentication/apple.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/apple.mdx", - }), - toRuntime("doc", docs_15, { - path: "authentication/discord.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/discord.mdx", - }), - toRuntime("doc", docs_16, { - path: "authentication/dropbox.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/dropbox.mdx", - }), - toRuntime("doc", docs_17, { - path: "authentication/email-password.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/email-password.mdx", - }), - toRuntime("doc", docs_18, { - path: "authentication/facebook.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/facebook.mdx", - }), - toRuntime("doc", docs_19, { - path: "authentication/github.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/github.mdx", - }), - toRuntime("doc", docs_20, { - path: "authentication/google.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/google.mdx", - }), - toRuntime("doc", docs_21, { - path: "authentication/linkedin.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/linkedin.mdx", - }), - toRuntime("doc", docs_22, { - path: "authentication/microsoft.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/microsoft.mdx", - }), - toRuntime("doc", docs_23, { - path: "authentication/spotify.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/spotify.mdx", - }), - toRuntime("doc", docs_24, { - path: "authentication/twitch.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/twitch.mdx", - }), - toRuntime("doc", docs_25, { - path: "authentication/twitter.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/authentication/twitter.mdx", - }), - toRuntime("doc", docs_26, { - path: "examples/astro.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/examples/astro.mdx", - }), - toRuntime("doc", docs_27, { - path: "examples/next-js.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/examples/next-js.mdx", - }), - toRuntime("doc", docs_28, { - path: "examples/nuxt.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/examples/nuxt.mdx", - }), - toRuntime("doc", docs_29, { - path: "examples/remix.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/examples/remix.mdx", - }), - toRuntime("doc", docs_30, { - path: "examples/svelte-kit.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/examples/svelte-kit.mdx", - }), - toRuntime("doc", docs_31, { - path: "integrations/astro.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/astro.mdx", - }), - toRuntime("doc", docs_32, { - path: "integrations/elysia.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/elysia.mdx", - }), - toRuntime("doc", docs_33, { - path: "integrations/hono.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/hono.mdx", - }), - toRuntime("doc", docs_34, { - path: "integrations/next.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/next.mdx", - }), - toRuntime("doc", docs_35, { - path: "integrations/node.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/node.mdx", - }), - toRuntime("doc", docs_36, { - path: "integrations/nuxt.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/nuxt.mdx", - }), - toRuntime("doc", docs_37, { - path: "integrations/remix.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/remix.mdx", - }), - toRuntime("doc", docs_38, { - path: "integrations/solid-start.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/solid-start.mdx", - }), - toRuntime("doc", docs_39, { - path: "integrations/svelte-kit.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/integrations/svelte-kit.mdx", - }), - toRuntime("doc", docs_40, { - path: "reference/options.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/reference/options.mdx", - }), - toRuntime("doc", docs_41, { - path: "reference/security.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/reference/security.mdx", - }), - toRuntime("doc", docs_42, { - path: "plugins/2fa.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/2fa.mdx", - }), - toRuntime("doc", docs_43, { - path: "plugins/admin.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/admin.mdx", - }), - toRuntime("doc", docs_44, { - path: "plugins/anonymous.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/anonymous.mdx", - }), - toRuntime("doc", docs_45, { - path: "plugins/bearer.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/bearer.mdx", - }), - toRuntime("doc", docs_46, { - path: "plugins/generic-oauth.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/generic-oauth.mdx", - }), - toRuntime("doc", docs_47, { - path: "plugins/jwt.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/jwt.mdx", - }), - toRuntime("doc", docs_48, { - path: "plugins/magic-link.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/magic-link.mdx", - }), - toRuntime("doc", docs_49, { - path: "plugins/multi-session.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/multi-session.mdx", - }), - toRuntime("doc", docs_50, { - path: "plugins/organization.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/organization.mdx", - }), - toRuntime("doc", docs_51, { - path: "plugins/passkey.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/passkey.mdx", - }), - toRuntime("doc", docs_52, { - path: "plugins/phone-number.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/phone-number.mdx", - }), - toRuntime("doc", docs_53, { - path: "plugins/username.mdx", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/plugins/username.mdx", - }), -]; -export const meta = [ - toRuntime("meta", meta_0, { - path: "meta.json", - absolutePath: - "/Users/beka/Desktop/Development/better-auth/docs/content/docs/meta.json", - }), -]; +import { toRuntime, toRuntimeAsync } from "fumadocs-mdx" +import * as changelog_0 from "../content/changelog/index.mdx?collection=changelog&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_0 from "../content/docs/basic-usage.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_1 from "../content/docs/installation.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_2 from "../content/docs/introduction.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_3 from "../content/docs/concepts/api.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_4 from "../content/docs/concepts/cli.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_5 from "../content/docs/concepts/client.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_6 from "../content/docs/concepts/cookies.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_7 from "../content/docs/concepts/database.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_8 from "../content/docs/concepts/email.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_9 from "../content/docs/concepts/plugins.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_10 from "../content/docs/concepts/rate-limit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_11 from "../content/docs/concepts/session-management.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_12 from "../content/docs/concepts/typescript.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_13 from "../content/docs/concepts/users-accounts.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_14 from "../content/docs/examples/astro.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_15 from "../content/docs/examples/next-js.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_16 from "../content/docs/examples/nuxt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_17 from "../content/docs/examples/remix.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_18 from "../content/docs/examples/svelte-kit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_19 from "../content/docs/plugins/2fa.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_20 from "../content/docs/plugins/admin.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_21 from "../content/docs/plugins/anonymous.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_22 from "../content/docs/plugins/bearer.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_23 from "../content/docs/plugins/generic-oauth.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_24 from "../content/docs/plugins/jwt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_25 from "../content/docs/plugins/magic-link.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_26 from "../content/docs/plugins/multi-session.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_27 from "../content/docs/plugins/organization.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_28 from "../content/docs/plugins/passkey.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_29 from "../content/docs/plugins/phone-number.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_30 from "../content/docs/plugins/username.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_31 from "../content/docs/integrations/astro.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_32 from "../content/docs/integrations/elysia.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_33 from "../content/docs/integrations/hono.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_34 from "../content/docs/integrations/next.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_35 from "../content/docs/integrations/node.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_36 from "../content/docs/integrations/nuxt.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_37 from "../content/docs/integrations/remix.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_38 from "../content/docs/integrations/solid-start.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_39 from "../content/docs/integrations/svelte-kit.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_40 from "../content/docs/reference/options.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_41 from "../content/docs/reference/security.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_42 from "../content/docs/authentication/apple.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_43 from "../content/docs/authentication/discord.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_44 from "../content/docs/authentication/dropbox.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_45 from "../content/docs/authentication/email-password.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_46 from "../content/docs/authentication/facebook.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_47 from "../content/docs/authentication/github.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_48 from "../content/docs/authentication/google.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_49 from "../content/docs/authentication/linkedin.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_50 from "../content/docs/authentication/microsoft.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_51 from "../content/docs/authentication/spotify.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_52 from "../content/docs/authentication/twitch.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as docs_53 from "../content/docs/authentication/twitter.mdx?collection=docs&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +import * as meta_0 from "../content/docs/meta.json?collection=meta&hash=6b560b7906c66406d3d5fd782e287ba9ac39a746fb1c4b292216d461a31d45f4" +export const changelog = [toRuntime("doc", changelog_0, {"path":"index.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/changelog/index.mdx"})]; +export const docs = [toRuntime("doc", docs_0, {"path":"basic-usage.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/basic-usage.mdx"}), toRuntime("doc", docs_1, {"path":"installation.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/installation.mdx"}), toRuntime("doc", docs_2, {"path":"introduction.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/introduction.mdx"}), toRuntime("doc", docs_3, {"path":"concepts/api.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/api.mdx"}), toRuntime("doc", docs_4, {"path":"concepts/cli.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/cli.mdx"}), toRuntime("doc", docs_5, {"path":"concepts/client.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/client.mdx"}), toRuntime("doc", docs_6, {"path":"concepts/cookies.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/cookies.mdx"}), toRuntime("doc", docs_7, {"path":"concepts/database.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/database.mdx"}), toRuntime("doc", docs_8, {"path":"concepts/email.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/email.mdx"}), toRuntime("doc", docs_9, {"path":"concepts/plugins.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/plugins.mdx"}), toRuntime("doc", docs_10, {"path":"concepts/rate-limit.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/rate-limit.mdx"}), toRuntime("doc", docs_11, {"path":"concepts/session-management.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/session-management.mdx"}), toRuntime("doc", docs_12, {"path":"concepts/typescript.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/typescript.mdx"}), toRuntime("doc", docs_13, {"path":"concepts/users-accounts.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/concepts/users-accounts.mdx"}), toRuntime("doc", docs_14, {"path":"examples/astro.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/examples/astro.mdx"}), toRuntime("doc", docs_15, {"path":"examples/next-js.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/examples/next-js.mdx"}), toRuntime("doc", docs_16, {"path":"examples/nuxt.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/examples/nuxt.mdx"}), toRuntime("doc", docs_17, {"path":"examples/remix.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/examples/remix.mdx"}), toRuntime("doc", docs_18, {"path":"examples/svelte-kit.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/examples/svelte-kit.mdx"}), toRuntime("doc", docs_19, {"path":"plugins/2fa.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/2fa.mdx"}), toRuntime("doc", docs_20, {"path":"plugins/admin.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/admin.mdx"}), toRuntime("doc", docs_21, {"path":"plugins/anonymous.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/anonymous.mdx"}), toRuntime("doc", docs_22, {"path":"plugins/bearer.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/bearer.mdx"}), toRuntime("doc", docs_23, {"path":"plugins/generic-oauth.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/generic-oauth.mdx"}), toRuntime("doc", docs_24, {"path":"plugins/jwt.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/jwt.mdx"}), toRuntime("doc", docs_25, {"path":"plugins/magic-link.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/magic-link.mdx"}), toRuntime("doc", docs_26, {"path":"plugins/multi-session.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/multi-session.mdx"}), toRuntime("doc", docs_27, {"path":"plugins/organization.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/organization.mdx"}), toRuntime("doc", docs_28, {"path":"plugins/passkey.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/passkey.mdx"}), toRuntime("doc", docs_29, {"path":"plugins/phone-number.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/phone-number.mdx"}), toRuntime("doc", docs_30, {"path":"plugins/username.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/plugins/username.mdx"}), toRuntime("doc", docs_31, {"path":"integrations/astro.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/astro.mdx"}), toRuntime("doc", docs_32, {"path":"integrations/elysia.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/elysia.mdx"}), toRuntime("doc", docs_33, {"path":"integrations/hono.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/hono.mdx"}), toRuntime("doc", docs_34, {"path":"integrations/next.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/next.mdx"}), toRuntime("doc", docs_35, {"path":"integrations/node.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/node.mdx"}), toRuntime("doc", docs_36, {"path":"integrations/nuxt.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/nuxt.mdx"}), toRuntime("doc", docs_37, {"path":"integrations/remix.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/remix.mdx"}), toRuntime("doc", docs_38, {"path":"integrations/solid-start.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/solid-start.mdx"}), toRuntime("doc", docs_39, {"path":"integrations/svelte-kit.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/integrations/svelte-kit.mdx"}), toRuntime("doc", docs_40, {"path":"reference/options.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/reference/options.mdx"}), toRuntime("doc", docs_41, {"path":"reference/security.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/reference/security.mdx"}), toRuntime("doc", docs_42, {"path":"authentication/apple.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/apple.mdx"}), toRuntime("doc", docs_43, {"path":"authentication/discord.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/discord.mdx"}), toRuntime("doc", docs_44, {"path":"authentication/dropbox.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/dropbox.mdx"}), toRuntime("doc", docs_45, {"path":"authentication/email-password.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/email-password.mdx"}), toRuntime("doc", docs_46, {"path":"authentication/facebook.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/facebook.mdx"}), toRuntime("doc", docs_47, {"path":"authentication/github.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/github.mdx"}), toRuntime("doc", docs_48, {"path":"authentication/google.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/google.mdx"}), toRuntime("doc", docs_49, {"path":"authentication/linkedin.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/linkedin.mdx"}), toRuntime("doc", docs_50, {"path":"authentication/microsoft.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/microsoft.mdx"}), toRuntime("doc", docs_51, {"path":"authentication/spotify.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/spotify.mdx"}), toRuntime("doc", docs_52, {"path":"authentication/twitch.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/twitch.mdx"}), toRuntime("doc", docs_53, {"path":"authentication/twitter.mdx","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/authentication/twitter.mdx"})]; +export const meta = [toRuntime("meta", meta_0, {"path":"meta.json","absolutePath":"/Users/alisamadi/Documents/open-source/better-auth/docs/content/docs/meta.json"})]; \ No newline at end of file diff --git a/docs/.source/source.config.mjs b/docs/.source/source.config.mjs index 6d354e6907..abd36d5855 100644 --- a/docs/.source/source.config.mjs +++ b/docs/.source/source.config.mjs @@ -1,30 +1,38 @@ // source.config.ts -import { defineCollections, defineDocs } from "fumadocs-mdx/config"; +import { + defineCollections, + defineDocs +} from "fumadocs-mdx/config"; import { defineConfig } from "fumadocs-mdx/config"; import { remarkInstall } from "fumadocs-docgen"; import { z } from "zod"; var source_config_default = defineConfig({ - mdxOptions: { - remarkPlugins: [ - [ - remarkInstall, - { - persist: { - id: "persist-install", - }, - }, - ], - ], - }, + mdxOptions: { + remarkPlugins: [ + [ + remarkInstall, + { + persist: { + id: "persist-install" + } + } + ] + ] + } }); var changelog = defineCollections({ - type: "doc", - dir: "./content/changelog", - schema: z.object({ - title: z.string(), - }), + type: "doc", + dir: "./content/changelog", + schema: z.object({ + title: z.string() + }) }); var { docs, meta } = defineDocs({ - dir: "./content/docs", + dir: "./content/docs" }); -export { changelog, source_config_default as default, docs, meta }; +export { + changelog, + source_config_default as default, + docs, + meta +}; diff --git a/docs/app/changelogs/_components/icons.tsx b/docs/app/changelogs/_components/icons.tsx new file mode 100644 index 0000000000..52d7b5f225 --- /dev/null +++ b/docs/app/changelogs/_components/icons.tsx @@ -0,0 +1,35 @@ +export function BookIcon(props: React.ComponentPropsWithoutRef<"svg">) { + return ( + + ); +} + +export function GitHubIcon(props: React.ComponentPropsWithoutRef<"svg">) { + return ( + + ); +} + +export function FeedIcon(props: React.ComponentPropsWithoutRef<"svg">) { + return ( + + ); +} + +export function XIcon(props: React.ComponentPropsWithoutRef<"svg">) { + return ( + + ); +} diff --git a/docs/app/changelogs/_logs/2024-08-09.tsx b/docs/app/changelogs/_logs/2024-08-09.tsx deleted file mode 100644 index f200468ee3..0000000000 --- a/docs/app/changelogs/_logs/2024-08-09.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { AnimatePresence } from "@/components/ui/fade-in"; - -const ChangelogOne = () => { - return ( - -
- -
-

- Commit message suggestions -

-
-
-

- In the latest release, I've added support for commit message and - description suggestions via an integration with OpenAI. Commit looks - at all of your changes, and feeds that into the machine with a bit of - prompt-tuning to get back a commit message that does a surprisingly - good job at describing the intent of your changes. It's also been a - pretty helpful way to remind myself what the hell I was working on at - the end of the day yesterday when I get back to my computer and - realize I didn't commit any of my work. -

-
-

Improvement

-
-
- -
    -
  • - Added commit message and description suggestions powered by OpenAI -
  • -
  • - Started commit message and description suggestions powered by OpenAI -
  • - -
  • - Restored message and description suggestions powered by OpenAI -
  • -
  • - Added commit message and description suggestions powered by OpenAI -
  • -
-
-
- ); -}; -export default ChangelogOne; diff --git a/docs/app/changelogs/_logs/2024-09-28.tsx b/docs/app/changelogs/_logs/2024-09-28.tsx deleted file mode 100644 index c2f05601d7..0000000000 --- a/docs/app/changelogs/_logs/2024-09-28.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { AnimatePresence } from "@/components/ui/fade-in"; - -const listOfFeatures = [ - "Multiple framework support", - "Email & Password Authentication", - "OAuth Authentication", - "Account & Session Management", - "Rate Limiting", - "Multiple Plugins", - "Migration CLI", - "Multiple Plugins", - "And more...", -]; - -const ChangelogOne = () => { - return ( - -
-
-

Beta Release

-

The first beta release of better-auth is now available!

-
-

-
-

Features

-
-
    - {listOfFeatures.map((change, i) => ( -
  • {change}
  • - ))} -
-
-
- ); -}; -export default ChangelogOne; diff --git a/docs/app/changelogs/_logs/2024-09-29.tsx b/docs/app/changelogs/_logs/2024-09-29.tsx deleted file mode 100644 index 540562b86c..0000000000 --- a/docs/app/changelogs/_logs/2024-09-29.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { Badge } from "@/components/ui/badge"; -import { AnimatePresence } from "@/components/ui/fade-in"; -import Link from "next/link"; - -const listOfFeatures = [ - "Database adapters support including prisma, drizzle and mongo db.", - "Database hooks", - "CrossDomain cookies", - "onRequest and onResponse plugin hooks", - "init interface for plugins", -]; - -const ChangelogOne = () => { - return ( - -
-
-

v0.2.0

-

- We have added support for database adapters including prisma, - drizzle and mongo db and other changes. -

-
-

-
-

Changes

-
-
    - {listOfFeatures.map((change, i) => ( -
  • {change}
  • - ))} -
-

- see{" "} - - Changelog - - for full list of changes. -

- - 🚧 We still in beta and we don't recommend to use better-auth in - production just yet. - -
-
- ); -}; -export default ChangelogOne; diff --git a/docs/app/changelogs/_logs/2024-10-04.tsx b/docs/app/changelogs/_logs/2024-10-04.tsx deleted file mode 100644 index e1b6ac7158..0000000000 --- a/docs/app/changelogs/_logs/2024-10-04.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { Badge } from "@/components/ui/badge"; -import { AnimatePresence } from "@/components/ui/fade-in"; -import Link from "next/link"; - -const listOfFeatures = [ - "Database Schema Generation", - "Phone Number Plugin", - "Anonymous Plugin", - "Better type Inference", - "User Delete API", - "Custom table/model names", - "Removed flat db config", - "new core table for verification use cases", - "moved passkey challenge keys to be stored on db ", - "and many bug fixes and improvements", -]; - -const ChangelogThree = () => { - return ( - -
-
-

v0.3.0

-

- Database Schema Generation, Phone Number Plugin, Anonymous Plugin, - Better type Inference, Custom table names, and many more. -

-
-

-
-

Features & Changes

-
-
    - {listOfFeatures.map((change, i) => ( -
  • {change}
  • - ))} -
-

- see{" "} - - release note{" "} - - for full list of changes. -

- - 🚧 We still in beta and we don't recommend to use better-auth in - production just yet. - -
-
- ); -}; -export default ChangelogThree; diff --git a/docs/app/changelogs/_logs/index.ts b/docs/app/changelogs/_logs/index.ts deleted file mode 100644 index eb53f98599..0000000000 --- a/docs/app/changelogs/_logs/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -import ChangeLogTwo from "./2024-09-29"; -import ChangelogOne from "./2024-09-28"; -import ChangeLogThree from "./2024-10-04"; -export const Logs = [ - { - name: "Changelog 3", - date: "2024-10-04", - component: ChangeLogThree, - }, - { - name: "Changelog 2", - date: "2024-09-29", - component: ChangeLogTwo, - }, - { - name: "Changelog 1", - date: "2024-09-28", - component: ChangelogOne, - }, -]; diff --git a/docs/app/changelogs/layout.tsx b/docs/app/changelogs/layout.tsx deleted file mode 100644 index 3a2b05dd4f..0000000000 --- a/docs/app/changelogs/layout.tsx +++ /dev/null @@ -1,112 +0,0 @@ -import { Layout } from "./_components/_layout"; -import { useId } from "react"; - -import { Intro, IntroFooter } from "./_components/changelog-layout"; -import { StarField } from "./_components/stat-field"; - -function Timeline() { - let id = useId(); - - return ( -
- -
- ); -} - -function Glow() { - let id = useId(); - - return ( -
- -
-
- ); -} - -function FixedSidebar({ - main, - footer, -}: { - main: React.ReactNode; - footer: React.ReactNode; -}) { - return ( -
- -
-
-
-
- - {main} -
-
-
- {footer} -
-
-
-
- ); -} - -const ChangeLogLayout = ({ children }: { children: React.ReactNode }) => { - return ( -
- } footer={} /> -
-
- -
- {children} -
-
-
- ); -}; - -export default ChangeLogLayout; diff --git a/docs/app/changelogs/page.tsx b/docs/app/changelogs/page.tsx index 4baa67f7d9..ca846be57f 100644 --- a/docs/app/changelogs/page.tsx +++ b/docs/app/changelogs/page.tsx @@ -1,25 +1,148 @@ -import { AnimatePresence } from "@/components/ui/fade-in"; -import { Logs } from "./_logs"; -import { FormattedDate } from "./_components/fmt-dates"; +import Link from "next/link"; +import { useId } from "react"; + +import { changelog } from "@/app/source"; +import { notFound } from "next/navigation"; +import { cn } from "@/lib/utils"; +import { Badge } from "@/components/ui/badge"; +import { IconLink } from "./_components/changelog-layout"; +import { BookIcon, GitHubIcon, XIcon } from "./_components/icons"; +import { DiscordLogoIcon } from "@radix-ui/react-icons"; +import { StarField } from "./_components/stat-field"; + const ChangelogPage = () => { + // @ts-ignore + const page = changelog.getPage(); + + if (page == null) { + notFound(); + } + + const MDX = page.data.body; + return ( -
-
- {Logs.map((log) => { - return ( -
-
- +
+ + + +
+

+ All of the changes made will be{" "} + available here. +

+

+ Better Auth is comprehensive authentication library for TypeScript + that provides a wide range of features to make authentication easier + and more secure. +

+
+
+ + Documentation + + + GitHub + + + Community + +
+

+ Brought to you by{" "} + + BETTER-AUTH. + +

+
+
+
+
+ ( +

-

- -
- ); - })} + ), + h3: (props) => ( +

+ ), + p: (props) =>

, + ul: (props) => ( +

    + ), + li: (props) =>
  • , + a: ({ className, ...props }: any) => ( + + ), + Badge: (props) => ( + + ), + }} + /> +

); }; + export default ChangelogPage; + +function Glow() { + let id = useId(); + + return ( +
+ +
+
+ ); +} diff --git a/docs/components/side-bar.tsx b/docs/components/side-bar.tsx index 568ec8297e..9ac1c193d4 100644 --- a/docs/components/side-bar.tsx +++ b/docs/components/side-bar.tsx @@ -1,17 +1,13 @@ "use client"; -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from "@/components/ui/accordion"; + +import { AnimatePresence, motion, MotionConfig } from "framer-motion"; + import { AsideLink } from "@/components/ui/aside-link"; -import { FadeIn, FadeInStagger } from "@/components/ui/fade-in"; import { Suspense, useEffect, useState } from "react"; import { useSearchContext } from "fumadocs-ui/provider"; import { usePathname, useRouter } from "next/navigation"; import { contents, examples } from "./sidebar-content"; -import { Search } from "lucide-react"; +import { ChevronDownIcon, Search } from "lucide-react"; import { Select, SelectContent, @@ -20,8 +16,11 @@ import { SelectValue, } from "./ui/select"; import { loglib } from "@loglib/tracker"; +import { cn } from "@/lib/utils"; export default function ArticleLayout() { + const [currentOpen, setCurrentOpen] = useState(0); + const { setOpenSearch } = useSearchContext(); const pathname = usePathname(); @@ -131,58 +130,85 @@ export default function ArticleLayout() {

- - {cts.map((item, i) => ( - - -
- {item.Icon && } - {item.title} -
-
- - - {item.list.map((listItem, j) => ( - { - loglib.track("sidebar-link-click", { - title: listItem.title, - href: listItem.href, - }); - }} + +
+ {cts.map((item, index) => ( +
+ + + {currentOpen === index && ( + - Loading...}> - {listItem.group ? ( -
-

- {listItem.title} -

- -
- ) : ( - + {item.list.map((listItem, j) => ( +
{ + loglib.track("sidebar-link-click", { + title: listItem.title, + href: listItem.href, + }); + }} > - - {listItem.title} - - )} - - - ))} - - - - ))} - + Loading...}> + {listItem.group ? ( +
+

+ {listItem.title} +

+ +
+ ) : ( + + + {listItem.title} + + )} +
+
+ ))} +
+ + )} +
+
+ ))} +
+
); } diff --git a/docs/content/changelog/index.mdx b/docs/content/changelog/index.mdx new file mode 100644 index 0000000000..354787bac2 --- /dev/null +++ b/docs/content/changelog/index.mdx @@ -0,0 +1,61 @@ +--- +title: Basic Usage +description: Getting started with Better Auth +--- + +## v0.3.0 (Latest) + +Database Schema Generation, Phone Number Plugin, Anonymous Plugin, Better type Inference, Custom table names, and many more. + +### Features & Changes + +- Database Schema Generation +- Phone Number Plugin +- Anonymous Plugin +- Better type Inference +- User Delete API +- Custom table/model names +- Removed flat db config +- New core table for verification use cases +- Moved passkey challenge keys to be stored on db +- Many bug fixes and improvements + +See [release notes](https://github.com/better-auth/better-auth/releases/tag/v0.3.0) for full list of changes. + + +🚧 We are still in beta and we don't recommend using better-auth in production just yet. + + +## v0.2.0 + +We have added support for database adapters including Prisma, Drizzle, and MongoDB, along with other changes. + +### Changes + +- Database adapters support including Prisma, Drizzle, and MongoDB +- Database hooks +- Cross-domain cookies +- onRequest and onResponse plugin hooks +- Init interface for plugins + +See [Changelog](https://github.com/better-auth/better-auth/releases/tag/v0.2.0) for full list of changes. + + +🚧 We are still in beta and we don't recommend using better-auth in production just yet. + + +## Beta Release + +The first beta release of better-auth is now available! + +### Features + +- Multiple framework support +- Email & Password Authentication +- OAuth Authentication +- Account & Session Management +- Rate Limiting +- Multiple Plugins +- Migration CLI +- And more... +