config

package
v0.0.0-...-8887655 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// DefaultIndex is the filenames that should attempt to be rendered if no exact path is given
	DefaultIndex []string
	// Templates are the templates available to render markdown files, keyed by template name.
	Templates map[string]*template.Template

	// Errors that occured while building this config (due to config file errors, etc).
	Errors map[string]error
}

Config is a configuration concerning a given path of the source. It is built from files present in the source, and from global configuration.

func ForPath

func ForPath(ctx context.Context, s source.Source, path string) (*Config, error)

Jump to

Keyboard shortcuts

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