Thank you for sharing this; I find the technique refreshingly simple.<p>> You may have seen people achieve this with a more complex headless Chrome-based solution, but for many sites, this will be perfectly fine!<p>Can you elaborate on the difference between using wget and a heavier solution? I assume the main difference is that a headless browser can execute JavaScript and then serialize the resulting DOM back to HTML, allowing you to build sites in client side frameworks (React, Vue) and then make static versions of them for deployment. Are there other benefits of using a full browser vs. simply using wget?
Wouldn’t it make more sense to generate the html and save it to the appropriate file from the blog generator itself?<p>What if you have a page that is there but it’s not linked from any other page (a landing page for example)? It would never be pre-rendered.
It would be interesting to combine <i>wget</i> with <i>HTMLDOC</i>[0] for convert static websites to PDF book.<p>[0] <a href="https://github.com/michaelrsweet/htmldoc" rel="nofollow">https://github.com/michaelrsweet/htmldoc</a>