Documentation ¶
Index ¶
- Constants
- Variables
- func FilterBuilds(repo *archive.Repo, builds []archive.Build) []archive.Build
- func GeneratePages(index *index.Root, rootPath string)
- func MergeHistory(repo *archive.Repo, storedHist *history.Root) *history.Root
- func NormalizeHistoryTags(hist *history.Root)
- func ReadHistory(histPath string) (storedhist *history.Root, err error)
- func WriteFile(site, file string, value any) error
- func WriteManifest(manPath string, manifest Manifest) error
- type Command
- type Disable
- type Manifest
- type Pages
Constants ¶
View Source
const PageTemplate = `+++
title = %[1]q
+++
`
Variables ¶
View Source
var Def = snek.Def{ Name: "generate", Doc: snek.Doc{ Summary: "Generate site.", Arguments: "[flags] [config]", Description: usage, }, New: func() snek.Command { return &Command{} }, }
View Source
var ErrSchemaMismatch = errors.New("schema mismatch")
View Source
var ManifestEmbed []byte
Functions ¶
func FilterBuilds ¶
Filters out builds meeting some criteria.
- Excludes a build when it is missing API-Dump.json and Full-API-Dump.json. - Excludes a build when a later build has the same GUID and an older date.
func GeneratePages ¶
func MergeHistory ¶
Retrieves all builds from repo.
func NormalizeHistoryTags ¶
Normalizes any tags and security context values within hist to their canonical forms. For example, "WriteOnly" and "writeonly" are considered equivalent tags, which are normalized by selecting which ever has the most uppercase latters.
func ReadHistory ¶
Reads history JSON from histPath.
func WriteManifest ¶
Types ¶
type Command ¶
Click to show internal directories.
Click to hide internal directories.