Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-29 00:18:23 +00:00
parent a3692d638b
commit 75f807d6af
175 changed files with 1107 additions and 775 deletions

12
tldr/d2
View File

@@ -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}}`