fish-shell/doc_src
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
..
cmds commandline: Add --is-valid option (#8142) 2021-08-14 11:29:22 +02:00
python_docs_theme docs: Add copy buttons to all the codeblocks 2021-08-15 20:09:49 +02:00
commands.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
completions.rst docs: Replace all internal links with :ref:s 2021-03-26 19:32:14 +01:00
conf.py docs: Remove lAtEx thing again 2021-07-14 17:03:41 +02:00
design.rst Make rationale spacing consistent 2020-10-12 20:25:35 +02:00
faq.rst docs: Made the abort/edit history feature more discoverable. 2021-07-03 16:39:32 +02:00
fish_for_bash_users.rst docs: Fix a label 2021-07-27 18:49:34 +02:00
fish_indent_lexer.py Highlight keywords differently 2021-02-07 21:18:51 +01:00
index.rst doc: Some more rewordings 2021-07-23 18:00:57 +02:00
interactive.rst docs: Document that commands with space will be kept until the next 2021-08-01 14:01:49 +02:00
language.rst docs: Remove stuff from globbing 2021-08-11 18:42:21 +02:00
license.rst Update copyright years 2021-05-03 13:12:11 +02:00
relnotes.rst docs: call the CHANGELOG "release notes" 2021-02-25 22:46:24 +08:00
tutorial.rst docs: Add some links 2021-07-16 18:08:55 +02:00