Get rid of descriptions on deprecated types

This commit is contained in:
David Vogel 2025-11-16 15:56:44 +00:00
parent f4c7139902
commit cb8075d88f
2 changed files with 0 additions and 7 deletions

View File

@ -5,7 +5,5 @@
package typst
// CLIOptions contains all parameters that can be passed to a Typst CLI.
//
// Deprecated: Use typst.OptionsCompile instead.
type CLIOptions = OptionsCompile

5
cli.go
View File

@ -132,11 +132,6 @@ func (c CLI) Compile(input io.Reader, output io.Writer, options *OptionsCompile)
return nil
}
// CompileWithVariables takes a Typst document from input, and renders it into the output writer.
// The options parameter is optional, and can be nil.
//
// Additionally this will inject the given map of variables into the global scope of the Typst document.
//
// Deprecated: You should use typst.InjectValues in combination with the normal Compile method instead.
func (c CLI) CompileWithVariables(input io.Reader, output io.Writer, options *OptionsCompile, variables map[string]any) error {
varBuffer := bytes.Buffer{}