From c55ea5a4d5b03cbd62ec7daf3c8855b5779242c3 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 24 Nov 2022 08:06:06 -0800 Subject: [PATCH 1/2] 2022-11-24 08:06:06AM --- README.md | 2 ++ d2themes/README.md | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 693f3e40af..db72cafa3f 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,8 @@ defendants.chesscom -> hans: 72 page report of cheating D2 render example +> Rendered with the TALA layout engine. + > For more examples, see [./docs/examples](./docs/examples). ## Quickstart diff --git a/d2themes/README.md b/d2themes/README.md index 3825d9c0f6..dd9425e22c 100644 --- a/d2themes/README.md +++ b/d2themes/README.md @@ -3,6 +3,15 @@ `d2themes` defines themes for D2. You can add a new one in `./d2themescatalog`, give a unique ID, and specify it in the CLI or library to see it. +For example, to use the "Shirley temple" theme, which has an ID of 102: + +```sh +d2 --theme 102 --watch example-twitter.d2 out-twitter.svg +``` + +Run `d2 --help` or `man d2` for more. + + # Themes overview From 9dbd9eb213fcd18d991ad7de02262d5de2fbe3e0 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 24 Nov 2022 08:07:22 -0800 Subject: [PATCH 2/2] 2022-11-24 08:07:22AM --- d2themes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2themes/README.md b/d2themes/README.md index dd9425e22c..ce08ce21be 100644 --- a/d2themes/README.md +++ b/d2themes/README.md @@ -6,7 +6,7 @@ unique ID, and specify it in the CLI or library to see it. For example, to use the "Shirley temple" theme, which has an ID of 102: ```sh -d2 --theme 102 --watch example-twitter.d2 out-twitter.svg +d2 --theme 102 in.d2 out.svg ``` Run `d2 --help` or `man d2` for more.