Then import TidyHTMLPublishStep where you’d like to use it.
Usage
The tidyHTML(withIndentation:) step should be inserted into your publishing pipeline after your HTML is generated. The default indentation is one space, if the parameter is omitted.
This package also provides an alternate convenience API to the Website.publish(withTheme:...:additionalSteps:...) method, replacing additionalSteps with preGenerationSteps and postGenerationSteps. The tidyHTML step should be passed to the postGenerationSteps parameter:
Tidy HTML step for Publish
A
PublishingStepfor Publish that nicely formats your website’s HTML using SwiftSoup.Installation
To install the step, add it as a dependency within your
Package.swiftmanifest:Then import
TidyHTMLPublishStepwhere you’d like to use it.Usage
The
tidyHTML(withIndentation:)step should be inserted into your publishing pipeline after your HTML is generated. The default indentation is one space, if the parameter is omitted.This package also provides an alternate convenience API to the
Website.publish(withTheme:...:additionalSteps:...)method, replacingadditionalStepswithpreGenerationStepsandpostGenerationSteps. ThetidyHTMLstep should be passed to thepostGenerationStepsparameter: