[PR #4421] [MERGED] docs: fix APIMethod component styling after fumadocs update #5377

Closed
opened 2026-03-13 12:20:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4421
Author: @Kinfe123
Created: 9/4/2025
Status: Merged
Merged: 9/4/2025
Merged by: @himself65

Base: mainHead: fix/api-method-code-blocks


📝 Commits (2)

📊 Changes

4 files changed (+126 additions, -22 deletions)

View changed files

📝 docs/components/api-method.tsx (+1 -1)
📝 docs/components/endpoint.tsx (+0 -20)
📝 docs/components/ui/code-block.tsx (+1 -1)
docs/components/ui/dynamic-code-block.tsx (+124 -0)

📄 Description

before:
Screenshot 2025-09-04 at 12 32 10 PM

after:
Screenshot 2025-09-04 at 12 23 01 PM


Summary by cubic

Fixes API method code block styling after the latest fumadocs update. Restores consistent padding/borders and removes a redundant copy button.

  • Bug Fixes
    • Replaced fumadocs DynamicCodeBlock with a local wrapper using our CodeBlock/Pre + Shiki for consistent spacing, borders, and rounding.
    • Switched APIMethod to the new local DynamicCodeBlock.
    • Increased code block copy button size to align with updated UI.
    • Removed the Endpoint header copy button to avoid duplication with the new docs UI.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4421 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 9/4/2025 **Status:** ✅ Merged **Merged:** 9/4/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `fix/api-method-code-blocks` --- ### 📝 Commits (2) - [`c081802`](https://github.com/better-auth/better-auth/commit/c08180247a24d673239a001015fa65deddbcea52) fix: api method codeblock style - [`f9c6aa7`](https://github.com/better-auth/better-auth/commit/f9c6aa7ff1da89eb706f206b1b8e618b0efccfc7) lint ### 📊 Changes **4 files changed** (+126 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/api-method.tsx` (+1 -1) 📝 `docs/components/endpoint.tsx` (+0 -20) 📝 `docs/components/ui/code-block.tsx` (+1 -1) ➕ `docs/components/ui/dynamic-code-block.tsx` (+124 -0) </details> ### 📄 Description before: <img width="731" height="312" alt="Screenshot 2025-09-04 at 12 32 10 PM" src="https://github.com/user-attachments/assets/cbd3f48d-f654-4ce6-ab67-ac6b197471e7" /> after: <img width="983" height="407" alt="Screenshot 2025-09-04 at 12 23 01 PM" src="https://github.com/user-attachments/assets/f657a921-7c68-43ef-995f-dc09b22223b1" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes API method code block styling after the latest fumadocs update. Restores consistent padding/borders and removes a redundant copy button. - **Bug Fixes** - Replaced fumadocs DynamicCodeBlock with a local wrapper using our CodeBlock/Pre + Shiki for consistent spacing, borders, and rounding. - Switched APIMethod to the new local DynamicCodeBlock. - Increased code block copy button size to align with updated UI. - Removed the Endpoint header copy button to avoid duplication with the new docs UI. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:20:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5377