mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 08:02:34 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/d2
12
tldr/d2
@@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`d2 {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
|
||||
- [w]atch live changes made to a D2 source file in the default web browser:
|
||||
- Watch live changes made to a D2 source file in the default web browser:
|
||||
|
||||
`d2 --watch {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
`d2 {{[-w|--watch]}} {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
|
||||
- Format a D2 source file:
|
||||
|
||||
@@ -25,10 +25,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`d2 themes`
|
||||
|
||||
- Use a different [t]heme for the output file (list available themes first to get the desired `theme_id`):
|
||||
- Use a different theme for the output file (list available themes first to get the desired `theme_id`):
|
||||
|
||||
`d2 --theme {{theme_id}} {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
`d2 {{[-t|--theme]}} {{theme_id}} {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
|
||||
- Make rendered diagrams look like hand [s]ketches:
|
||||
- Make rendered diagrams look like hand sketches:
|
||||
|
||||
`d2 --sketch true {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
`d2 {{[-s|--sketch]}} true {{path/to/input_file.d2}} {{path/to/output_file.ext}}`
|
||||
|
||||
Reference in New Issue
Block a user