API documentation

All you normally need to create markdown from a Jekyll source directory

UnifyJustTheDocs.compositeFunction

Compose a single markdown string with all content of a Jekyll web site configured for the just-the-doc theme.

composite(rootdir; pandoc_anchors)
source

Page structures

If you want to work with the parsed tree of pages, the main data structure you can use is:

UnifyJustTheDocs.JTDPageType

A JDTPage has markdown content, and four optional settings from its YAML header. If the page lacks properties for parent or grand_parent, their value will be nothing; if no nav_order is set, its value is 0.

source

Functions for creating and working with JTDPages:

Utilities

UnifyJustTheDocs.rootpageFunction

For a single page at the root level of the Jekyll site's content hierarchy, compose a markdown string with the content of the root page together with the content of all of its children and grandchildren pages.

rootpage(pg, pagelist)
source
UnifyJustTheDocs.tidyvalueFunction

Tidy up strings from YAML settings by stripping leading/trailing whitespace, and removing any outer quotes.

tidyvalue(propvalue)
source
UnifyJustTheDocs.pagepartsFunction

Split markdown file into YAML header and markdown body. Returns a tuple of 2 strings. If there is no YAML header, the first string will be empty.

pageparts(f)
source
UnifyJustTheDocs.adjustpathsFunction

Rewrite markdown source in mdsrc to account for relative links in embedded images and direct links to files.

adjustpaths(mdsrc, dir; relpath)

Relative paths in image links are converted to full file paths. If the relpath parameter is included, elative links to file contents are converted to internal links to pandoc headers. See the docs for more details.

source