openshift-evangelists / workshopper

Workshop content rendering tool
63 stars 42 forks source link

copypaste css no longer works in latest builds #62

Closed thoraxe closed 5 years ago

thoraxe commented 5 years ago

As an example: http://testdrive-master-labguides.6923.rh-us-east-1.openshiftapps.com/workshop/ocp-admin-testdrive/lab/environment

Looks like we need:

.sectionbody .copypaste .content pre.CodeRay.hilight {  border: 1px solid #FF0000 }

This works in docker.io/osevg/workshopper/0.2

thoraxe commented 5 years ago

Digging into this I'm wondering if we lost the original intent of "copypaste".

Originally "copypaste" on a code block was for a warning that the command being copy/pasted would have to be modified. In other words, it tells the user "don't just blindly copy/paste this".

But now it appears that might be being used generically for all code blocks where we intend someone to actually copy/paste what's written in the block.

It appears there's now some javascript that will automatically highlight all the test in a copypaste block when clicked.

Does this mean that we now need a "new" style to apply to a copypaste block where the command needs to be modified? (eg: copypaste-warning)