our company runs Discourse to support our customers and strengthen customer relationships. For staff onboarding, we created documentation using Doc Categories and DiscoTOC, which works great.
However, I’d like to request a feature that would allow exporting the documentation sources – specifically the raw text including markup – to a plain text file.
I am aware of the browser’s PDF print option, which doesn’t help when raw sources are needed rather than parsed ones. I also know about the built-in backup function and database queries, but these are not practical solutions for frontend administration.
For now, my workflow is: Edit the post → STRG-A, STRG-C → create / open a text file → STRG-V, STRG-S → Discard Editing… next post.
A built-in bulk export option would provide several benefits:
much easier maintenance for knowledge bases
better backup and versioning workflows for admins in the frontend
flexible reuse of content outside of Discourse
Such a feature would be a real productivity gain for communities that use Discourse as a documentation hub, not only for support.
That’s pretty easy to automate with some command line tools. A clever one would get the json of the topic to see how many posts there were and then get them all, perhaps pausing to deal with rate limiting.
A theme component could give you links to the raw text for each post. A plugin could do what you want.