-
Notifications
You must be signed in to change notification settings - Fork 213
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
Indention of class methods #89
Comments
Same issue. Easy fix: set up a custom CSS file like the README says. Here's mine:
|
Thought I'd add my two cents here. I suspect the reason this has never been explicitly a part of the library is because there are two conflicting cases:
To solve (1), the
So the result is that the class / function definitions get cut off and things are way worse than just not having any indentation. I don't know if the below is appropriate, and I don't know how easy it would be to actually bring this in, but there is one clue that makes this easy to circumvent: if a user is writing their own definition list in the restructured text document (or even documentation of a method), Reiterating that I don't know if this follows the standards, the following hack seems to be working quite reliably for me and thought I'd share since this indentation issue was the only thing disincentivizing me from using this theme!
Like I said, this is definitely not the "right" approach, may not be mobile friendly and/or could be a resource hog, but it is working really well for me and thought somebody else could benefit 😄 |
I really would like to see a visual hint that a method belongs to a class like in the default theme (it uses indentation).
In my usecase i have 'module' functions right after class methods and multiple classes which makes it hard to see the hierachy.
The current behaviour can be seen here (BoolSetting class):
http://ryan-roemer.github.io/django-cloud-browser/cloud_browser/app_settings.html#cloud_browser.app_settings.BoolSetting
and the code:
https://github.com/ryan-roemer/django-cloud-browser/blob/master/cloud_browser/app_settings.py
The text was updated successfully, but these errors were encountered: