suborbital / docs

Documentation monorepo for Suborbital projects and products
https://docs.suborbital.dev
Apache License 2.0
8 stars 5 forks source link

Nicer formatting for console output in docs #147

Open flaki opened 2 years ago

flaki commented 2 years ago

A really cool trick some docs sites employ is when they show a terminal command and its output they make the command itself selectable (and highlighted, even), while the passive output and terminal prompt is disabled/unselectable and faded out to make it clearer what's the actual command that is being run and what is the expected output.

We should consider implementing something like this (ideally besides the usual "copy" button).

image