Documentation
¶
Overview ¶
buyer beware
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailedPage ¶
type Instance ¶
type Instance struct {
Options
// contains filtered or unexported fields
}
Do not initialize manually. Always create with New().
func (*Instance) GetPageDetails ¶
func (inst *Instance) GetPageDetails(r *http.Request) (detailedPage *DetailedPage, err error)
func (*Instance) GetPlainMarkdown ¶
func (*Instance) PlainTextMiddleware ¶ added in v0.83.0
PlainTextMiddleware serves the plain markdown content of pages when the request's Accept header includes "text/plain" or "text/markdown". Patterns use the default semantics of the kit/matcher package (e.g., "/docs/*" for nested paths, "/docs/:slug" for dynamic segments, or "/docs" for an exact match). To include everything, pass "/*".
type Options ¶
type Options struct {
FS fs.FS
IsDev bool
FrontmatterParser FrontmatterParser
MarkdownParser MarkdownParser
}
type Sitemap ¶
type Sitemap []SitemapItem
Click to show internal directories.
Click to hide internal directories.