Mercurial > libervia-backend
view doc/_ext/docstring.py @ 4155:453e53dfc50e
plugin XEP-0045: user normal workflow for history + `get_room_user_jid` method:
- workflow is now using the normal messages workflow even for history message: previous
workflow was dedicated to MUC and only adding message to history, resulting in other
plugins being skipped.
- new `get_room_user_jid` helps to retrieve easily the JID currently used in a joined
room.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 22 Nov 2023 15:00:57 +0100 |
parents | 62e81b1058f8 |
children |
line wrap: on
line source
#!/usr/bin/env python3 """Adapt Libervia docstring style to autodoc""" def process_docstring(app, what, name, obj, options, lines): lines[:] = [ l.replace("@param", ":param").replace("@raise", ":raises") for l in lines ] def setup(app): app.connect("autodoc-process-docstring", process_docstring) return { 'version': '0.1', 'parallel_read_safe': True, 'parallel_write_safe': True, }