Skip to content

Add copy button for code blocks - #400

Closed
NichtsHsu wants to merge 2 commits into
cotes2020:masterfrom
NichtsHsu:original-chirpy
Closed

Add copy button for code blocks#400
NichtsHsu wants to merge 2 commits into
cotes2020:masterfrom
NichtsHsu:original-chirpy

Conversation

@NichtsHsu

@NichtsHsu NichtsHsu commented Aug 29, 2021

Copy link
Copy Markdown
Contributor

Description

Implement #396

Porting from kitian616/jekyll-TeXt-theme#218

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How has this been tested

  • I have run bash ./tools/test.sh --build (at the root of the project) locally and passed
  • I have tested this feature in the browser

Test Configuration

  • Browser type & version: Chrome 92.0.4515.159
  • Operating system: Windows 10 21H1 & Ubuntu 20.04 LTS
  • Bundler version: 2.2.16 (Windows) & 2.1.4 (Ubuntu)
  • Ruby version: 2.7.2p137 (Windows) & 2.7.0p0 (Ubuntu)
  • Jekyll version: 4.2.0

Test Result

动画1
动画2

Checklist

  • My code follows the Google style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@NichtsHsu
NichtsHsu force-pushed the original-chirpy branch 5 times, most recently from 109f17e to f91a16e Compare August 29, 2021 10:08
@NichtsHsu
NichtsHsu force-pushed the original-chirpy branch 2 times, most recently from b01703b to 04757d8 Compare August 30, 2021 04:21
@cotes2020 cotes2020 closed this in 1e785c9 Sep 10, 2021
ambersun1234 pushed a commit to ambersun1234/chirpy.ambersun1234.github.io that referenced this pull request Feb 10, 2023
hjlee0710 pushed a commit to hjlee0710/hjlee0710.github.io that referenced this pull request Jul 9, 2025
hjlee0710 pushed a commit to hjlee0710/hjlee0710.github.io that referenced this pull request Jul 9, 2025
palonso pushed a commit to palonso/palonso.github.io that referenced this pull request Jul 28, 2025
nicetrykiddo pushed a commit to nicetrykiddo/writeups that referenced this pull request Feb 26, 2026
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.

1 participant