validate

package
v0.0.0-...-2dbda58 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(path string) (*report.Report, error)

Validate runs all validation checks on an EPUB file and returns a report.

func ValidateWithOptions

func ValidateWithOptions(path string, opts Options) (*report.Report, error)

ValidateWithOptions runs validation with the given options.

Types

type Options

type Options struct {
	// Strict enables checks that follow the EPUB spec more closely,
	// even when the reference epubcheck tool doesn't flag them.
	// This includes OCF-005 (compressed mimetype) and RSC-002 (file not in manifest).
	Strict bool

	// Accessibility enables accessibility metadata and best-practice checks (ACC-*).
	// These are not flagged by epubcheck without --profile and are off by default.
	Accessibility bool
}

Options configures validation behavior.

Jump to

Keyboard shortcuts

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