man page
This commit is contained in:
parent
7c132758ab
commit
5a9154b372
1 changed files with 7 additions and 4 deletions
|
|
@ -15,6 +15,8 @@
|
||||||
.Ar layout Op Ar name
|
.Ar layout Op Ar name
|
||||||
.Nm d2
|
.Nm d2
|
||||||
.Ar fmt Ar file.d2 ...
|
.Ar fmt Ar file.d2 ...
|
||||||
|
.Nm d2
|
||||||
|
.Ar play Ar file.d2
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
compiles and renders
|
compiles and renders
|
||||||
|
|
@ -141,6 +143,9 @@ Print version information and exit
|
||||||
.It Fl -stdout-format Ar string
|
.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 (-)
|
Set the output format when writing to stdout. Supported formats are: png, svg. Only used when output is set to stdout (-)
|
||||||
.Ns .
|
.Ns .
|
||||||
|
.It Fl -no-xml-tag Ar false
|
||||||
|
Omit XML tag (<?xml ...?>) from output SVG files. Useful when generating SVGs for direct HTML embedding
|
||||||
|
.Ns .
|
||||||
.El
|
.El
|
||||||
.Sh SUBCOMMANDS
|
.Sh SUBCOMMANDS
|
||||||
.Bl -tag -width Fl
|
.Bl -tag -width Fl
|
||||||
|
|
@ -155,10 +160,8 @@ Lists available themes
|
||||||
.Ns .
|
.Ns .
|
||||||
.It Ar fmt Ar file.d2 ...
|
.It Ar fmt Ar file.d2 ...
|
||||||
Format all passed files
|
Format all passed files
|
||||||
.It Fl -no-xml-tag Ar false
|
.It Ar play Ar file.d2
|
||||||
Omit XML tag (<?xml ...?>) from output SVG files. Useful when generating SVGs for direct HTML embedding
|
Opens the file in playground, an online web viewer (https://play.d2lang.com)
|
||||||
.Ns .
|
|
||||||
.Ns .
|
|
||||||
.El
|
.El
|
||||||
.Sh ENVIRONMENT VARIABLES
|
.Sh ENVIRONMENT VARIABLES
|
||||||
Many flags can also be set with environment variables.
|
Many flags can also be set with environment variables.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue