sphinx-autoapi
sphinx-autoapi copied to clipboard
Warning prompts the position of .rst file rather than .py file
Is there anyway for me to overwrite the map()
function in mappers/python/mapper.py
?
I wanna output some warnings in the process of mapping python ast object, which stores to_line_no
, to reST.
I have tried to listen the autodoc-process-docstring
event. However, I do not think it would help.
Thanks for your attention~
Currently there's no way of hooking into the mappers in this way. But there's potentially a reason here to include more information in the objects that the mapper outputs. I don't understand your use case. Please could you explain it in more detail.
The situation is that I wanna output some warning in the position of source code file rather than the .rst file, which is hard to position the problem and fix.