html

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLExporter

type HTMLExporter struct{}

HTMLExporter convert an article to HTML format

func (*HTMLExporter) Export

func (exp *HTMLExporter) Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error)

Export an article to HTML format

type SingleHTMLExporter

type SingleHTMLExporter struct {
	// contains filtered or unexported fields
}

SingleHTMLExporter convert an article to HTML offline format

func (*SingleHTMLExporter) Export

func (exp *SingleHTMLExporter) Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error)

Export an article to HTML offline format

type ZIPExporter

type ZIPExporter struct {
	// contains filtered or unexported fields
}

ZIPExporter convert an article to a ZIP archive

func (*ZIPExporter) Export

func (exp *ZIPExporter) Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error)

Export an article to ZIP archive

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL