Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2023 Changes in this version + var CONTEXT_PATH = "/" + var POST_AUTHOR = "Anonymous" + func GenerateStyles(dist io.Writer, theme string, opts ...chromahtml.Option) error + func NormalizeMdName(s string) string + type Engine struct + func New(options ...Option) Engine + func (e Engine) DistDir() string + func (e Engine) DocsDir() string + func (e Engine) ExtraAssetsDir() string + func (e Engine) FuncMap() template.FuncMap + func (e Engine) MakeLayout(name string) (*template.Template, error) + func (e Engine) Meta() map[string]any + func (e Engine) MetaPath() string + func (e Engine) Run() error + func (e Engine) SourceDir() string + func (e Engine) ThemeAssetsDir() string + func (e Engine) ThemeTemplatesDir() string + type Errors []error + func (ee Errors) Error() string + type FuncMapClosure struct + func NewFuncMapClosure(e *Engine) *FuncMapClosure + func (fmc *FuncMapClosure) Excerpt() func(b []byte) string + func (fmc *FuncMapClosure) FuncMap() template.FuncMap + func (fmc *FuncMapClosure) Link() func(href, rel string) string + func (fmc *FuncMapClosure) Meta() func() map[string]any + func (fmc *FuncMapClosure) Render() func(b []byte) string + func (fmc *FuncMapClosure) Toc() func(b []byte) string + type Option func(opts *Options) + func WithAuthor(author string) Option + func WithChromaStyle(style string) Option + func WithContextPath(path string) Option + func WithDist(dist string) Option + func WithSource(src string) Option + func WithTheme(theme string) Option + type Options struct + type SortDirection string + const SortDirectionAscending + const SortDirectionDescending + type TreeNode struct + Children TreeNodeList + Entry fs.DirEntry + IsLeaf bool + IsRoot bool + Parent *TreeNode + Root *TreeNode + SourcePath string + func (n *TreeNode) Author() string + func (n *TreeNode) Content() []byte + func (n *TreeNode) Date() time.Time + func (n *TreeNode) FirstChild() *TreeNode + func (n *TreeNode) HasChildren() bool + func (n *TreeNode) HasSiblings() bool + func (n *TreeNode) Name() string + func (n *TreeNode) NextSibling() *TreeNode + func (n *TreeNode) Path() string + func (n *TreeNode) PreviousSibling() *TreeNode + func (n *TreeNode) Siblings() TreeNodeList + func (n *TreeNode) SortDate(direction SortDirection) *TreeNode + func (n *TreeNode) Title() string + type TreeNodeList []*TreeNode + func (tc TreeNodeList) Leafs() TreeNodeList + func (tc TreeNodeList) Oldest() *TreeNode + func (tc TreeNodeList) SortDate(direction SortDirection) TreeNodeList + type TreeWalker struct + func (tw TreeWalker) RenderWalk(node *TreeNode) error