Comment by pfych
This is exactly how I generate my site[^1]. Except I use a simple Node script to handle hosting a tiny HTTP server.
Node calls pandoc, which converts my markdown into HTML, ESBuild to convert the few JS snippets I run on my site (which I write in TS), and SASS to convert my scss stylesheet into a bundled CSS sheet.
It's super lightweight and I like that I can bend it to do whatever weird shit I want my site to have without relying on a 3rd party static site generator.
[^1]: https://pfy.ch