Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CBF47633932 for ; Fri, 19 Feb 2010 10:37:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31988-01 for ; Fri, 19 Feb 2010 14:37:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.pcl-ipout02.plus.net (relay.pcl-ipout02.plus.net [212.159.7.100]) by mail.postgresql.org (Postfix) with ESMTP id 3544D633226 for ; Fri, 19 Feb 2010 10:37:49 -0400 (AST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFMxfktUXeby/2dsb2JhbACbB3S9K4RnBA Received: from relay01.plus.net ([84.93.230.242]) by relay.pcl-ipout02.plus.net with ESMTP; 19 Feb 2010 14:37:47 +0000 Received: from [84.51.143.99] (helo=server3.office.archonet.com) by relay01.plus.net with esmtp (Exim) id 1NiTzG-0004YZ-RS; Fri, 19 Feb 2010 14:37:47 +0000 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTPA id 59A74274032; Fri, 19 Feb 2010 14:37:46 +0000 (GMT) Message-ID: <4B7EA23A.1000705@archonet.com> Date: Fri, 19 Feb 2010 14:37:46 +0000 From: Richard Huxton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100213 Lightning/1.0b1 Shredder/3.0.2pre MIME-Version: 1.0 To: pgsql-docs@postgresql.org CC: Andrew Dunstan Subject: RFC - Navigation menu for documents (2nd attempt) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: 39716af44a8d34fe5924a097c72fe87d X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/15 X-Sequence-Number: 5331 Previous copy of this hasn't appeared, presumably because of the attachment (under 8KB but tar.gz). Link to attachment below: http://www.archonet.com/pg_js_manual.tgz Andrew Dunstan mentioned a folding table-of-contents facility for the manuals some time ago. I've had a few minutes to tweak my last attempt and I think it's time to decide what to do with it. Objectives: - Make it easier to navigate our (now very long) manual - Make it easier to provide links on the mailing-lists (my bugbear) - Not get in the way if not wanted Features: - Contents panel on LHS, can slide off screen if wanted - Automatically slid off screen on narrow displays - Nested tree controls - Automatically opens tree to currently displayed page - Search-box displayed on A-Z index page (below contents box) I'm surprised at how much better this is than Ctrl+F - Mailing-list links next to each heading So you can right-click+copy the url to the "master" copy of the docs Dependencies: - local (writable) copy of the html docs - Perl for installation - wget for installation - jquery (fetched using wget, MIT licence) - Assumes developer (cvs) version of docs See lines 115/6 of html/contents.js if you want to reference the 8.4 docs Installation: cd /dir/above/html/docs tar -xzf pg_js_manual.tgz ./bin/INSTALL Testing: - Firefox 3.6 - Internet Explorer 7 - Safari (4?) - Opera 9 - Sluggish on a phone, but fine on a 5-year old laptop - Obvious optimisations done - not sure there's much more to be gained Where do we go from here? 1. We can make use of some/all of this on the main site. 2. Add it as a contrib/ project 3. Put it on pgfoundry I'll probably do #3 anyway in case someone else is interested in working on it. -- Richard Huxton Archonet Ltd