-
Notifications
You must be signed in to change notification settings - Fork 321
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
Suppress 'rtd-footer-container' if not being built on ReadTheDocs #2013
Conversation
Two alternatives to this I think are either to give the edit: I think doing the min-height option might be more correct for what I think is intended |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, I guess I don't really like magic variable for which are not defined anywhere, and would prefer isdefined(...)
or similar. But I think this will do.
I've approved the workflow and will wait for tests to pass.
I think I want @gabalafou review on this, and if
needs update as
Risk raising I thinks some tests needs updating as they assume the div exists (when comparing to expected files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test files needs updates.
@Carreau I also don't like magic variables and had trouble figuring out where |
I managed to get the test running locally, thank you so much for providing a devcontainer definition! I'm not sure how this PR might affect #1398 since that does away with the need for this container div that is causing problems. |
No, this solution is great; I just don't generally like those magical variables. Don't worry about #1398 , it's been dormant for some time; and I think it's easy enough to adapt if the need arises. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, just want some JS experts input, but if there is not answers in a week or so I think it's good to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, just want some JS experts input, but if there is not answers in a week or so I think it's good to merge.
I looked into this today, and discovered some important facts:
So I think the right way forward is to remove all of that code. I opened a pull request to do so: If folks agree that that pull request is the right way forward, then we can close this pull request without merging. Thank you for helping to make PyData Sphinx Theme better! |
@gabalafou Even better than what I've done, definitely in favor of merging #2034 in favor of this. |
Closing in favor of #2034 |
This PR attempts to fix #1794 and possibly #1238 by not including the rtd-footer-container div if the site is not being built on ReadTheDocs.
This uses the same {% if READTHEDOCS %} as the ethical ads html.