docusaurus
docusaurus copied to clipboard
feat(theme-classic): code block button place improve
Pre-flight checklist
- [x] I have read the Contributing Guidelines on pull requests.
- [x] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
- [ ] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.
Motivation
improve code block button place when it has code block title.
the following pic shows the difference after the PR change.
Code block button with title
Code block button without title
My website implementation via custom css on docusaurus
Test Plan
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs
[V2]
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | d7c9188fdd23b41053920c1b32f9960a472d8a2b |
| Latest deploy log | https://app.netlify.com/sites/docusaurus-2/deploys/66d22a2bf022fd00080d34ff |
| Deploy Preview | https://deploy-preview-10461--docusaurus-2.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
⚡️ Lighthouse report for the deploy preview of this PR
| URL | Performance | Accessibility | Best Practices | SEO | Report |
|---|---|---|---|---|---|
| / | 🟠 81 | 🟢 98 | 🟢 96 | 🟢 100 | Report |
| /docs/installation | 🟠 60 | 🟢 97 | 🟢 100 | 🟢 100 | Report |
| /docs/category/getting-started | 🟠 74 | 🟢 100 | 🟢 100 | 🟠 86 | Report |
| /blog | 🟠 63 | 🟢 96 | 🟢 100 | 🟠 86 | Report |
| /blog/preparing-your-site-for-docusaurus-v3 | 🔴 48 | 🟢 92 | 🟢 100 | 🟢 100 | Report |
| /blog/tags/release | 🟠 65 | 🟢 96 | 🟢 100 | 🟠 86 | Report |
| /blog/tags | 🟠 75 | 🟢 100 | 🟢 100 | 🟠 86 | Report |
The latest updates on your projects. Learn more about Argos notifications ↗︎
| Build | Status | Details | Updated (UTC) |
|---|---|---|---|
| default (Inspect) | ✅ No changes detected | - | Dec 31, 2024, 11:14 PM |