mkdocs-rc-docs icon indicating copy to clipboard operation
mkdocs-rc-docs copied to clipboard

Incorporate copy button for shell script and other code snippets in the docs

Open krishnakumarg1984 opened this issue 11 months ago • 1 comments

mkdocs for material comes with a new copy code button that makes it easy to copy code such as those given in the example job scripts page here.

Achieving this requires just a simple yaml config update as per their docs here (not sure from which version of mkdocs was that feature incorporated).

krishnakumarg1984 avatar Aug 03 '23 15:08 krishnakumarg1984

I have a half-memory that suggests I might have deliberately left this or a feature like this off on the instruction of the accessibility folks because it made the page incomprehensible to screen readers (via nested buttons with repeated, undifferentiated buttons that each got read out separately?).

If someone's enabling this, please check what it sounds like.

ikirker avatar Aug 04 '23 23:08 ikirker