build

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(c *cli.Context) error

func BuildAllFiles

func BuildAllFiles(c *cli.Context) (*[]DocFile, *[]*assets.NavSection, error)

func BuildFile

func BuildFile(files []DocFile, conf *config.Config, navSections []*assets.NavSection, idx int, file DocFile) error

Types

type DocFile

type DocFile struct {
	Path     string
	OutPath  string
	InPath   string
	Matter   DocMatter
	File     *os.File
	Contents string
	ModTime  time.Time
}

func CreateDocFile

func CreateDocFile(conf *config.Config, srcDir string, outDir string, path string, info os.FileInfo) (*DocFile, error)

type DocMatter

type DocMatter struct {
	Title       string `yaml:"title" validate:"required"`
	Description string `yaml:"description" `
	Path        string `yaml:"path"`
	Section     string `yaml:"section"`
}

Jump to

Keyboard shortcuts

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