Playing with a new theme for the docs
Hi all, recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result: http://www.python.org/~gbrandl/build/html/ The corresponding sandbox repo is at http://hg.python.org/sandbox/doc-theme/#doc-theme Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.) Thanks, Georg
Nice and clean, but looks too similar to newer Google properties...
Also I see that (like Google) you're falling for the fallacy of using
less contrast. From an accessibility perspective that's questionable
-- and I don't mean the legally blind, just people like myself whose
eyes are getting a bit older. This also means I don't particularly
like adding background color (no matter how light) to text samples.
--Guido
On Tue, Mar 20, 2012 at 3:38 PM, Georg Brandl
Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
http://www.python.org/~gbrandl/build/html/
The corresponding sandbox repo is at
http://hg.python.org/sandbox/doc-theme/#doc-theme
Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.)
-- --Guido van Rossum (python.org/~guido)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/20/2012 06:45 PM, Guido van Rossum wrote:
Nice and clean, but looks too similar to newer Google properties... Also I see that (like Google) you're falling for the fallacy of using less contrast. From an accessibility perspective that's questionable -- and I don't mean the legally blind, just people like myself whose eyes are getting a bit older. This also means I don't particularly like adding background color (no matter how light) to text samples.
+1. Even make comments low-contrast defeats their purpose (italic works fine for that). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9pFmsACgkQ+gerLs4ltQ7fpwCeOY5p2HnqotHrWrN5vqsHfcsl 2EYAn3cnlemVO/RKavU3SC4w5b+q66S6 =Oryl -----END PGP SIGNATURE-----
On 20Mar2012 15:45, Guido van Rossum
On 20.03.2012 23:45, Guido van Rossum wrote:
Nice and clean, but looks too similar to newer Google properties... Also I see that (like Google) you're falling for the fallacy of using less contrast. From an accessibility perspective that's questionable -- and I don't mean the legally blind, just people like myself whose eyes are getting a bit older. This also means I don't particularly like adding background color (no matter how light) to text samples.
Well, to be fair, the current theme also has a lot of shading, and the text in the sidebar is at lower contrast too. But I can see that the main text should remain at as high contrast as possible. Georg
On Tue, Mar 20, 2012 at 6:38 PM, Georg Brandl
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it.
I think regardless of the chosen style, giving the Python 3 docs a different look and feel also has a psychological benefit that might further encourage users to consider moving to Python 3. It could be a bit of a wake-up call.
On Tue, Mar 20, 2012 at 3:55 PM, John O'Connor
On Tue, Mar 20, 2012 at 6:38 PM, Georg Brandl
wrote: recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it.
I think regardless of the chosen style, giving the Python 3 docs a different look and feel also has a psychological benefit that might further encourage users to consider moving to Python 3. It could be a bit of a wake-up call.
+3 Of course you do realize that the only possible outcome of this thread which is *literally* about painting the docs bike shed is to have a row of dynamic "change my css theme" buttons somewhere with one for each person that has piped up in this thread. Which would lead to a stateful docs web server with cookie preferences on which css to default to for each and every viewer. This doesn't end well... ;) Good luck (and thanks for trying, I like seeing the new styles!) -gps
On Tue, 20 Mar 2012 23:38:53 +0100, Georg Brandl
Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
The font looks better in my browser, but otherwise I prefer the current style. The biggest thing I don't like about the new style is the fact that the content is not set off from the chrome by shading. Having it shaded makes it easier for my eye to ignore it and just focus on the content. Hey, maybe you could make the sidebar only appear if the browser supports javascript? Then I'd never have to see it, and that I would consider "clean" :) Thanks for working on improving things. --David
On 21.03.2012 00:17, R. David Murray wrote:
On Tue, 20 Mar 2012 23:38:53 +0100, Georg Brandl
wrote: Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
The font looks better in my browser, but otherwise I prefer the current style. The biggest thing I don't like about the new style is the fact that the content is not set off from the chrome by shading. Having it shaded makes it easier for my eye to ignore it and just focus on the content.
Not sure what "the unshaded chrome" is -- only the header bar, since the sidebar is shaded already? Georg
On Wed, 21 Mar 2012 06:58:21 +0100, Georg Brandl
On 21.03.2012 00:17, R. David Murray wrote:
On Tue, 20 Mar 2012 23:38:53 +0100, Georg Brandl
wrote: Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
The font looks better in my browser, but otherwise I prefer the current style. The biggest thing I don't like about the new style is the fact that the content is not set off from the chrome by shading. Having it shaded makes it easier for my eye to ignore it and just focus on the content.
Not sure what "the unshaded chrome" is -- only the header bar, since the sidebar is shaded already?
Header bar and footer. But I also like the fact that the current site shades the sidebar all the way down (and darker, though obviously we have contrast issues from some folks that don't bother me). Otherwise that whitespace on the left just looks...wrong. But that last is considerably less important. --David
Hi Georg,
On Tue, 20 Mar 2012 23:38:53 +0100
Georg Brandl
Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
Not enough colours, and/or not enough visual cues for page structure. cheers Antoine.
On Mar 20, 2012, at 5:37 PM, Antoine Pitrou wrote:
Georg Brandl
wrote: Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
Not enough colours, and/or not enough visual cues for page structure.
cheers
Antoine.
Like Antoine, I'm having a hard time navigating the page. For me, the current theme is *much* better. Raymond
On 21.03.2012 01:57, Raymond Hettinger wrote:
On Mar 20, 2012, at 5:37 PM, Antoine Pitrou wrote:
Georg Brandl
mailto:g.brandl@gmx.net> wrote: Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
Not enough colours, and/or not enough visual cues for page structure.
cheers
Antoine.
Like Antoine, I'm having a hard time navigating the page. For me, the current theme is *much* better.
OK, that seems to be the main point people make... let me see if I can come up with a better compromise. Georg
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
OK, that seems to be the main point people make... let me see if I can come up with a better compromise.
Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read. Cheers, Dirkjan
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise. Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read. I realise this is bikeshedding by now, but FWIW, please don't. If people want shorter lines, they can narrow their browser, without forcing that
On 21/03/2012 08:25, Dirkjan Ochtman wrote: preference on the rest of us.
Cheers,
Dirkjan _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/tartley%40tartley.com
-- Jonathan Hartley tartley@tartley.com http://tartley.com Made of meat. +44 7737 062 225 twitter/skype: tartley
On Wed, Mar 21, 2012 at 09:33:13AM +0000, Jonathan Hartley wrote:
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise. Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read. I realise this is bikeshedding by now, but FWIW, please don't. If
On 21/03/2012 08:25, Dirkjan Ochtman wrote: people want shorter lines, they can narrow their browser, without forcing that preference on the rest of us.
Seconded. My display is 1920x1200 but I use very large fonts and I'm satisfied with line lengths. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.
On Wed, Mar 21, 2012 at 09:33:13AM +0000, Jonathan Hartley wrote:
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise. Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read. I realise this is bikeshedding by now, but FWIW, please don't. If
On 21/03/2012 08:25, Dirkjan Ochtman wrote: people want shorter lines, they can narrow their browser, without forcing that preference on the rest of us. Seconded. My display is 1920x1200 but I use very large fonts and I'm satisfied with line lengths. The best thing to do is to set a max-width in ems, say 50em. This leaves
On 3/21/2012 6:16 AM, Oleg Broytman wrote: the text at a reasonable width, but adapts naturally for people with larger fonts. --Ned.
Oleg.
On 21 March 2012 13:38, Ned Batchelder
On 3/21/2012 6:16 AM, Oleg Broytman wrote:
On Wed, Mar 21, 2012 at 09:33:13AM +0000, Jonathan Hartley wrote:
On 21/03/2012 08:25, Dirkjan Ochtman wrote:
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise.
Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read.
I realise this is bikeshedding by now, but FWIW, please don't. If people want shorter lines, they can narrow their browser, without forcing that preference on the rest of us.
Seconded. My display is 1920x1200 but I use very large fonts and I'm satisfied with line lengths.
The best thing to do is to set a max-width in ems, say 50em. This leaves the text at a reasonable width, but adapts naturally for people with larger fonts.
--Ned.
FYI, the current paragraph font size on docs.python.org is 16px, while for http://www.python.org/~gbrandl/build/html/ it's 13px, so increasing that should help readability :) You can use @media queries to adjust it to screen resolution, which should solve the problem with long lines. -- Łukasz Rekucki
On 2012-03-21, at 11:06 AM, Łukasz Rekucki wrote:
FYI, the current paragraph font size on docs.python.org is 16px, while for http://www.python.org/~gbrandl/build/html/ it's 13px, so increasing that should help readability :) You can use @media queries to adjust it to screen resolution, which should solve the problem with long lines.
+1. It's much harder to read text in the new design. I would also make links a bit darker. - Yury
On Mar 21, 2012 5:44 AM, "Ned Batchelder"
The best thing to do is to set a max-width in ems, say 50em. This leaves the text at a reasonable width, but adapts naturally for people with larger fonts.
Please, no, not even this "improved" version of coddling. If you're formatting e.g. a newspaper or a book, by all means (though I still think the user should be given ultimate control -- and I don't mean editing the CSS using the browser's development tools :-). But when reading docs there are all sorts of reasons why I might want to stretch the window to maximum width and nothing's more frustrating than a website that forces clipping, folding or a horizontal scroll bar even when I make the window wide enough. And sometimes I just don't care that much about reading the text, but having more things visible at once (vertically) is worth it. (Can you see why I invented a whitespace-sensitive language? I have a whitespace-sensitive brain. :-) -- --Guido van Rossum (python.org/~guido)
On Mar 21, 2012 12:00 PM, "Guido van Rossum"
On Mar 21, 2012 5:44 AM, "Ned Batchelder"
wrote: The best thing to do is to set a max-width in ems, say 50em. This
leaves the text at a reasonable width, but adapts naturally for people with larger fonts.
Please, no, not even this "improved" version of coddling. If you're formatting e.g. a newspaper or a book, by all means (though I still think the user should be given ultimate control -- and I don't mean editing the CSS using the browser's development tools :-). But when reading docs there are all sorts of reasons why I might want to stretch the window to maximum width and nothing's more frustrating than a website that forces clipping, folding or a horizontal scroll bar even when I make the window wide enough.
Well, the only thing that's more frustrating than that is having to resize my window to make the text readable, and then *still* having to scroll horizontally for the wide bits, or have to alternate sizes of the window. Just because flowing text paragraphs are set to a moderate max-width, that doesn't mean that code samples, tables, etc. all have to be the *same* max-width, or have any max-width at all. That is, keeping flowing text readable is not incompatible with having arbitrarily-wide code, tables, etc. (Text width is an ergonomic consideration as much as font size and color: too wide in absolute characters, and the eye has to hunt up and down to find where to start reading the next line.)
On 21/03/2012 09:33, Jonathan Hartley wrote:
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise. Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read. I realise this is bikeshedding by now, but FWIW, please don't. If people want shorter lines, they can narrow their browser, without forcing that
On 21/03/2012 08:25, Dirkjan Ochtman wrote: preference on the rest of us.
+ sys.maxint Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
Dirkjan Ochtman
On Wed, Mar 21, 2012 at 07:00, Georg Brandl
wrote: OK, that seems to be the main point people make... let me see if I can come up with a better compromise.
Would it be possible to limit the width of the page? On my 1920px monitor, the lines get awfully long, making them harder to read.
−1. Please, web designers, don't presume to know what width the viewer wants. We can change the window size if that's what we want. -- \ “I hope some animal never bores a hole in my head and lays its | `\ eggs in my brain, because later you might think you're having a | _o__) good idea but it's just eggs hatching.” —Jack Handey | Ben Finney
On 3/20/2012 6:38 PM, Georg Brandl wrote: The current green on the front page is too heavy. Otherwise I prefer the old. I like the color on the index chart of the builtin-functions page. You un-bolded most (not all) of the entries and then are definitely too thin now. You unbolded the blue elsewhere and it is definitely harder for me to read. My eyesight does not correct to 20/20 and I have trouble reading many things, but the current docs work pretty well for me. -- Terry Jan Reedy
On 3/21/2012 7:09 AM, Antoine Pitrou wrote:
On Tue, 20 Mar 2012 21:39:41 -0400 Terry Reedy
wrote: On 3/20/2012 6:38 PM, Georg Brandl wrote:
The current green on the front page is too heavy.
Green? hmm... you mean blue, right? :)
Yeh, a muddy slightly greenish blue. I would prefer what I call a real blue, as in the logo, or the quoted text above on Thunderbird. -- Terry Jan Reedy
Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.) Not to add to the chorus of tweakers, but if I could change just one
On 3/20/2012 6:38 PM, Georg Brandl wrote: thing about the current theme, it would be to remove full justification of the text. In text like ours with frequent long expressions, URLs, and the like, full justification is just an invitation to mangle the spacing of a paragraph. The paragraphs are also quite short and often interrupted by samples, lists, headings, and so on, losing the design advantage of a clean right edge anyway. Books, magazines, and newspapers look good with full justification, web pages do not. Can we switch to left-justified instead? --Ned.
Thanks, Georg
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ned%40nedbatchelder.com
On Tue, 20 Mar 2012 21:58:57 -0400
Ned Batchelder
Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.) Not to add to the chorus of tweakers, but if I could change just one
On 3/20/2012 6:38 PM, Georg Brandl wrote: thing about the current theme, it would be to remove full justification of the text.
Ow, I hate non-justified text myself :( Bikeshedding Antoine.
21.03.12 03:58, Ned Batchelder написав(ла):
Books, magazines, and newspapers look good with full justification, web pages do not. Can we switch to left-justified instead?
You can add line p {text-align: left !important} to your browser custom stylesheet. If you are using Firefox or Chrome (Chromium), for them there are extensions (Stylish) that allow to apply the style to the particular site.
On 3/21/2012 9:44 AM, Serhiy Storchaka wrote:
21.03.12 03:58, Ned Batchelder написав(ла):
Books, magazines, and newspapers look good with full justification, web pages do not. Can we switch to left-justified instead?
You can add line
p {text-align: left !important}
to your browser custom stylesheet.
If you are using Firefox or Chrome (Chromium), for them there are extensions (Stylish) that allow to apply the style to the particular site.
Any of the tweaks people are suggesting could be applied individually using this technique. We could just as easily choose to make the site left-justified, and let the full-justification fans use custom stylesheets to get it. The challenge for the maintainer of the docs site is to choose a good design that most people will see. We're bound to disagree on what that design should be, and I suggest that probably none of us are designer enough to come up with the best one. Perhaps we could find an interested designer to help? --Ned.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ned%40nedbatchelder.com
21.03.12 16:18, Ned Batchelder написав(ла):
We could just as easily choose to make the site left-justified, and let the full-justification fans use custom stylesheets to get it.
I find justified text convenient and pleasant for the eyes. Many people hate left-aligned text. I think that the best would be the use of left-aligned text at the small width of the window (640px and less), when they become obvious drawbacks of justified text, and use justified text with a large width.
Perhaps we could find an interested designer to help?
Isn't Georg Brandl a designer? The proposed design looks professional for me and is not worse than the design of large corporations (though there are some defects). The current design is also very good. Optimum is, I suppose, in the middle.
On Wed, Mar 21, 2012 at 7:18 AM, Ned Batchelder
The challenge for the maintainer of the docs site is to choose a good design that most people will see. We're bound to disagree on what that design should be, and I suggest that probably none of us are designer enough to come up with the best one. Perhaps we could find an interested designer to help?
I've come to the conclusion that "good design" is not so much a matter of finding the "best" of anything (font, spacing rules, colors, icons, artowork, etc.). Good design is highly subjective to fashion, and the people who are recognized to be the best designers are more often than not just those with a strong enough opinion to push their creative ideas through. Then other designers, who are not quite as good but still have a nose for the latest fashion, copy their ideas and for a while anything that hasn't been redesigned looks "old-fashioned". (Before you say something about limitations of old technology, note how often designers go back to older styles and manage to make them look fashionable again.) If you want something that attracts attention through controversy, get one of those initial thought leaders. If you want something that looks "current" today but which will probably be out of style next year, use one of the style-following designers. If you want something that is maximally useful, get a scientist with an ounce of style sense to do your design... Oh hey, Georg *is* a scientist! And he's got more than an ounce of style. So just let him do it and let's not try to micromanage things. (I had to speak up about the low contrast because Georg has young eyes and may not realize that this issue exists for older Pythonistas.) -- --Guido van Rossum (python.org/~guido)
Guido van Rossum wrote:
On Wed, Mar 21, 2012 at 7:18 AM, Ned Batchelder
wrote: The challenge for the maintainer of the docs site is to choose a good design that most people will see. We're bound to disagree on what that design should be, and I suggest that probably none of us are designer enough to come up with the best one. Perhaps we could find an interested designer to help?
I've come to the conclusion that "good design" is not so much a matter of finding the "best" of anything (font, spacing rules, colors, icons, artowork, etc.). Good design is highly subjective to fashion, and the people who are recognized to be the best designers are more often than not just those with a strong enough opinion to push their creative ideas through. Then other designers, who are not quite as good but still have a nose for the latest fashion, copy their ideas and for a while anything that hasn't been redesigned looks "old-fashioned".
(Before you say something about limitations of old technology, note how often designers go back to older styles and manage to make them look fashionable again.)
If you want something that attracts attention through controversy, get one of those initial thought leaders. If you want something that looks "current" today but which will probably be out of style next year, use one of the style-following designers. If you want something that is maximally useful, get a scientist with an ounce of style sense to do your design... Oh hey, Georg *is* a scientist! And he's got more than an ounce of style. So just let him do it and let's not try to micromanage things. (I had to speak up about the low contrast because Georg has young eyes and may not realize that this issue exists for older Pythonistas.)
+1000
On 3/21/2012 3:45 PM, Ethan Furman wrote:
Guido van Rossum wrote:
On Wed, Mar 21, 2012 at 7:18 AM, Ned Batchelder
wrote: The challenge for the maintainer of the docs site is to choose a good design that most people will see. We're bound to disagree on what that design should be, and I suggest that probably none of us are designer enough to come up with the best one. Perhaps we could find an interested designer to help?
I've come to the conclusion that "good design" is not so much a matter of finding the "best" of anything (font, spacing rules, colors, icons, artowork, etc.). Good design is highly subjective to fashion, and the people who are recognized to be the best designers are more often than not just those with a strong enough opinion to push their creative ideas through. Then other designers, who are not quite as good but still have a nose for the latest fashion, copy their ideas and for a while anything that hasn't been redesigned looks "old-fashioned".
(Before you say something about limitations of old technology, note how often designers go back to older styles and manage to make them look fashionable again.)
If you want something that attracts attention through controversy, get one of those initial thought leaders. If you want something that looks "current" today but which will probably be out of style next year, use one of the style-following designers. If you want something that is maximally useful, get a scientist with an ounce of style sense to do your design... Oh hey, Georg *is* a scientist! And he's got more than an ounce of style. So just let him do it and let's not try to micromanage things. (I had to speak up about the low contrast because Georg has young eyes and may not realize that this issue exists for older Pythonistas.)
+1000
Deriding the entire discipline of design because some of its practitioners are hacks is like pointing at PHP kiddies as the reason why you don't need "software architects." Yes, we could make the mistake of over-designing it, and that would be a mistake. The science you seek is something that designers are well-versed in. --Ned.
Ned Batchelder wrote:
Any of the tweaks people are suggesting could be applied individually using this technique. We could just as easily choose to make the site left-justified, and let the full-justification fans use custom stylesheets to get it.
Is it really necessary for the site to specify the justification at all? Why not leave it to the browser and whatever customisation the user chooses to make? -- Greg
On Mar 21, 2012, at 6:28 PM, Greg Ewing wrote:
Ned Batchelder wrote:
Any of the tweaks people are suggesting could be applied individually using this technique. We could just as easily choose to make the site left-justified, and let the full-justification fans use custom stylesheets to get it.
Is it really necessary for the site to specify the justification at all? Why not leave it to the browser and whatever customisation the user chooses to make?
It's design. It's complicated. Maybe yes, if you look at research related to default usage patterns, and saccade distance, reading speed and retention latency. Maybe no, if you look at research related to fixation/focus time, eye strain, and non-linear access patterns. Maybe maybe, if you look at the subjective aesthetic of the page according to various criteria, like "does it look like a newspaper" and "do I have to resize my browser every time I visit a new site to get a decent width for reading". As has been said previously in this thread several times, it's best to leave this up to a design czar who will at least make some decisions who will make some people happy. I'm fairly certain it's not possible to create a design that's optimal for all readers in all cases. -glyph
Glyph Lefkowitz wrote:
"do I have to resize my browser every time I visit a new site to get a decent width for reading".
If all sites left the width to the browser, then I would be able to make my browser window a width that is comfortable for me with my chosen font size and leave it that way. The only time a site forces me to resize my window is when it thinks it has a better idea than me how wide the text should be. I prefer sites that don't try to control the layout of everything. When using a site that leaves most of it up to my browser, I never find myself wishing that the designer had specified something more tightly. However, I do often find myself wishing that the designer *hadn't* overridden the width, or the font size, or the text colour, or decided that I shouldn't be allowed to know whether I've visited links before, etc. etc. A web page is not a printed page. It is not rendered at a fixed size and viewed in its entirety at once. It needs to be flexible, able to be rendered in whatever size space is available or the user wants to devote to it. Browsers are very good at doing that -- unless the designer defeats them by fixing something that is better left flexible. -- Greg
On Mar 23, 2012 9:16 PM, "Greg Ewing"
Glyph Lefkowitz wrote:
"do I have to resize my browser every time I visit a new site to get a
decent width for reading".
If all sites left the width to the browser, then I would be able to make my browser window a width that is comfortable for me with my chosen font size and leave it that way. The only time a site forces me to resize my window is when it thinks it has a better idea than me how wide the text should be.
Weird - I have the exact *opposite* problem, where I have to resize my window because somebody *didn't* set their text max-width sanely (to a reasonable value based on ems instead of pixels), and I have nearly 1920 pixels of raw text spanning my screen. Bloody impossible to read that way. But I guess this is going to turn into one of those vi vs. emacs holy war things... (Personally, I prefer jEdit, or nano if absolutely forced to edit in a terminal. Heretical, I know. To the comfy chair with me!)
PJ Eby wrote:
Weird - I have the exact *opposite* problem, where I have to resize my window because somebody *didn't* set their text max-width sanely (to a reasonable value based on ems instead of pixels), and I have nearly 1920 pixels of raw text spanning my screen.
If you don't want 1920-pixel-wide text, why make your browser window that large? -- Greg
On Sat, Mar 24, 2012 at 1:32 AM, Greg Ewing
PJ Eby wrote:
Weird - I have the exact *opposite* problem, where I have to resize my
window because somebody *didn't* set their text max-width sanely (to a reasonable value based on ems instead of pixels), and I have nearly 1920 pixels of raw text spanning my screen.
If you don't want 1920-pixel-wide text, why make your browser window that large?
Not every tab in my browser is text for reading; some are apps that need the extra horizontal space. That is, they have more than one column of text or data -- but no individual column spans anywhere near the full width. (Google Docs, for example, shows me two pages at a time when I'm reading a PDF.)
PJ Eby
On Sat, Mar 24, 2012 at 1:32 AM, Greg Ewing
wrote: If you don't want 1920-pixel-wide text, why make your browser window that large?
Not every tab in my browser is text for reading; some are apps that need the extra horizontal space.
So, again, why make your browser window *for reading text* that large? You have control over how large your window size is, and if you have purposes so different that they demand different widths, then you can easily make different-width windows. Everyone has different needs for how large the text should be and how much of it should go across the window. Every one of us is in a minority when it comes to those needs; that's exactly what a configuration setting is good for. It's madness to expect web designers to hobble the flexibility of a web page to cater preferentially for one minority over others. -- \ “Come on Milhouse, there’s no such thing as a soul! It’s just | `\ something they made up to scare kids, like the Boogie Man or | _o__) Michael Jackson.” —Bart, _The Simpsons_ | Ben Finney
On Sun, Mar 25, 2012 at 1:41 AM, Ben Finney
PJ Eby
writes:
Not every tab in my browser is text for reading; some are apps that need the extra horizontal space.
So, again, why make your browser window *for reading text* that large?
Because he prefers controlling the content viewed by selecting tabs rather than selecting windows, no doubt. But since he's arguing the other end in the directory layout thread (where he says there are many special ways to invoke Python so that having different layouts on different platforms is easy to work around), I can't give much weight to his preference here. Anyway, CSS is supposed to allow the user to impose such constraints herself, so Philip "should" do so with a local style, rather than ask designers to do it globally.
It's madness to expect web designers to hobble the flexibility of a web page to cater preferentially for one minority over others.
No, as Glenn points out, designers (I wouldn't call them *web* designers since they clearly have no intention of taking advantage of the power of the web in design, even if they incorporate links in their pages!) frequently do exactly that. (The minority of one in question being the designer himself!) So it's rational to expect it. :-( However, I believe that CSS also gives us the power to undo such bloodymindedness, though I've never gone to the trouble of learning how. Steve
On Sun, Mar 25, 2012 at 2:56 AM, Stephen J. Turnbull
But since he's arguing the other end in the directory layout thread (where he says there are many special ways to invoke Python so that having different layouts on different platforms is easy to work around), I can't give much weight to his preference here.
You're misconstruing my argument there: I said, rather, that the One Obvious Way to deploy a Python application is to dump everything in one directory, as that is the one way that Python has supported for at least 15 years now. Calling this a "special" way of invoking Python is disingenuous at best: it's the documented *default* way of deploying and invoking a Python script with accompanying libraries. In contrast, the directory layout thread is about supporting virtualenvs, which aren't even *in* Python yet -- if anything is to be considered a special case, that would be it. The comparison to CSS is also lost on me here; creating user-specific CSS is more aptly comparable telling people to write their own virtualenv implementations from scratch, and resizing the browser window is more akin to telling people to create a virtualenv every time they *run* the application, rather than just once when installing it.
On Tue, Mar 27, 2012 at 1:35 AM, PJ Eby
On Sun, Mar 25, 2012 at 2:56 AM, Stephen J. Turnbull
wrote: But since he's arguing the other end in the directory layout thread (where he says there are many special ways to invoke Python so that having different layouts on different platforms is easy to work around), I can't give much weight to his preference here.
You're misconstruing my argument there: I said, rather, that the One Obvious Way to deploy a Python application is to dump everything in one directory, as that is the one way that Python has supported for at least 15 years now.
It's not at all obvious on any of the open source platforms (Cygwin, Debian, Gentoo, and MacPorts) that I use. In all cases, both several python binaries and installed libraries end up in standard places in the distro-maintained hierarchies, and it is not hard to confuse the distro-installed Pythons. Being confident that one knows enough to set up a single directory correctly in the face of some of the unlovely things that packages may do requires more knowledge of how Python's import etc works than I can boast: virtualenv is a godsend. By analogy, yes, I think it makes sense to ask you to learn a bit about CSS and add a single line like "body { width: 65em; }" to your local config. That's one reason why CSS is designed to cascade. Of course, even better yet would be if the browsers wrote the CSS for you (which probably wouldn't be too hard, if I knew any XUL, which I don't).
The comparison to CSS is also lost on me here; creating user-specific CSS is more aptly comparable telling people to write their own virtualenv implementations from scratch, and resizing the browser window is more akin to telling people to create a virtualenv every time they *run* the application, rather than just once when installing it.
Huh, if you say so -- I didn't realize that virtualenv did so little that it could be written in one line. All I know (and care) is that it promises to do all that stuff for me, and without affecting the general public (ie, the distro-provided Python apps). And that's why I think the width of pages containing flowed text should be left up to the user to configure.
On Mon, Mar 26, 2012 at 11:23 PM, Stephen J. Turnbull
On Sun, Mar 25, 2012 at 2:56 AM, Stephen J. Turnbull
wrote:
But since he's arguing the other end in the directory layout thread (where he says there are many special ways to invoke Python so that having different layouts on different platforms is easy to work around), I can't give much weight to his preference here.
You're misconstruing my argument there: I said, rather, that the One Obvious Way to deploy a Python application is to dump everything in one
On Tue, Mar 27, 2012 at 1:35 AM, PJ Eby
wrote: directory, as that is the one way that Python has supported for at least 15 years now.
It's not at all obvious on any of the open source platforms (Cygwin, Debian, Gentoo, and MacPorts) that I use. In all cases, both several python binaries and installed libraries end up in standard places in the distro-maintained hierarchies, and it is not hard to confuse the distro-installed Pythons.
Really? I've been doing "dump the app in a directory" since 1998 or so on various *nix platforms. And when distutils came along, I set up a user-specific cfg to install in the same directory. ISTR a 5-line pydistutils.cfg is sufficient to make everything go into to a particular directory, for packages using distutils for installation. Being confident that one knows enough to set up a single directory correctly
in the face of some of the unlovely things that packages may do requires more knowledge of how Python's import etc works than I can boast: virtualenv is a godsend. By analogy, yes, I think it makes sense to ask you to learn a bit about CSS and add a single line like "body { width: 65em; }" to your local config. That's one reason why CSS is designed to cascade.
That line won't work - it'll make the entire page that width, instead of just text paragraphs. (Plus, it should only be the *maximum* width - i.e. max-width.) Unfortunately, there's no way to identify the correct selector to use on all sites to select just the right elements to set max-width on - not all text is in "p", sometimes preformatted text is in a p with styles setting the formatting to be preformatted. (In other words, I actually do know a little about CSS - enough to know your idea won't actually work without tweaking it for different sites. I have enough Greasemonkey scripts as it is, never mind custom CSS.)
The comparison to CSS is also lost on me here; creating user-specific CSS is
more aptly comparable telling people to write their own virtualenv implementations from scratch, and resizing the browser window is more akin to telling people to create a virtualenv every time they *run* the application, rather than just once when installing it.
Huh, if you say so -- I didn't realize that virtualenv did so little that it could be written in one line.
Around 3-5 lines for dumping everything into a single directory. If you need multiple such directories at any one time, you can alternately pass --install-lib and --install-scripts to "setup.py install" when you install things. Or you can use easy_install and just specify the -d (--install-dir) option. Or, you could use the PYTHONHOME solution I described here in 2005: http://svn.python.org/view/sandbox/trunk/setuptools/EasyInstall.txt?r1=41220&r2=41221 Ian Bicking turned those instructions into a script, which he then gradually evolved into what we now know as virtualenv. Before that happened, though, I was deluged with complaints from people who were using "dump it in a directory somewhere" on *nix platforms and didn't want to have anything to do with those danged newfangled virtual whatchacallits. ;-) I mention this for context: my generic perception of virtualenv is that it's a fancy version of PYTHONHOME for people who can't install to site-packages and for some reason don't just dump their files in a PYTHONPATH directory like all those complaining people obviously did. ;-) All I know (and care) is
that it promises to do all that stuff for me, and without affecting the general public (ie, the distro-provided Python apps).
And that's why I think the width of pages containing flowed text should be left up to the user to configure.
Your analogy is backwards: virtualenv is a generic, does-it-all-for-you, no need to touch it solution. User CSS and window sizes have to specified per-site. (Note that it doesn't suffice to use a small window to get optimal wrap width: you have to resize to allow for navigation bars, multiple columns, etc.) I think we should just agree to disagree; there's virtually no way I'm going to be convinced on either of these points. (I do, however, remain open to learning something new about virtualenv, if it actually does something besides make it possible for you to deal with ill-behaved setup scripts and installation tools that won't just let you point them at a single directory and have done with it.)
PJ Eby wrote:
Really? I've been doing "dump the app in a directory" since 1998 or so on various *nix platforms. And when distutils came along, I set up a user-specific cfg to install in the same directory. ISTR a 5-line pydistutils.cfg is sufficient to make everything go into to a particular directory, for packages using distutils for installation.
Perhaps somebody could clue me in on the best way to handle this scenario: I develop in a single directory: c:\source\loom\ loom.py test_loom.py because test_loom could at some point be executed by somebody besides me, while living in site-packages, I have test_loom.py create its needed files, including dynamic test scripts, in a temp directory. While this works fine for site-packages, it doesn't work at all while testing as the test script, being somewhere else, won't be able to load my test copy of loom. I know I have at least two choices: - go with a virtualenv and have my development code be in the virtualenv site-packages - insert the current path into sys.path before calling out to the dynamic scripts, but only if the current path is not site-packages Suggestions? ~Ethan~
On Tue, Mar 27, 2012 at 9:02 PM, Ethan Furman
PJ Eby wrote:
Really? I've been doing "dump the app in a directory" since 1998 or so on various *nix platforms. And when distutils came along, I set up a user-specific cfg to install in the same directory. ISTR a 5-line pydistutils.cfg is sufficient to make everything go into to a particular directory, for packages using distutils for installation.
Perhaps somebody could clue me in on the best way to handle this scenario:
I develop in a single directory:
c:\source\loom\ loom.py test_loom.py
because test_loom could at some point be executed by somebody besides me, while living in site-packages, I have test_loom.py create its needed files, including dynamic test scripts, in a temp directory. While this works fine for site-packages, it doesn't work at all while testing as the test script, being somewhere else, won't be able to load my test copy of loom.
I know I have at least two choices: - go with a virtualenv and have my development code be in the virtualenv site-packages - insert the current path into sys.path before calling out to the dynamic scripts, but only if the current path is not site-packages
Suggestions?
At first I didn't understand the question, because I was misled by your directory layout sketch -- AFAICT it's completely irrelevant to the real problem, which is simply making sure that the directory containing loom.__file__ is on sys.path. I'm somewhat hard-pressed to see, "embed the virtualenv tool in my test script" as superior to either "Copy the modules I want to the temp directory alongside the modules" or "setup sys.path when running the scripts" (e.g. by altering the PYTHONPATH in the child environment). (I'm not clear on why you want to skip the path alteration in the site-packages case - is there something else in site-packages you don't want having top import priority? And if not, why not?) All that being said, I can see why under certain circumstances, a virtualenv might be an optimal tool to reach for; it's just not the *first* thing I'd reach for if a sys.path[0] assignment or environment variable setting would suffice to get the needed module(s) on the path.
~Ethan~
On Wed, Mar 28, 2012 at 4:45 AM, PJ Eby
[ body { width: 65em; } ] won't work - it'll make the entire page that width, instead of just text paragraphs.
True (I realized that might be bad in many cases later -- should have tested first rather than posting something random), but despite your argument, "p { max-width: 40em; }" will be good enough to handle pages where the designer leaves text width up to the user. Pages (or parts thereof) where the designer fubars the format for you are not my problem, they're *your* problem. "Be careful what you ask for, because you just might get it." Also, this is UI, in an environment where poor UI is easily worked around with a flick of your mouse. A improvement in 90% of the cases is a 90% improvement -- there won't be any fatal problems in the 10% where designers choose a max-width that's 200% of your personal max-width or whatever.
Your analogy is backwards: virtualenv is a generic, does-it-all-for-you, no need to touch it solution.
If you want to phrase it as an analogy, mine is virtualenv :: do-it-*for*-you :: site-specified max-width but dump-it-in-a-directory :: DIY :: user-specified CSS. The point of the analogy is that you're being inconsistent by using dump-it-in-a-directory yourself but recommending site-specified max-width for the Python docs. It's true I'm being similarly inconsistent in a sense (using virtualenv myself but recommending user CSS for Python docs). However, in this discussion, there are more important things than consistency. I think there are an awful lot of people who need reliable deployment, consistent with their development environments, so it makes sense to have Ian package it up for us as "virtualenv", and for it to be somewhat inflexible in its rules for doing so. OTOH, AFAICS those who use maximized windows for everything are a relatively small minority who will be well-served by a simple workaround, and there are gains to having the flexibility for the rest of us. The big problem from my point of view with the user CSS "solution" to the maximized-window problem is that common browsers don't make this easy to do. Cf. Terry Reedy's post asking how to specify user CSS for Firefox (where it's actually easy enough to do once you know how, but evidently not very discoverable). However, if you're in a sufficiently small minority (as I believe you are), it makes sense for Georg to (regretfully<wink/>) ask you to use personal CSS to tell your browser about your preference.
User CSS and window sizes have to specified per-site.
They do? But *you* don't, you just maximize your window. So only a few sites will need specification in any case, those whose max-width exceeds tolerable bounds for you. And a personal max-width will affect only unbounded pages unless you use "! important". The point of user CSS is not to get optimality, which is a content-dependent problem for negotiation between user and designer, and sometimes one side or the other takes absolute priority. It's to ensure that users with special needs (very nearsighted users, users who prefer to work always in a maximized browser window) don't get screwed by extreme designs.
(Note that it doesn't suffice to use a small window to get optimal wrap width:
I don't believe in optimal wrap width, and as far as I know, neither do the 1% of designers. I don't even *have* a personal optimal wrap width, although max height is almost always close enough to optimal. But I sometimes maximize the width of my browser window to get even more of the "structure" of text viewable in it, or reduce it to make word-for-word reading more efficient. Again, the problem here is not "suboptimal". AFAICS, it's preventing a few people who have evolved personal workflows adapted to a common design pattern that's not appropriate for documentation (IMO YMMV) from getting *pessimal* results. I believe that you can get what you need with user CSS in the case of no max-width (let's not forget that you and R. David Murray may prefer different values!), while many use-cases would want no max-width. But "p { max-width: none ! important; }" would not work well for us, since it would override all designers who set max-width.
I think we should just agree to disagree; there's virtually no way I'm going to be convinced on either of these points.
Hey, I'm an economist: de gustibus non est disputandum. Convincing you is not my goal; I want to convince Georg! *Policy* needs to be for the greatest good of the greatest number, and Georg IMO should set max-width, or not, as that makes reading the documentation more effective for the most people. I prefer "not", assuming it doesn't completely trash its usability for you and David (and assuming you're in as small a minority as I believe you to be).
On Sat, Mar 24, 2012 at 8:41 PM, Ben Finney
PJ Eby
writes: On Sat, Mar 24, 2012 at 1:32 AM, Greg Ewing
If you don't want 1920-pixel-wide text, why make your browser window that large?
Not every tab in my browser is text for reading; some are apps that need the extra horizontal space.
So, again, why make your browser window *for reading text* that large?
Because I have one browser window, and it's maximized. And I can do this, because most websites are designed in such a way that they have usable margins for text flows. Even PEPs and Python mailing list archives, for example, have sane text margins -- shall we go back and make *those* dependent on window width instead? Also, looking at the email I got from you, it has sane text margins in it. If you don't believe in text margins, why are you using a client that wraps lines and thereby prevents me from viewing your email with full-screen-width text? ;-) (In fairness, I am using a client that *doesn't* wrap the lines, AFAICT. But if Gmail had such an option I would probably use it if I knew where it was in the vast assortment of settings. Which ties in nicely with my next point, below...) Everyone has different needs for how large the text should be and how
much of it should go across the window. Every one of us is in a minority when it comes to those needs; that's exactly what a configuration setting is good for.
Designers' rules of thumb for text width are based on empirical observations of focal length, saccades, etc. If you have special needs visually, you're more likely to require the text read to you, than to have narrower text, and I at least am unable to conceive of a visual disability that would be helped by *increasing* the text width. In other words, there is a well-established *majority* need for how many characters should appear in an unwrapped line of text, based on majority physiology. Designers who limit it based on pixel size are Doing It Wrong; the max width should be based on em's rather than pixels. (Font sizes are a separate issue.) Done correctly (as visible, say, on any plaintext PEP), you may resize the window and change the font size to your heart's content without affecting the text width in characters. (Also, as a side note: adding lots of configuration options to an interface design is what adding lots of code is to a software design: a smell that the designer isn't *designing* enough.)
On Mon, 26 Mar 2012 12:55:42 -0400, PJ Eby
On Sat, Mar 24, 2012 at 8:41 PM, Ben Finney
wrote: So, again, why make your browser window *for reading text* that large?
Because I have one browser window, and it's maximized. And I can do this, because most websites are designed in such a way that they have usable margins for text flows. Even PEPs and Python mailing list archives, for example, have sane text margins -- shall we go back and make *those* dependent on window width instead?
[...]
Designers' rules of thumb for text width are based on empirical observations of focal length, saccades, etc. If you have special needs visually, you're more likely to require the text read to you, than to have narrower text, and I at least am unable to conceive of a visual disability that would be helped by *increasing* the text width.
In other words, there is a well-established *majority* need for how many characters should appear in an unwrapped line of text, based on majority physiology. Designers who limit it based on pixel size are Doing It Wrong; the max width should be based on em's rather than pixels. (Font sizes are a separate issue.)
I'm with Philip on this one. I hate web sites that have a fixed text width (so that you can't resize narrower and still read it), but I also prefer ones that set the max width to the "readable size" in number of character positions. Like Philip, I have *one* window. My window manager (ratpoison) is more like 'screen' for X: you *can* split the window up, but it is *much* more useful to have only one window visible at a time, most of the time. So splitting the window in order to make the text narrow enough to read slows down my workflow. (Which means that on the python docs and the bug tracker I just put up with reading it wide...) I realize that I'm in the minority, though :) --David
On 3/26/2012 10:19 AM, R. David Murray wrote:
Like Philip, I have*one* window. My window manager (ratpoison) is more like 'screen' for X: you*can* split the window up, but it is*much* more useful to have only one window visible at a time, most of the time.
I'm amazed at the number of people that use maximized windows, one application at a time. I have 2 1600x1200 displays, with 10-30 overlapping windows partially visible, and sometimes wish I had 3 displays, so I could see more windows at a time... but then I'd have to turn my head more, so maybe this is optimal. Two displays lets me get my autohidden taskbar in the vertical center, for quick access from either side. I occasionally maximize a window on one screen or the other (one portrait, one landscape mode), mostly for picture viewing, but a few other times as well.
I realize that I'm in the minority, though
No doubt I am too :) Everyone is a minority, when all idiotsyncrasies [sic] are considered!
Glenn Linderman wrote:
On 3/26/2012 10:19 AM, R. David Murray wrote:
Like Philip, I have *one* window. My window manager (ratpoison) is more like 'screen' for X: you *can* split the window up, but it is *much* more useful to have only one window visible at a time, most of the time.
I'm amazed at the number of people that use maximized windows, one application at a time. I have 2 1600x1200 displays, with 10-30 overlapping windows partially visible, and sometimes wish I had 3 displays, so I could see more windows at a time... but then I'd have to turn my head more, so maybe this is optimal. Two displays lets me get my autohidden taskbar in the vertical center, for quick access from either side.
I also have two monitors, I use goScreen for three virtual desktops (I'm stuck with XP -- which is to say MS), and each application I use is full-screen while I'm using it. I find windows that I'm not using at that moment a distraction. ~Ethan~
On 3/26/2012 10:58 AM, Ethan Furman wrote:
Glenn Linderman wrote:
On 3/26/2012 10:19 AM, R. David Murray wrote:
Like Philip, I have *one* window. My window manager (ratpoison) is more like 'screen' for X: you *can* split the window up, but it is *much* more useful to have only one window visible at a time, most of the time.
I'm amazed at the number of people that use maximized windows, one application at a time. I have 2 1600x1200 displays, with 10-30 overlapping windows partially visible, and sometimes wish I had 3 displays, so I could see more windows at a time... but then I'd have to turn my head more, so maybe this is optimal. Two displays lets me get my autohidden taskbar in the vertical center, for quick access from either side.
I also have two monitors, I use goScreen for three virtual desktops (I'm stuck with XP -- which is to say MS), and each application I use is full-screen while I'm using it. I find windows that I'm not using at that moment a distraction.
Interesting. I guess I'm always distracted :) But I often need data or information from multiple applications in order to make progress on a project... which is why each application seldom gets maximized. I even use multiple Firefox profiles concurrently, to have multiple browsers open for different purposes, as well as multiple tabs within each of them. Sometimes I even need multiple instances of Emacs, as well as multiple windows for a single instance, but that is usually very temporary, due to an interruption (distraction). So my pet peeve about web sites is those that, although they seem to dynamically adjust to different monitor sizes, seem to miscalculate, and display a horizontal scroll bar, and consistently chop stuff off on the right edge of my non-maximized window.
On 03/24/2012 03:30 AM, PJ Eby wrote:
Weird - I have the exact *opposite* problem, where I have to resize my window because somebody *didn't* set their text max-width sanely (to a reasonable value based on ems instead of pixels), and I have nearly 1920 pixels of raw text spanning my screen. Bloody impossible to read that way.
But I guess this is going to turn into one of those vi vs. emacs holy war things...
(Personally, I prefer jEdit, or nano if absolutely forced to edit in a terminal. Heretical, I know. To the comfy chair with me!)
Suppose the author set the size to 1000 pixels, you would end up with 920 white pixels on the side, does it make sense? Using a tiling window manager (for example awesome or xmonad) would solve your problem in a more definitive way imho than hoping in the web designer choices..
On Tue, Mar 20, 2012 at 11:38:53PM +0100, Georg Brandl wrote:
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
Looks very nice! A few notes, if you don't mind. 1. I'd prefer a little bit bigger fonts. 2. IWBN IMHO to extend the grayish background of the navigation bar at the left to the bottom of the page. White space below short boxes looks strange for me. 3. A lot of small adjacent code snippets with a different background make my eyes hurt. See for example the note number 5 at http://www.python.org/~gbrandl/build/html/library/stdtypes.html#sequence-typ... I'd like inline code snippets to have the same background. Bold font and/or a different foreground color would be better, in my opinion. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.
If I can get my five cents, I will tell about my impressions. I really liked the background of allocated blocks (such as notes and code snippets) has become less diverse (but still visible). The border around these blocks have become more accurate and more pleasant to emphasize blocks. It is very good that the sidebar is no longer confused look. And everything looks quite nice. But the font is a little bit small for my eyes (on the contrary current theme font a little bit big). This leads to too long (in characters) lines. Less obvious was the structure of the document (due to decrease the font size of the header and the removal of the dividing lines). I would like to that the background color of ".note tt" has become a little lighter and quieter.
On 3/21/2012 1:04 PM, Serhiy Storchaka wrote:
If I can get my five cents, I will tell about my impressions. I really liked the background of allocated blocks (such as notes and code snippets) has become less diverse (but still visible). The border around these blocks have become more accurate and more pleasant to emphasize blocks. It is very good that the sidebar is no longer confused look. And everything looks quite nice. But the font is a little bit small for my eyes (on the contrary current theme font a little bit big). This leads to too long (in characters) lines. Less obvious was the structure of the document (due to decrease the font size of the header and the removal of the dividing lines).
You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site. --Ned.
I would like to that the background color of ".note tt" has become a little lighter and quieter.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ned%40nedbatchelder.com
On Wed, Mar 21, 2012 at 11:40 AM, Ned Batchelder
You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site.
That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default. -- --Guido van Rossum (python.org/~guido)
On Wed, Mar 21, 2012 at 2:46 PM, Guido van Rossum
That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default.
Yet 90% of designers (or more) insist on making text insanely small, commonly specifying the size in pixles or (if we're lucky) points. Not sure there's any lesson to be learned from this, aside from designers really having it out for anyone who needs to read. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> "A person who won't read has no advantage over one who can't read." --Samuel Langhorne Clemens
On Wed, Mar 21, 2012 at 2:46 PM, Guido van Rossum
wrote: That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default. Yet 90% of designers (or more) insist on making text insanely small, commonly specifying the size in pixles or (if we're lucky) points.
Not sure there's any lesson to be learned from this, aside from designers really having it out for anyone who needs to read. There are bad designers, or more to the point, designers who favor the overall look of the page at the expense of the utility of the page. That doesn't mean all designers are bad, or that "design" is bad. Don't
On 3/21/2012 3:06 PM, Fred Drake wrote: throw out the baby with the bathwater. --Ned.
-Fred
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/21/2012 03:13 PM, Ned Batchelder wrote:
On 3/21/2012 3:06 PM, Fred Drake wrote:
On Wed, Mar 21, 2012 at 2:46 PM, Guido van Rossum
wrote: That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default. Yet 90% of designers (or more) insist on making text insanely small, commonly specifying the size in pixles or (if we're lucky) points.
Not sure there's any lesson to be learned from this, aside from designers really having it out for anyone who needs to read. There are bad designers, or more to the point, designers who favor the overall look of the page at the expense of the utility of the page. That doesn't mean all designers are bad, or that "design" is bad. Don't throw out the baby with the bathwater.
Designers who care more about utility / accessibility more than their hipster karma seem to be a tiny minority in the current web world (without even counting "web designers" who think a Photoshop document is the final deliverable). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9qPBEACgkQ+gerLs4ltQ5fMwCcD8cHLDch/cIlBpVY4htmlDN4 fzQAmgNUVVn+uByZRBI22TB7ETdkLzmP =ZHdF -----END PGP SIGNATURE-----
On Wed, Mar 21, 2012 at 3:13 PM, Ned Batchelder
There are bad designers, or more to the point, designers who favor the overall look of the page at the expense of the utility of the page. That doesn't mean all designers are bad, or that "design" is bad. Don't throw out the baby with the bathwater.
I get that. I'm not bad-mouthing actual design, and there are definitely good designers out there. It's unfortunate they're so seriously outnumbered. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> "A person who won't read has no advantage over one who can't read." --Samuel Langhorne Clemens
On 3/21/2012 4:38 PM, Fred Drake wrote:
On Wed, Mar 21, 2012 at 3:13 PM, Ned Batchelder
wrote: There are bad designers, or more to the point, designers who favor the overall look of the page at the expense of the utility of the page. That doesn't mean all designers are bad, or that "design" is bad. Don't throw out the baby with the bathwater. I get that. I'm not bad-mouthing actual design, and there are definitely good designers out there.
It's unfortunate they're so seriously outnumbered. Yeah, just like software architects... :-(
--Ned.
-Fred
Fred Drake wrote:
On Wed, Mar 21, 2012 at 3:13 PM, Ned Batchelder
wrote: There are bad designers, or more to the point, designers who favor the overall look of the page at the expense of the utility of the page. That doesn't mean all designers are bad, or that "design" is bad. Don't throw out the baby with the bathwater.
I get that. I'm not bad-mouthing actual design, and there are definitely good designers out there.
It's unfortunate they're so seriously outnumbered.
As they say, the 99% who are lousy designers give the rest a bad name. *wink* My first impression of this page: http://www.python.org/~gbrandl/build/html/index.html was that the grey side-bar gives the page a somber, perhaps even dreary, look. First impressions count, and I'm afraid that first look didn't work for me. But clicking through onto other pages with more text improved my feelings. A big +1 on the pale green shading of code blocks. The basic design seems good to me. I'd prefer a serif font for blocks of text, while keeping sans serif for the headings, but that's a mild preference. Looking forward to seeing the next iteration. -- Steven
In article <4F6B5B33.9020406@pearwood.info>,
Steven D'Aprano
... My first impression of this page:
http://www.python.org/~gbrandl/build/html/index.html
was that the grey side-bar gives the page a somber, perhaps even dreary, look. First impressions count, and I'm afraid that first look didn't work for me.
But clicking through onto other pages with more text improved my feelings. A big +1 on the pale green shading of code blocks.
The basic design seems good to me. I'd prefer a serif font for blocks of text, while keeping sans serif for the headings, but that's a mild preference.
Looking forward to seeing the next iteration.
I like the overall design, but one thing seems to be missing is an overview of what Python is (hence what the page is about). Naturally we don't need that, but a one-line overview with a link to more information would be helpful. -- Russell
In article
In article <4F6B5B33.9020406@pearwood.info>, Steven D'Aprano
wrote: ... My first impression of this page:
http://www.python.org/~gbrandl/build/html/index.html
was that the grey side-bar gives the page a somber, perhaps even dreary, look. First impressions count, and I'm afraid that first look didn't work for me.
But clicking through onto other pages with more text improved my feelings. A big +1 on the pale green shading of code blocks.
The basic design seems good to me. I'd prefer a serif font for blocks of text, while keeping sans serif for the headings, but that's a mild preference.
Looking forward to seeing the next iteration.
I like the overall design, but one thing seems to be missing is an overview of what Python is (hence what the page is about). Naturally we don't need that, but a one-line overview with a link to more information would be helpful.
-- Russell
I'm afraid my last sentence was incoherent. I meant to say: Naturally we, as Python users, don't need that; but a one-line overview with a link to more information would be helpful to others who are not familiar with the language. -- Russell
On 22.03.2012 20:05, Russell E. Owen wrote:
I like the overall design, but one thing seems to be missing is an overview of what Python is (hence what the page is about). Naturally we don't need that, but a one-line overview with a link to more information would be helpful.
-- Russell
I'm afraid my last sentence was incoherent. I meant to say:
Naturally we, as Python users, don't need that; but a one-line overview with a link to more information would be helpful to others who are not familiar with the language.
Hi Russell, note that the page is not supposed to replace python.org, but is just a new styling of the Python documentation, docs.python.org, where it is kind of assumed that you know what Python is... Georg
On 3/22/2012 10:02 AM, Steven D'Aprano wrote:
As they say, the 99% who are lousy designers give the rest a bad name.
*wink*
:)
My first impression of this page:
http://www.python.org/~gbrandl/build/html/index.html
was that the grey side-bar gives the page a somber, perhaps even dreary, look. First impressions count, and I'm afraid that first look didn't work for me.
The dark sidebar continued down the whole page, and made it clearer why that space was being wasted at the bottom of long pages... I had never noticed, until doing the side-by-side comparison, that it was possible to collapse the TOC sidebar, but this seems to be true only in the old layout. After looking at both a while, my suggestions would be: 1. Preserve the collapsability of the TOC, but possible enhance its recognizability with an X in the upper right of the TOC sidebar, as well as the << in the middle. 2. Make the header fixed, so that the bread crumb trail at the top is available even after scrolling way down a long page. 3. Make the sidebar separately scrollable, so that it stays visible when scrolling down in the text. This would make it much easier to jump from section to section, if the TOC didn't get lost in the process. I have no particular preferences for colors or background colors, as long as they are reasonably legible. I do have a preference for serif fonts, especially if the font gets small. Can anyone point me to any legibility studies that show any font being more legible, more easily readable, than Times Roman? (And yes, I know a lot of people that dislike Times Roman, and none of them ever have.)
On Fri, Mar 23, 2012 at 6:50 AM, Glenn Linderman
3. Make the sidebar separately scrollable, so that it stays visible when scrolling down in the text. This would make it much easier to jump from section to section, if the TOC didn't get lost in the process.
-1. The downside of separate scrolling is that you lose the ability to scroll-wheel the main docs if your mouse is over the TOC. I'd rather it stay as a single page, so it doesn't matter where my pointer is when I scroll. But I realise I'm bikeshedding this a bit. Bottom line: I'll use Python, and docs.python.org, regardless of the design and layout... so I'll let the expert(s) decide this one. ChrisA
Georg, please start a new thread when you have a new design for review. I'm muting this one... -- --Guido van Rossum (python.org/~guido)
On Fri, 23 Mar 2012 07:57:18 +1100, Chris Angelico
On Fri, Mar 23, 2012 at 6:50 AM, Glenn Linderman
wrote: 3. Make the sidebar separately scrollable, so that it stays visible when scrolling down in the text. This would make it much easier to jump from section to section, if the TOC didn't get lost in the process.
-1. The downside of separate scrolling is that you lose the ability to scroll-wheel the main docs if your mouse is over the TOC. I'd rather it stay as a single page, so it doesn't matter where my pointer is when I scroll.
I agree, and I don't use a mousewheel much. I use pentadactyl, and in that case sometimes the keyboard focus ends up in the TOC and then the scrolling keys scroll the wrong thing (or appear to do nothing, since such things are generally shorter than my screen...) and I can never remember the key sequence to change the focus, because *most* sites I don't have that problem with. For whatever that's worth :) --David
Glenn Linderman wrote:
After looking at both a while, my suggestions would be:
1. Preserve the collapsability of the TOC, but possible enhance its recognizability with an X in the upper right of the TOC sidebar, as well as the << in the middle.
2. Make the header fixed, so that the bread crumb trail at the top is available even after scrolling way down a long page.
3. Make the sidebar separately scrollable, so that it stays visible when scrolling down in the text. This would make it much easier to jump from section to section, if the TOC didn't get lost in the process.
+1 +1 and, of course, +1 Having to go clear back to the top is a pain, and I never knew `til now that the sidebar was collapsible. ~Ethan~
Wiadomość napisana przez Ethan Furman w dniu 22 mar 2012, o godz. 22:18:
Glenn Linderman wrote:
After looking at both a while, my suggestions would be: 1. Preserve the collapsability of the TOC, but possible enhance its recognizability with an X in the upper right of the TOC sidebar, as well as the << in the middle. 2. Make the header fixed, so that the bread crumb trail at the top is available even after scrolling way down a long page. 3. Make the sidebar separately scrollable, so that it stays visible when scrolling down in the text. This would make it much easier to jump from section to section, if the TOC didn't get lost in the process.
+1 +1 and, of course, +1
Something like that: http://packages.python.org/lck.django/lck.django.tags.models.html ? (breadcrumbs are at the bottom) -- Best regards, Łukasz Langa Senior Systems Architecture Engineer IT Infrastructure Department Grupa Allegro Sp. z o.o.
Can we please get rid of the sidebar, or at least provide a way of turning it off? I don't think it's anywhere near useful enough to be worth the space it takes up. You can only use it when you're scrolled to the top of the page, otherwise it's just a useless empty space. Also, I often want to put the documentation side by side with the code I'm working on, and having about a quarter to a third of the horizontal space taken up with junk makes that much more awkward than it needs to be. A table of contents as a separate page is a lot more usable for me. I can keep it open in a browser tab and switch to it when I want to look at it. Most of the time I don't want to look at it and don't want it taking up space on the page. Also I agree about the grey text being suboptimal. Deliberately throwing away contrast, especially for the main body text, is insane. -- Greg
On Thu, Mar 22, 2012 at 11:56 PM, Greg Ewing
Can we please get rid of the sidebar, or at least provide a way of turning it off? I don't think it's anywhere near useful enough to be worth the space it takes up.
+1. It seems to mostly duplicate the headline next/previous buttons already duplicated in the footer, it doesn't give you the whole TOC, and the whole TOC already present in many nodes. The "Search bar" is a standard feature of most headers (and sometimes footers), and I like the "Report a Bug" link because it confirms to the reader that Python developers actually care what they (readers) think. I guess there is enough room for both of those in the header even after subtractiing the horizontal space for the sidebar.
A table of contents as a separate page is a lot more usable for me.
I agree, but with emphasis on the *for me* part. I suspect this is a personal preference.
Also I agree about the grey text being suboptimal.
+1 for black text or a perceptibly darker grey.
Deliberately throwing away contrast, especially for the main body text, is insane.
It does *look* nice, though. Overall, very nice job, Georg!
On 3/21/2012 2:46 PM, Guido van Rossum wrote:
On Wed, Mar 21, 2012 at 11:40 AM, Ned Batchelder
wrote: You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site. That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default.
Yes, sorry, that was exactly my point earlier in this thread. I was being a bit snarky with Serhiy. Seems the standard here is for people to request their personal favorite tweaks, and then tell others that they can use browser customizations to get what they want. Guido, you encouraged us to use science, but only after describing my science-based maximum line-length suggestion as "coddling," then said we should let Georg get on with it, but only after reiterating your personal favorite tweak (which I happen to agree with). There's no way a committee (which this thread effectively is) will come up with a good design. Everyone will dislike something about it. I think it would be interesting to use the power of the web to provide docs whose style could be adjusted a few ways to make people happy, but that is probably more than anyone is willing to volunteer for, I know I can't step up to do it. Personally, I think two Python projects that have focused on docs and done a good job of it are Django and readthedocs.org. Perhaps we could follow their lead? --Ned.
On Wed, Mar 21, 2012 at 12:12 PM, Ned Batchelder
On 3/21/2012 2:46 PM, Guido van Rossum wrote:
On Wed, Mar 21, 2012 at 11:40 AM, Ned Batchelder
wrote: You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site.
That doesn't mean the web designer shouldn't think at least twice before specifying a smaller font than the browser default.
Yes, sorry, that was exactly my point earlier in this thread. I was being a bit snarky with Serhiy. Seems the standard here is for people to request their personal favorite tweaks, and then tell others that they can use browser customizations to get what they want.
Guido, you encouraged us to use science, but only after describing my science-based maximum line-length suggestion as "coddling," then said we should let Georg get on with it, but only after reiterating your personal favorite tweak (which I happen to agree with).
I have a fair number of strong usability gripes about current (and past :-) design trends, but I know I can't design a decent looking website myself if my life depended on it.
There's no way a committee (which this thread effectively is) will come up with a good design. Everyone will dislike something about it. I think it would be interesting to use the power of the web to provide docs whose style could be adjusted a few ways to make people happy, but that is probably more than anyone is willing to volunteer for, I know I can't step up to do it.
I think it's fine to have a bunch of folks submit their pet peeves (and argue them to the death :-) to the design czar and then let the czar (i.e. Georg) decide.
Personally, I think two Python projects that have focused on docs and done a good job of it are Django and readthedocs.org. Perhaps we could follow their lead?
I think they are actually more trend-followers,and they seem to make a bunch of the mistakes I've fulminated against here. But again, I'll leave it to Georg. -- --Guido van Rossum (python.org/~guido)
On Wed, 21 Mar 2012 12:39:18 -0700, Guido van Rossum
On Wed, Mar 21, 2012 at 12:12 PM, Ned Batchelder
wrote: Personally, I think two Python projects that have focused on docs and done a good job of it are Django and readthedocs.org. Perhaps we could follow their lead?
I think they are actually more trend-followers,and they seem to make a bunch of the mistakes I've fulminated against here. But again, I'll leave it to Georg.
I'm pretty sure they are following the trend set by Python/Georg...it comes withs Sphinx, after all, and looks pretty good in general. --David
On 21.03.2012 20:39, Guido van Rossum wrote:
Guido, you encouraged us to use science, but only after describing my science-based maximum line-length suggestion as "coddling," then said we should let Georg get on with it, but only after reiterating your personal favorite tweak (which I happen to agree with).
I have a fair number of strong usability gripes about current (and past :-) design trends, but I know I can't design a decent looking website myself if my life depended on it.
There's no way a committee (which this thread effectively is) will come up with a good design. Everyone will dislike something about it. I think it would be interesting to use the power of the web to provide docs whose style could be adjusted a few ways to make people happy, but that is probably more than anyone is willing to volunteer for, I know I can't step up to do it.
I think it's fine to have a bunch of folks submit their pet peeves (and argue them to the death :-) to the design czar and then let the czar (i.e. Georg) decide.
Personally, I think two Python projects that have focused on docs and done a good job of it are Django and readthedocs.org. Perhaps we could follow their lead?
I think they are actually more trend-followers,and they seem to make a bunch of the mistakes I've fulminated against here. But again, I'll leave it to Georg.
Thanks for the vote of confidence. I'll know what to consider for the next iteration thanks to the lively participation here :) Georg
On Wed, Mar 21, 2012 at 02:40:04PM -0400, Ned Batchelder wrote:
You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site.
Browsers usually remember the setting for the entire site, not only documentation. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.
+10 for new design.
+1 for respecting default font size rather than "div.body {font-size: smaller;}"
Users loving smaller font can set their browser's default font size.
On Wed, Mar 21, 2012 at 7:38 AM, Georg Brandl
Hi all,
recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result:
http://www.python.org/~gbrandl/build/html/
The corresponding sandbox repo is at
http://hg.python.org/sandbox/doc-theme/#doc-theme
Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.)
Thanks, Georg
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/songofacandy%40gmail.com
--
INADA Naoki
participants (33)
-
Andrea Crotti
-
Antoine Pitrou
-
Ben Finney
-
Cameron Simpson
-
Chris Angelico
-
Chris Withers
-
Dirkjan Ochtman
-
Ethan Furman
-
Fred Drake
-
Georg Brandl
-
Glenn Linderman
-
Glyph Lefkowitz
-
Greg Ewing
-
Gregory P. Smith
-
Guido van Rossum
-
INADA Naoki
-
John O'Connor
-
Jonathan Hartley
-
Matt Joiner
-
Ned Batchelder
-
Oleg Broytman
-
PJ Eby
-
R. David Murray
-
Raymond Hettinger
-
Russell E. Owen
-
Serhiy Storchaka
-
Stephen J. Turnbull
-
Steven D'Aprano
-
Terry Reedy
-
Tres Seaver
-
Yury Selivanov
-
Łukasz Langa
-
Łukasz Rekucki