sphinx-material
sphinx-material copied to clipboard
html_minify doesn't work with the 'dirhtml' builder
The html_minify
option uses a custom site_pages
list to know what documents to minify, which is built as follows:
https://github.com/bashtage/sphinx-material/blob/3c3d1533a8ef09dad6987e06fc5375867c18c529/sphinx_material/init.py#L60-L61
which doesn't work when using the dirhtml
builder, for which the page URL is something like
os.path.join(app.outdir, pagename + "/index.html")
...I think. If it's as easy as checking the builder in an if
statement, I might be able to put together a patch.
A PR is welcome. Thanks.