Internal docstrings

Not public API

These functions are not part of the MultiDocumenter public API.

MultiDocumenter.DocumenterTools.walkdocsFunction
walkdocs(f, dir::AbstractString[, filter_cb]; collect::Bool=false)

Takes a directory dir, which is assumed to contain Documenter-generated documentation, walks over all the files and calls f on each of the files it find. Optionally, a filter_cb(::FileInfo) function can be passed to only call f on files for which it returns true.

f and filter_cb will be called with a single object that has the following fields (all strings):

  • .root: the root directory of the walk, i.e. dir (but as an absolute path)
  • .filename: file name
  • .relpath: path to the file, relative to dir
  • .fullpath: absolute path to the file

See also the FileInfo struct.

If collect = true is set, the function also "collects" all the return values from f from each of the function calls, essentially making walkdocs behave like a map function applied on each of the HTML files.

walkdocs(directory_root, filter = isdochtml) do fileinfo
    @show fileinfo.fullpath
end
source