pip install git+https://github.com/pdavide/sphinxcontrib-discourseAdd sphinxcontrib.discourse to extensions in your conf.py.
Add your documentation domain to "Enabled Domains" in your Discourse admin
settings.
In your conf.py add a discourse_url variable containing the URL if your
Discourse instance (with http:// or https:// and trailing slash).
Insert the discourse directive in the rST source of your documentation like
this:
.. discourse::
:topic_identifier: <topic_id>where <topic_id> is a number identifying a topic in a Discourse instance.
To find a topic_id refer to this general Discourse URL structure:
/t/<topic_name>{/<topic_id>{/<post_id>}}}.
BSD-3-Clause.