md2idx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFlagSet

func DefaultFlagSet() *flag.FlagSet

func FrontMatterForPath

func FrontMatterForPath(ctx context.Context, html_opts *render.HTMLOptions, uri string) (*jekyll.FrontMatter, error)

func GatherPosts

func GatherPosts(ctx context.Context, html_opts *render.HTMLOptions, md_opts *MarkdownOptions, uri string) (map[string][]*jekyll.FrontMatter, error)

func RenderDirectory

func RenderDirectory(ctx context.Context, html_opts *render.HTMLOptions, md_opts *MarkdownOptions, uri string) error

func RenderHTML

func RenderHTML(ctx context.Context, root string, html_opts *render.HTMLOptions, fm *jekyll.FrontMatter, body *markdown.Body) error

func RenderPosts

func RenderPosts(ctx context.Context, html_opts *render.HTMLOptions, md_opts *MarkdownOptions, root string, title string, posts []*jekyll.FrontMatter) error

func RenderRollup

func RenderRollup(ctx context.Context, root string, rollup []string, html_opts *render.HTMLOptions, md_opts *MarkdownOptions) error

func Run

func Run(ctx context.Context, logger *slog.Logger) error

func RunWithFlagSet

func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *slog.Logger) error

Types

type MarkdownOptions

type MarkdownOptions struct {
	MarkdownTemplates *template.Template
	List              string
	Rollup            string
	Mode              string
}

Jump to

Keyboard shortcuts

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