Documentation
¶
Overview ¶
Package bundle packages a document and its dependencies into a portable .mdoc zip archive. The bundle is a regular zip with a custom extension — same pattern as .docx / .epub / .pptx — so any unzip tool can crack it open and the file manager can preview the contents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveOutputPath ¶ added in v0.1.1
ResolveOutputPath returns the absolute path Export will write to: the explicit outputPath when given, otherwise <source-basename>.mdoc next to the document. Exposed so callers can check for an existing file before committing to a bundle.
Types ¶
type Options ¶
type Options struct {
// OutputPath is the .mdoc file to write. Empty means write next to
// the source document as <basename>.mdoc.
OutputPath string
}
Options configures Export.
type Result ¶
type Result struct {
OutputPath string
// Entries lists the bundle-relative paths included, in insertion order.
Entries []string
}
Result describes what Export produced.
Click to show internal directories.
Click to hide internal directories.