Closed Mischback closed 1 year ago
Originally prettier was used to beautify HTML build artifacts. While implementing #7 in #20 this proved to raise several issues.
prettier
html-tidy
pre-commit
As an alternative to prettier tidy-html5 might be used. It has Python bindings provided by uTidyLib.
utidylib
build-finished
tidy
Originally
prettier
was used to beautify HTML build artifacts. While implementing #7 in #20 this proved to raise several issues.prettier
is used to beautify the HTML after generating it from Sphinx/Jinja2prettier
is highly opinionated and is meant to not be configurable (see https://github.com/prettier/prettier/issues/5246)prettier
for the given task, current favourite would behtml-tidy
, which is available with Python bindingsprettier
for formatting SCSS/TypeScript source code duringpre-commit
As an alternative to
prettier
tidy-html5 might be used. It has Python bindings provided by uTidyLib.Implementation Idea
utidylib
's bindings in a Sphinx extension, hooked to thebuild-finished
eventCaveats
utidylib
does not install the requiredtidy
package / binary / library