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

Ignore references in non-HTML builders #63

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 16, 2020

It does not make sense to override the domain classes when using other non-HTML builders because there is nothing to add.

Although, due to a initialization race condition, we are not able to "not override the Domains if the builder is non-HTML" so we need to skip our custom resolution during build time.

NOTE: I'm not happy with this solution. I would like to find a way to not override the Domains if we already know that the builder is html.

This PR is based on #60 --so, if that one is merged first, we need to change the base before merging.

Closes #62

@humitos humitos added the Needed: tests Tests are required label Apr 16, 2020
It does not make sense to override the domain classes when using other non-HTML
builders because there is nothing to add.

Although, due to a initialization race condition, we are not able to "not
override the Domains if the builder is non-HTML" so we need to skip our custom
resolution during build time.
@humitos humitos force-pushed the humitos/ignore-nonhtml-builders branch from 2dd7891 to 4569657 Compare April 16, 2020 13:54
@humitos
Copy link
Member Author

humitos commented Apr 16, 2020

I don't understand why the test with buildername='latex' does not fail, tho: https://github.com/readthedocs/sphinx-hoverxref/pull/60/files#diff-c73982500e324db7586c3b894957d3ccR13 🤷‍♂️

@humitos humitos removed the Needed: tests Tests are required label Apr 16, 2020
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasonable enough of a solution for now.

@humitos humitos merged commit 8adfe97 into humitos/set-translator Apr 16, 2020
@humitos humitos deleted the humitos/ignore-nonhtml-builders branch April 16, 2020 18:54
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.

2 participants