Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PageTmpl = template.Must(template.Must(baseTmpl.Clone()).ParseFS(templateFiles, "templates/contents/page.html")) EditTmpl = template.Must(template.Must(baseTmpl.Clone()).ParseFS(templateFiles, "templates/contents/edit.html")) )
View Source
var WikiLinkExt = &wikiLinkExt{}
Functions ¶
func AllReverseLinks ¶
AllReverseLinks calculates the reverse link map for the whole wiki. The returned map maps page names to a list of pages linking to it. Sets of pages are represented as sorted lists.
func OutgoingLinks ¶
OutgoingLinks returns the outgoing wiki links in a given Markdown input. The outgoing links are a map of page names to true.
func RenderHTML ¶
Types ¶
type PageHandler ¶
type PageHandler struct { MainPage string D *diskv.Diskv // contains filtered or unexported fields }
func (*PageHandler) ServeHTTP ¶
func (h *PageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ShortLinkExt ¶
type ShortLinkExt struct{}
ShortLinkExt is a goldmark extension for recognizing shortlinks like go/links.
func (*ShortLinkExt) Extend ¶
func (s *ShortLinkExt) Extend(m goldmark.Markdown)
Click to show internal directories.
Click to hide internal directories.