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

Cast maxdepth to an int. #335

Merged
merged 1 commit into from
Dec 1, 2016
Merged

Conversation

Carreau
Copy link
Contributor

@Carreau Carreau commented Oct 17, 2016

closes #334

Copy link
Collaborator

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

I'm generally -1 on magic in templates, but this might be the only way to fix this. Is there any way of coercing the template options through the Sphinx application API?

@Carreau
Copy link
Contributor Author

Carreau commented Oct 18, 2016

I'm not sure how to do it differently. I looked at several other sphinx
theme to figure out how they were having default value that were integers.
That's the only way I found. I agree that I would prefer doing it through
an explicit python API but as far as I can tell, we need to patch Sphinx
for that.

On Oct 18, 2016 11:34, "Anthony" [email protected] wrote:

@agjohnson commented on this pull request.

I'm generally -1 on magic in templates, but this might be the only way to
fix this. Is there any way of coercing the template options through the
Sphinx application API?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#335 (review),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUez9a0whviVF_BejRPbdKIeyQ0X0vlks5q1RFEgaJpZM4KZAHs
.

@Carreau
Copy link
Contributor Author

Carreau commented Oct 30, 2016

Get we get that in to fix the theme ? Otherwise it is plainly broken for some projects.

Thanks !

@skirpichev skirpichev mentioned this pull request Nov 28, 2016
@ericholscher
Copy link
Member

Looks good to me. We can try and fix this another way over time if need be.

@ericholscher ericholscher merged commit 61eb48b into readthedocs:master Dec 1, 2016
@Carreau
Copy link
Contributor Author

Carreau commented Dec 1, 2016

Thanks, appreciate it.

@Carreau Carreau deleted the cast-int branch December 1, 2016 00:30
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.

Maxdepth is a int, not a string.
3 participants