mirror of
https://github.com/Dadido3/go-typst.git
synced 2025-11-20 11:49:36 +00:00
Get rid of descriptions on deprecated types
This commit is contained in:
parent
f4c7139902
commit
cb8075d88f
@ -5,7 +5,5 @@
|
|||||||
|
|
||||||
package typst
|
package typst
|
||||||
|
|
||||||
// CLIOptions contains all parameters that can be passed to a Typst CLI.
|
|
||||||
//
|
|
||||||
// Deprecated: Use typst.OptionsCompile instead.
|
// Deprecated: Use typst.OptionsCompile instead.
|
||||||
type CLIOptions = OptionsCompile
|
type CLIOptions = OptionsCompile
|
||||||
|
|||||||
5
cli.go
5
cli.go
@ -132,11 +132,6 @@ func (c CLI) Compile(input io.Reader, output io.Writer, options *OptionsCompile)
|
|||||||
return nil
|
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.
|
// 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 {
|
func (c CLI) CompileWithVariables(input io.Reader, output io.Writer, options *OptionsCompile, variables map[string]any) error {
|
||||||
varBuffer := bytes.Buffer{}
|
varBuffer := bytes.Buffer{}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user