generator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsiteGeneratorConfig

type WebsiteGeneratorConfig struct {
	// IsProd value indicates whether the generator is running in production
	// environment. If it is, draft stories won't be included in the generated
	// website.
	IsProd bool

	StoriesDir    string
	StaticDir     string
	RobotsTxtPath string

	// OutputDir indicates output directory for the website files. At the end of
	// the execution output will be set up in a way that can be used on pretty
	// much any static website hosting.
	OutputDir string

	IndexTemplate   *template.Template
	DetailsTemplate *template.Template

	RSSFeedConfiguration rss.FeedConfiguration
}

func (*WebsiteGeneratorConfig) GenerateWebsite

func (c *WebsiteGeneratorConfig) GenerateWebsite()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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