Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Fix multi repo external references #530

Closed
wants to merge 1 commit into from

Conversation

utzig
Copy link
Contributor

@utzig utzig commented May 12, 2020

When multi-repos are used, the resulting pending_xref's generated from including the source code don't get a 'refdoc' property and the intersphinx 'missing-resolver' is unable to adjust relative paths in a way that links between different projects work.

This fixes the issue by adding a transform that fixes pending_xrefs that match some pre-requisites, create a new copy with the 'refdoc' property added and let intersphinx's missing-resolver fix the URI.

@utzig
Copy link
Contributor Author

utzig commented May 12, 2020

This proposes a fix for an issue first discussed here: sphinx-doc/sphinx#7634

When multi-repos are used, the resulting pending_xref's generated
from including the source code don't get a 'refdoc' property and the
intersphinx 'missing-resolver' is unable to adjust relative paths
in a way that links between different projects work.

This fixes the issue by adding a transform that fixes pending_xrefs
that match some pre-requisites, create a new copy
with the 'refdoc' property added and let intersphinx's missing-resolver
fix the URI.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
@jakobandersen
Copy link
Collaborator

Please see my comment in the Sphinx issue. I'm rather sure that Breathe is not at fault in this case.

@vermeeren
Copy link
Collaborator

It seems this one is a bit stuck on both Breathe's and Sphinx's sides, is there anything we can do to get things moving again?

@utzig
Copy link
Contributor Author

utzig commented Sep 10, 2020

It seems this one is a bit stuck on both Breathe's and Sphinx's sides, is there anything we can do to get things moving again?

I will rework this one after other higher priority fixes are implemented, so to avoid it staying stuck here I am closing it (also this is probably not a correct solution anyway!)

@utzig utzig closed this Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants