I don’t think it does exactly what you want, but a lot of similar interactions are available via:
I’ve used discourse-docs as part of an editorial process where we convert conversations into docs (where we make it more “doc-like”). I’m not sure if there is currently a way to prioritize the links to docs in search or related links… on the other hand, I’ve found that having a “Docs” section does help folks find the stuff they are looking for.