JuliaDocs / DocumenterTools.jl

Extra tools for setting up Documenter
Other
30 stars 19 forks source link

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

Open mortenpi opened 1 year ago

mortenpi commented 1 year ago

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