Documentation
¶
Index ¶
Constants ¶
const FilesDir = "_files"
FilesDir holds the images of the export, at its root.
Variables ¶
var ( ErrFolderNotFound = errors.New("folder not found") ErrNotFound = errors.New("item not found") )
Functions ¶
func Process ¶
Process exports the live content of a folder ("" = everything) as markdown files: a folder is a directory, a note is <title>.md with its text, links to notes written back as [[Title]], images copied into FilesDir and cited by a relative path. Given ids, it exports these items instead, a folder with what it holds.
Types ¶
type File ¶
File is one entry of the export, its Path relative to the export directory: a folder (Dir), a note, or an image whose bytes the writer reads from Silo at Key. A folder or a note has its ID and its last change in Modified: a duplicate title becomes "Title (2)" and a / a -, so the path alone does not lead back to the item.