Can I prefer my own code when there are duplicated module names? #248
Unanswered
jwarwick-delfi
asked this question in
Q&A
Replies: 1 comment
-
Hi @jwarwick-delfi thank you for the kind words! ❤️ From looking at your config it should pick up the Do you have a public repository I can try things on? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, I'm a big fan of this plugin, thank you to the author and contributors.
Here's my question: when searching for a module, if there are multiple modules on the path with the same name, can I configure the plugin to prefer my source code over modules installed in site-packages?
I've got a project set up as follows:
I'm trying to collect documentation from my tests root. tests.md looks like this:
I believe mkdocs.yml is correctly configured:
When I render these docs, other python source is correctly collected/rendered, but "tests" is not.
From the logs, it seems like "tests" is actually being loaded from site-packges:
From manually looking at this path, it seems like this originates from one of my 3rd party dependencies, a bibtex parser package. I'm hoping there is an easy way to configure the plugin to prioritize my modules.
(edit) I've also tried setting "paths" to
paths: [my_module, tests]
, and got the same result.Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions