comparison doc/_ext/docstring.py @ 3715:b9718216a1c0 0.9

merge bookmark 0.9
author Goffi <goffi@goffi.org>
date Wed, 01 Dec 2021 16:13:31 +0100
parents 62e81b1058f8
children
comparison
equal deleted inserted replaced
3714:af09b5aaa5d7 3715:b9718216a1c0
1 #!/usr/bin/env python3
2
3 """Adapt Libervia docstring style to autodoc"""
4
5
6 def process_docstring(app, what, name, obj, options, lines):
7 lines[:] = [
8 l.replace("@param", ":param").replace("@raise", ":raises")
9 for l in lines
10 ]
11
12
13 def setup(app):
14 app.connect("autodoc-process-docstring", process_docstring)
15 return {
16 'version': '0.1',
17 'parallel_read_safe': True,
18 'parallel_write_safe': True,
19 }