Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverFiles ¶
DiscoverFiles discovers all markdown files which are within a directory and its subdirectories recursively, if successfull, it returns err!=nil and a list of paths relative to rootDir
func GenerateUrls ¶
GenerateUrls takes the router and generates appropriate urls for the found markdown files if err!=nil it returns the encountered error. The markdown files are assumed to be safe code.
func ProcessFile ¶
ProcessFile reads the file from the path and converts the markdown content into html, if successfull it returns error=nil and the markdown html as an array of bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.