DocumenterTools.jl icon indicating copy to clipboard operation
DocumenterTools.jl copied to clipboard

Add a walkdocs function to walk over all HTML files of a docs directory

Open mortenpi opened this issue 2 years ago • 0 comments

It's a pretty common operation to want to do some operation on every HTML file of a Documenter build. E.g. to figure out the sizes of all HTML files:

filesizes = DocumenterTools.walkdocs("docs/build"; collect=true) do fileinfo
    fileinfo.relpath => filesize(fileinfo.fullpath)
end

mortenpi avatar Aug 16 '23 05:08 mortenpi