Skip to content

docs: add code copy button for code blocks with no output#576

Open
neo-0007 wants to merge 2 commits intourunc-dev:mainfrom
neo-0007:feat/enable-copy/pr-432-rework
Open

docs: add code copy button for code blocks with no output#576
neo-0007 wants to merge 2 commits intourunc-dev:mainfrom
neo-0007:feat/enable-copy/pr-432-rework

Conversation

@neo-0007
Copy link
Copy Markdown

Description

This PR builds in top of #432

@MUFFANUJ implemented the feature and logic for:

  • copy button feature and styling
  • use .language-console in custom css to disable copy button for code blocks with output ( reason in issue discussion )

@neo-0007 Fixed the issues described in #432 (comment)

  • rename all code blocks with output as console so that the copy button gets disabled
  • fix auto expand of toc in left navigation menu

Related issues

How was this tested?

This was tested by locally running the mkdocs site:

After Change:

copy-button
image

LLM usage

(N/A)

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

MUFFANUJ and others added 2 commits April 27, 2026 23:35
Signed-off-by: anujkumar.singh <anujsinghhero292@gmail.com>
- fix navigation issues introduced in fb63bc5
- remove left toc bar auto expand in navigation sections
- rename code blocks with output as console
- add new contributor

- Should fix: urunc-dev#431

Signed-off-by: Hrishikesh Gohain <hrishikeshgohain123@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for urunc ready!

Name Link
🔨 Latest commit b4df42c
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69efb9b1982d0e0008b41068
😎 Deploy Preview https://deploy-preview-576--urunc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@neo-0007
Copy link
Copy Markdown
Author

Hi @cmainas , can you allow the workflows to run ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing “Copy Code” Button in Documentation Code Blocks

2 participants