Fix link to object if it is exposed in `__all__`
Related issue https://github.com/mitmproxy/pdoc/issues/669
Search through the possible sources of the module when looking in all_modules.
Also use the path of the matched object.
Thanks for looking into it! Ok I believe I've made the appropriate test case. Also added a changelog entry.
Hi! I'm facing the same issue. Unfortunately, this PR seems a bit stale. Do you plan to continue with this? Do you need a hand?
This PR should be ready for merge
Sorry this took so long! I've finally found some time do do a deep dive here and refactor things a bit. Does this look good to you now?
I just tested it and it looks great, thank you!