internal

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(srcFolder, destination string, s *site) error

Generates the static html files for the site and writes them to the destination folder.

func NewDocument

func NewDocument(path string, content []byte) (document, error)

NewDocument takes the path of a document and its content and returns a parsed document with the metadata applied.

func NewSite

func NewSite(folder string) (*site, error)

Reads the folder and returns the parsed site with all the documents this site will be used to generate the static html files.

Types

type Link struct {
	Text     string
	Link     string
	Icon     string
	ImageSrc string
}

Jump to

Keyboard shortcuts

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