Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkdownFile ¶
type MarkdownFile interface { Title() Title Head() []Html MainContent() Html Headings() []Heading // TODO: use this to generate TOC }
func DirectoryIndex ¶
func DirectoryIndex(dirPath string, rootDir string) (MarkdownFile, error)
func ForDirectory ¶
func ForDirectory(dirPath string, rootDir string) (MarkdownFile, error)
func FromFile ¶
func FromFile(filePath string) (MarkdownFile, error)
TODO: cache this so we don't keep parsing everything repeatedly
Click to show internal directories.
Click to hide internal directories.