[PR #5525] [MERGED] fix(docs): enable code block copying in documentation page #31662

Closed
opened 2026-04-17 22:33:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5525
Author: @vagxrth
Created: 10/23/2025
Status: Merged
Merged: 10/23/2025
Merged by: @ping-maxwell

Base: canaryHead: fix/copy-button


📝 Commits (3)

  • cfeb0b2 fix(docs): enable code block copying in documentation page
  • a9f7b08 refactor(docs): clean up pre component formatting in documentation page
  • 701a53a refactor(docs): improve formatting of CodeBlock component in documentation page

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 docs/app/docs/[[...slug]]/page.tsx (+5 -1)

📄 Description

This pull request adds a copy component to Install the Package under the Installation section in the docs.

Before

https://github.com/user-attachments/assets/ed4b7f37-2b0a-489f-a720-2b90368aedbd

After

https://github.com/user-attachments/assets/78e2c2e7-a721-4e5a-9783-56e1d0fc3460


Summary by cubic

Enable copy button on code blocks in the docs so users can copy install commands and examples with one click. Adds allowCopy to the CodeBlock in the docs page renderer.


🔄 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/5525 **Author:** [@vagxrth](https://github.com/vagxrth) **Created:** 10/23/2025 **Status:** ✅ Merged **Merged:** 10/23/2025 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `canary` ← **Head:** `fix/copy-button` --- ### 📝 Commits (3) - [`cfeb0b2`](https://github.com/better-auth/better-auth/commit/cfeb0b229cd8e1eaa45e8b503b484248f834ed6c) fix(docs): enable code block copying in documentation page - [`a9f7b08`](https://github.com/better-auth/better-auth/commit/a9f7b0895a2609d37a760f4944ab900ee456db3f) refactor(docs): clean up pre component formatting in documentation page - [`701a53a`](https://github.com/better-auth/better-auth/commit/701a53af6d970bc39900a9a5db4834a0a9e6ace5) refactor(docs): improve formatting of CodeBlock component in documentation page ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/docs/[[...slug]]/page.tsx` (+5 -1) </details> ### 📄 Description This pull request adds a copy component to ``Install the Package`` under the ``Installation`` section in the docs. ## Before https://github.com/user-attachments/assets/ed4b7f37-2b0a-489f-a720-2b90368aedbd ## After https://github.com/user-attachments/assets/78e2c2e7-a721-4e5a-9783-56e1d0fc3460 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Enable copy button on code blocks in the docs so users can copy install commands and examples with one click. Adds allowCopy to the CodeBlock in the docs page renderer. <!-- 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-04-17 22:33:13 -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#31662