docs: Added date functionality for each releases + timeline (#342)

This commit is contained in:
Ali Samadi
2024-10-25 21:29:02 -07:00
committed by GitHub
parent fcd6db39c8
commit 56eb9b7281
2 changed files with 14 additions and 6 deletions

View File

@@ -68,15 +68,23 @@ const ChangelogPage = () => {
</p>
</div>
</div>
<div className="px-4 md:px-8 pb-12 md:py-12">
<div className="px-4 relative md:px-8 pb-12 md:py-12">
<div className="absolute top-0 left-0 mb-2 w-2 h-full -translate-x-full bg-gradient-to-b from-black/10 dark:from-white/20 from-50% to-50% to-transparent bg-[length:100%_3px] bg-repeat-y"></div>
<div className="max-w-2xl">
<MDX
components={{
h2: (props) => (
<h2
className="text-2xl mt-16 font-bold tracking-tighter"
className="text-2xl relative mt-16 font-bold flex-col flex justify-center tracking-tighter"
{...props}
/>
>
<time className="text-gray-500 dark:text-white/80 text-sm block md:absolute md:left-[-140px] font-normal tracking-normal">
{props.children?.toString().includes("date=") &&
props.children?.toString().split("date=")[1]}
</time>
{props.children?.toString().split("date=")[0].trim()}
</h2>
),
h3: (props) => (
<h3 className="text-xl tracking-tighter" {...props} />

View File

@@ -3,7 +3,7 @@ title: Basic Usage
description: Getting started with Better Auth
---
## v0.3.0 (Latest)
## v0.3.0 (Latest) date=Oct 4, 2024
Database Schema Generation, Phone Number Plugin, Anonymous Plugin, Better type Inference, Custom table names, and many more.
@@ -26,7 +26,7 @@ See [release notes](https://github.com/better-auth/better-auth/releases/tag/v0.3
🚧 We are still in beta and we don't recommend using better-auth in production just yet.
</Badge>
## v0.2.0
## v0.2.0 date=Oct 4, 2024
We have added support for database adapters including Prisma, Drizzle, and MongoDB, along with other changes.
@@ -44,7 +44,7 @@ See [Changelog](https://github.com/better-auth/better-auth/releases/tag/v0.2.0)
🚧 We are still in beta and we don't recommend using better-auth in production just yet.
</Badge>
## Beta Release
## Beta Release date=Oct 4, 2024
The first beta release of better-auth is now available!