You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
In the code snippets, there is no button to copy the code. This is usually a very useful feature. I mean code snippets in docs. This is the example from Terraform docs:
I guess this should be added to the common docs-engine and introduced to dvc.org/doc and cml.dev/doc as well.
One thing to note is that for shell code snippets we always add $ at the beginning of the line. It shouldn't be copied. Also those scripts usually have some output, it shouldn't be copied also:
For python snippets, AFAIK, we don't add any outputs, so those should be copied in full. The same goes for yaml snippets.
In the code snippets, there is no button to copy the code. This is usually a very useful feature. I mean code snippets in docs. This is the example from Terraform docs:
I guess this should be added to the common docs-engine and introduced to dvc.org/doc and cml.dev/doc as well.
One thing to note is that for
shell
code snippets we always add$
at the beginning of the line. It shouldn't be copied. Also those scripts usually have some output, it shouldn't be copied also:For
python
snippets, AFAIK, we don't add any outputs, so those should be copied in full. The same goes foryaml
snippets.cc @rogermparent
The text was updated successfully, but these errors were encountered: