fluent-bit-docs icon indicating copy to clipboard operation
fluent-bit-docs copied to clipboard

Inclusion of bash prompt character in copy widget for online documentation

Open linxcat opened this issue 5 years ago • 2 comments

This page: https://docs.fluentbit.io/manual/installation/linux/amazon-linux Coded here: https://github.com/fluent/fluent-bit-docs/blob/1.6/installation/linux/amazon-linux.md

Has a widget that auto-copies the code blocks. It copies the "$" from the script block, making the command invalid. It should not be included as part of the block. This is the case on the latter 3 blocks

linxcat avatar Nov 24 '20 20:11 linxcat

Seperately, the last block is totally useless, since it's an example return and thus copying it is meaningless

linxcat avatar Nov 24 '20 20:11 linxcat

Thanks for submitting the issue @linxcat , this is a good point - we generally are using markdown format and the copy is added automatically as part of the GitBook featureset, we can look into only making the copy button available when there is truly a copy and paste motion that can be done.

agup006 avatar Dec 07 '20 05:12 agup006

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] avatar Oct 22 '22 02:10 github-actions[bot]