Documentation
¶
Overview ¶
Package exporter generates static HTML sites from markdown content trees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
ContentType returns the MIME type for the given format.
func FileExtension ¶
FileExtension returns the file extension for the given format.
func IsValidFormat ¶
IsValidFormat checks if the given format is valid.
Types ¶
type ExportPageOptions ¶
ExportPageOptions configures a single page export.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter renders markdown content into a static HTML bundle.
func (*Exporter) Export ¶
Export walks the markdown tree rooted at opts.Root and writes a static site to opts.OutputDir.
func (*Exporter) ExportPage ¶
func (e *Exporter) ExportPage(ctx context.Context, opts ExportPageOptions) error
ExportPage exports a single page in the specified format.
Click to show internal directories.
Click to hide internal directories.