From 5a9154b37212abaa3822be858ebd84083026d12c Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Tue, 4 Feb 2025 06:47:35 -0700 Subject: [PATCH] man page --- ci/release/template/man/d2.1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ci/release/template/man/d2.1 b/ci/release/template/man/d2.1 index 90831ef73..24ebdd7e1 100644 --- a/ci/release/template/man/d2.1 +++ b/ci/release/template/man/d2.1 @@ -15,6 +15,8 @@ .Ar layout Op Ar name .Nm d2 .Ar fmt Ar file.d2 ... +.Nm d2 +.Ar play Ar file.d2 .Sh DESCRIPTION .Nm compiles and renders @@ -141,6 +143,9 @@ Print version information and exit .It Fl -stdout-format Ar string Set the output format when writing to stdout. Supported formats are: png, svg. Only used when output is set to stdout (-) .Ns . +.It Fl -no-xml-tag Ar false +Omit XML tag () from output SVG files. Useful when generating SVGs for direct HTML embedding +.Ns . .El .Sh SUBCOMMANDS .Bl -tag -width Fl @@ -155,10 +160,8 @@ Lists available themes .Ns . .It Ar fmt Ar file.d2 ... Format all passed files -.It Fl -no-xml-tag Ar false -Omit XML tag () from output SVG files. Useful when generating SVGs for direct HTML embedding -.Ns . -.Ns . +.It Ar play Ar file.d2 +Opens the file in playground, an online web viewer (https://play.d2lang.com) .El .Sh ENVIRONMENT VARIABLES Many flags can also be set with environment variables.