gbook

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

GBook

Apache 2.0 License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Title            string
	SourceFolderPath string
	OutputFolderPath string

	// Whether generate a check file
	CompileCheckFile bool

	Template     fs.ReadFileFS
	TemplatePath string

	ServeInfo
	// contains filtered or unexported fields
}

Info is the output book's information

func New

func New() *Info

func (*Info) Compile

func (i *Info) Compile() (err error)

func (*Info) InitOutputFolder

func (i *Info) InitOutputFolder()

type ServeInfo

type ServeInfo struct {
	Port        string
	CertKeyPath string
	Https       bool
}

ServeInfo is the serving data of the book

Directories

Path Synopsis
exec

Jump to

Keyboard shortcuts

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