internal

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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, dstFolder string, site *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

This section is empty.

Jump to

Keyboard shortcuts

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