fish-shell/doc_src/python_docs_theme
Fabian Homborg 7f34b8ab53 docs: Add copy buttons to all the codeblocks
This uses a bit of javascript to add copy buttons, so you can directly
copy all the code in a given block to the clipboard!

For codeblocks without prompts, it just copies all the code, for
blocks with prompts, it copies all the lines after prompts, under the
assumption that that's the code to be executed.

It would give you *all* the lines, so the output wouldn't be
interleaved like it is in the html, but good enough.

The buttons appear on hover, so they aren't usable on phones, but
since you won't really have a clipboard on phones and I have no idea
how to make them not always in front of the text otherwise: Eh.

I'm not in love with the javascript here, but it'll do.
2021-08-15 20:09:49 +02:00
..
static docs: Add copy buttons to all the codeblocks 2021-08-15 20:09:49 +02:00
__init__.py Reformat 2020-11-22 14:39:48 +01:00
globaltoc.html docs: Fix TOC text and put them in a div 2021-01-27 22:02:35 +01:00
layout.html docs: Add copy buttons to all the codeblocks 2021-08-15 20:09:49 +02:00
localtoc.html docs: Fix TOC text and put them in a div 2021-01-27 22:02:35 +01:00
theme.conf docs: Add a brief summary of the changes to the theme 2020-10-04 15:09:20 +02:00