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

Remove default value for vcs_pageview_mode #617

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Apr 23, 2018

Fix readthedocs/readthedocs.org#3994

This variable is used on the template and evaluated to give a default value.

According to http://jinja.pocoo.org/docs/2.10/templates/#default default only works if the variable is undefined, or passing true as the second argument to evaluate to false. Otherwise, the variable is '' so, it's defined and it's displayed.

This variable is used on the template and evaluated to
give a default value.

According to http://jinja.pocoo.org/docs/2.10/templates/#default
default only works if the variable is undefined,
or passing true as second argument to evaluate to false.
@stsewd
Copy link
Member Author

stsewd commented Apr 23, 2018

I see the docs mention this https://github.com/rtfd/sphinx_rtd_theme/blob/master/docs/configuring.rst#base-options 'vcs_pageview_mode': '',. Should I use the other method to fix this (passing true as the second argument to default)? or update the docs (removing that line from the html_theme_options example)?

@Blendify Blendify self-requested a review April 23, 2018 12:28
Copy link
Member

@Blendify Blendify left a comment

Choose a reason for hiding this comment

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

I think this solution is fine

@Blendify Blendify merged commit 2dfbc64 into readthedocs:master Apr 23, 2018
@stsewd stsewd deleted the fix-edit-buttom branch April 23, 2018 14:10
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