Skip to content

Add HTML copy button to code examples in the readme and manual - #1091

Merged
matsl merged 2 commits into
masterfrom
pr_fix_code_copy_button
Oct 30, 2026
Merged

matsl merged 2 commits into
masterfrom
pr_fix_code_copy_button

Conversation

@matsl

@matsl matsl commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What

  • man/Lucide-LICENSE: Licens information for svg icons.

  • man/copy-btn.css:

  • man/copy-btn.html:

  • man/copy-btn.js: Copy button resources.

  • MANIFEST: Add man/Lucide-LICENSE, man/copy-btn.css, man/copy-btn.html,
    man/copy-btn.js.

  • Makefile (TEXI2HTML): Use copy-btn.css.
    (README.md.html): Use pandoc to add copy-btn to the generated html.

  • man/hyperbole.texi (Package Installation): Add @lisp command around
    @verbatiminclude to get a unique code tags in the generated
    HTML. Include at document end copy-btn.js.

  • man/hyperbole.html:

  • README.md.html: Generated HTML.

Why

Allow readers of the web versions of README.md and Hyperboles manual to
copy the source code examples by clicking a button.

Comment thread man/copy-btn.html Resolved
Allow readers of the web versions of README.md and Hyperboles manual to
copy the source code examples by clicking a button.

* man/Lucide-LICENSE: Licens information for svg icons.

* man/copy-btn.css:
* man/copy-btn.html:
* man/copy-btn.js: Copy button resources.

* MANIFEST: Add man/Lucide-LICENSE, man/copy-btn.css, man/copy-btn.html,
    man/copy-btn.js.

* Makefile (TEXI2HTML): Use copy-btn.css.
    (README.md.html): Use pandoc to add copy-btn to the generated html.

* man/hyperbole.texi (Package Installation): Add @lisp command around
    @verbatiminclude to get a unique code tags in the generated
    HTML. Include at document end copy-btn.js.

* man/hyperbole.html:
* README.md.html: Generated HTML.
@matsl
matsl force-pushed the pr_fix_code_copy_button branch from b991ca2 to a878ac0 Compare October 30, 2026 21:51
@rswgnu

rswgnu commented Oct 30, 2026 via email

Copy link
Copy Markdown
Owner

@matsl
matsl merged commit e9974c1 into master Oct 30, 2026
6 checks passed
@matsl
matsl deleted the pr_fix_code_copy_button branch October 30, 2026 23:17
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.

2 participants