Docu-centric Discourse: Docs, Spreadsheets, Math Editor, Charts, Forms?

That looks interesting, but it looks like it is very tightly integrated with BuddyPress. It might be easier to use it as a model to make something new with WordPress/Discourse that it would be to swap out Discourse for BuddyPress in that plugin.