Hmm. I think the solution might be to write an importer for Discourse.
Could be an interesting project.