In a discussion titled “Any updates on the best way to create a HTML archive of a static site?”, user justin_gordon sought a method to create browseable HTML files for retiring their Discourse forum. While exploring options like the Discourse Archive and the ArchiveDiscourse script, they encountered issues with broken image links and internal URLs pointing to the decommissioned server justin_gordon. pfaffman suggested using wget with specific flags to mirror the site, though it required obtaining the session cookie _tpfaffman. Another user, 翔_贺, shared a Ruby snippet for serving static files, while supermathie noted that a custom exporter could be built from backups. Finally, manuel recommended discourse-static-archive as a promising solution that handles topics, categories, and search, with pfaffman providing a refined wget command using a cookie extraction script for those preferring that method.
The good thing is that you have all the data, so one could be written that exported the data directly from a backup if anyone had the inclination to do so.