pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
842 stars 144 forks source link

crossref links with --paths links to wrong directory #125

Open jshipley opened 6 months ago

jshipley commented 6 months ago

If I have a project like this:

submodule_a/
    a.py
submodule_b/
    b.py

And I run pycco like this pycco -p */*.py

Then if I have a crossref link in submodule_b/b.py to submodule_a/a.py, the directory structure is ignored and the link comes out relative to the file where the crossref is located instead of linking to the correct file.

In other words, [[submodule_a/a.py]] in b.py will end up being a link to submodule_b/a.py