[issue3143] Make the left sidebar in the doc collapsible

2010-07-30 Thread Georg Brandl

Georg Brandl  added the comment:

Now used in trunk docs, r83274.

--
resolution: remind -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
components:  -Documentation tools (Sphinx)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2010-05-24 Thread Georg Brandl

Georg Brandl  added the comment:

Committed the sidebar.js to Sphinx trunk.  When Python switches to 1.0, we can 
activate the option to use it.  Thanks Ezio!

--
resolution:  -> remind

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread Ezio Melotti

Ezio Melotti  added the comment:

Even if I tested it only with Python documentation, the script should work for 
other docs generated by Sphinx (at least with the default theme).
Last time I tried the script it wasn't working on Chrome, so there's still some 
work to do. If you want to try it and see if it works with your doc, it should 
be enough to copy the .js file and include it in the HTML page using a 

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread R. David Murray

R. David Murray  added the comment:

I'm pretty sure it only applies to the python docs, since this is the Python 
tracker, not the Sphinx or docutils tracker.  (I'm not sure how the 
'Documentation tools (Sphinx)' component gets in there...as far as I know 
Sphinx bugs go the Sphinx bug tracker.)

--
nosy: +r.david.murray
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread Forest Wilkinson

Forest Wilkinson  added the comment:

I just noticed Ezio's change to the title of this bug.  Does the proposed fix 
address the original bug title ("docs waste a lot of horizontal space on left 
nav bar") for third-party packages that use docutils to generate their docs?  
Or, does it only avoid the problem in the official python documentation?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Added file: http://bugs.python.org/file14805/sidebar.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Ezio Melotti  added the comment:

This should be the final version, these are the things I improved:
  * added a per-browser/per-session cookie to save the position of the
sidebar during a single session. When the browser is closed the position
is reset and the cookie deleted;
  * added an effect on hover and a better vertical centering of the '<<'
/ '>>';
  * fixed some bugs.

I also tried to make it faster (with no appreciable results).

I tested it on the aforementioned browsers and it seems to work fine, so
if there are no comments on the code or on the final result, the script
is ready to go in.

--
Added file: http://bugs.python.org/file14804/sidebar.js

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file14799/sidebar.js

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file14793/sidebar-old.js

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file14800/sidebar.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Added file: http://bugs.python.org/file14800/sidebar.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file14794/sidebar.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti

Ezio Melotti  added the comment:

Here's a new version. Now it works with all the major browsers and it's
more usable.

I tested it on the following browsers, and I didn't notice any problem/bug:
Firefox 2.0/3.0/3.5;
Internet Explorer 6/7/8;
Opera 9.64;
Chrome 2.0;
Konqueror 4.2.2;
Seamonkey 1.1;

I also tested it on a Nokia 5800, where the sidebar normally takes more
than half of the screen or about 1/3 if the phone is in landscape mode
(its screen resolution is 640x360, the sidebar is 230px).
With the built-in browser it works fine, but it's quite slow (8-9
seconds to collapse and a few more seconds to expand).
With Opera Mini it has some problem: when the sidebar is collapsed the
page is reloaded and the only way to expand it again is to use the
'back' button.

A few things could be improved:
  * Add some "effects" to the button on hover (to show that it is
clickable) and on click (to show that it was clicked);
  * Remember the position of the sidebar (collapsed/expanded) in all the
pages of the doc (using a cookie?);
  * Make it faster (although I think that most of the time is spent
rendering the page, so there's probably nothing to do).

--
Added file: http://bugs.python.org/file14799/sidebar.js

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3143] Make the left sidebar in the doc collapsible

2009-08-27 Thread Ezio Melotti

Ezio Melotti  added the comment:

Attached a first attempt to make the sidebar collapsible.
The sidebar.js file is the JS script I did, the sidebar.zip file
contains a couple of pages taken from the doc with the sidebar scripts
already included in a 

[issue3143] Make the left sidebar in the doc collapsible

2009-08-27 Thread Ezio Melotti

Changes by Ezio Melotti :


--
title: development docs waste a lot of horizontal space on left nav bar -> Make 
the left sidebar in the doc collapsible
Added file: http://bugs.python.org/file14793/sidebar.js

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com