WordPress has an official REST API. It's pretty easy to rip post/page content out of it either on a schedule (cron) or dynamically, in either case rendering finished pages from templates or similar, and serve it without involving WP directly. I'm not too familiar with static site generators but I'd expect any that can take raw HTML for post/page bodies to be trivial to automate to serve such a pipeline.