-
Notifications
You must be signed in to change notification settings - Fork 416
docs: fix code block formatting in better-auth integration #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Fix code block formatting in better-auth.md - Add proper code highlighting for openAPI plugin usage 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
WalkthroughThe docs updated the Better Auth integration example to show configuring Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
```ts | ||
export const auth = betterAuth({ | ||
plugins: [openAPI()], // [!code ++] | ||
}); | ||
|
||
|
||
import { openAPI } from 'better-auth/plugins' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the openAPI
import into the code fence
The snippet now references openAPI()
but the corresponding import
sits outside the fenced block, so the rendered example is both broken and missing syntax highlighting for that line—exactly what this PR set out to fix. Pull the import back inside the same ````tsfence (ideally above
export const auth`) so readers can copy/paste a valid example.
-```ts
-export const auth = betterAuth({
- plugins: [openAPI()], // [!code ++]
-});
-
-
-import { openAPI } from 'better-auth/plugins'
+```ts
+import { openAPI } from 'better-auth/plugins'
+
+export const auth = betterAuth({
+ plugins: [openAPI()], // [!code ++]
+});
🤖 Prompt for AI Agents
In docs/integrations/better-auth.md around lines 101 to 108, the import for
openAPI is placed outside the TypeScript code fence which breaks the example and
its syntax highlighting; move the line importing openAPI into the same ```ts
fenced block above the export so the snippet is self-contained and
copy/pasteable, ensuring the import appears before export const auth and
removing the duplicate or stray import outside the fence.
Summary
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit