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

Put ad free status into READTHEDOCS_DATA for sphinx #46

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

davidfischer
Copy link
Contributor

Needed for readthedocs/readthedocs.org#4329 to work for Sphinx projects

@davidfischer davidfischer requested a review from ericholscher July 5, 2018 18:56
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.

I feel like this should probably come via the Footer API request or similar, because changing it won't trigger a rebuild and could end up out of date. Though we probably don't want to have the Ad request wait until the footer API call has responded, so a bit chicken & egg, and this is probably the best solution.

@@ -11,6 +11,7 @@ var READTHEDOCS_DATA = {
source_suffix: "{{ source_suffix }}",
api_host: "{{ api_host }}",
commit: "{{ commit }}",
ad_free: {% if ad_free %}true{% else %}false{% endif %},
Copy link
Member

Choose a reason for hiding this comment

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

Should this take into account gold status as well, since that has the same effect?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, just saw #4329 👍

@davidfischer davidfischer merged commit 0e07452 into master Jul 16, 2018
@davidfischer davidfischer deleted the davidfischer/no-nag-for-adfree-projects branch July 16, 2018 17:28
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