Documentation ¶
Index ¶
- Variables
- func AllCategories(pages map[string]*Page) []string
- func AllPageTitles(pages map[string]*Page) []string
- func CreateSpecialPages(pages map[string]*Page) error
- func DiscoverPages(path string) (map[string]*Page, error)
- func OutputAllPagesToDisk(pages map[string]*Page, outputDir string) error
- func PagesByCategory(pages map[string]*Page) map[string][]*Page
- func PopulateBacklinks(pages map[string]*Page)
- type LinkListingData
- type Page
- type PageData
- type PageMeta
- type PageTemplateData
- type WikiLinkResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var LinkListingTemplate *template.Template
View Source
var PageTemplate *template.Template
Functions ¶
func AllCategories ¶
func AllPageTitles ¶
func CreateSpecialPages ¶
func OutputAllPagesToDisk ¶
func PopulateBacklinks ¶
Types ¶
type LinkListingData ¶
type LinkListingData struct {
LinkList []string
}
type Page ¶
type Page struct { Title string Path *string LinksTo []string Backlinks []string Meta PageMeta ParsedContent []byte }
func ParsePageFile ¶
type PageTemplateData ¶
type WikiLinkResolver ¶
type WikiLinkResolver struct {
// contains filtered or unexported fields
}
func (WikiLinkResolver) ResolveWikilink ¶
func (r WikiLinkResolver) ResolveWikilink(node *wikilink.Node) (destination []byte, err error)
Click to show internal directories.
Click to hide internal directories.