coderefinery / sphinx-lesson

Sphinx extension for creating CodeRefinery lessons
https://coderefinery.github.io/sphinx-lesson/
MIT License
15 stars 20 forks source link

Prompt (e.g. `$` is copied with sphinx-copybutton) #93

Open rkdarst opened 2 years ago

rkdarst commented 2 years ago

Example: https://coderefinery.github.io/git-intro/basics/#recording-a-snapshot-with-git copying the text excludes the $, but if you click the copy button, the $ are copied.

rkdarst commented 2 years ago

https://github.com/executablebooks/sphinx-copybutton/pull/178

In theory this would work:

pip install https://github.com/rkdarst/sphinx-copybutton/archive/exclude-unselectable-3.zip

but I get this error:

Error: Support for symbolic links is required

A local pip install with a local directory path does work, and does result in $ not being copied.