sphinx-autoapi icon indicating copy to clipboard operation
sphinx-autoapi copied to clipboard

Warning prompts the position of .rst file rather than .py file

Open tyuanhang opened this issue 4 years ago • 3 comments

Is there anyway for me to overwrite the map() function in mappers/python/mapper.py?

tyuanhang avatar Jul 22 '20 06:07 tyuanhang

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~

tyuanhang avatar Jul 22 '20 09:07 tyuanhang

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.

AWhetter avatar Jul 23 '20 03:07 AWhetter

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.

tyuanhang avatar Jul 28 '20 02:07 tyuanhang