Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 32AC998F705 for ; Tue, 5 Jun 2012 06:00:10 -0300 (ADT) Received: from mail-lb0-f174.google.com ([209.85.217.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbpcW-0006YE-Cu for pgsql-www@postgresql.org; Tue, 05 Jun 2012 09:00:09 +0000 Received: by lbbgm6 with SMTP id gm6so3713189lbb.19 for ; Tue, 05 Jun 2012 01:59:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=eqvRCxSqXUtLKpN3zH1LwTfYfFVmDYdJ1dTDPQ59lM0=; b=Id2qAx9SRyGBGLRunQACIySSv6tNT+YkraHbWb5fuoHCxxRPR2LzgujF2ZMcsz58W2 JJMSdzd0xfj6gqldj3YHfFb6U/xJ2izLNz4j1t/5M/6uZkgSNgxapPA2OvnJq0VWhxof UO29uYKe7Qx+YmhdkdsvCJPXxSs9Q5i/hlF4jo7GpTWnjJ3mAu8bylkrNpZvWO9hHwY1 G2TETxU4wA07XFX5jBt0M2GD40VldxJCYdbwAAkvkakT1TiMUFTdI0XVdeacyQ/YF4m7 PWRFVR9Q0/+NVGh5qq+M57MiG3XFM+dEvd7GrVa+KWpZApLoQNszH7RxtycC+z/wZKft Vg1w== MIME-Version: 1.0 Received: by 10.112.36.132 with SMTP id q4mr7593648lbj.63.1338886794752; Tue, 05 Jun 2012 01:59:54 -0700 (PDT) Received: by 10.152.21.234 with HTTP; Tue, 5 Jun 2012 01:59:54 -0700 (PDT) In-Reply-To: References: <201205281344.51634.andres@2ndquadrant.com> Date: Tue, 5 Jun 2012 10:59:54 +0200 Message-ID: Subject: Re: [PATCH] Cross-version navigation in documentation From: Magnus Hagander To: Marti Raudsepp Cc: Andres Freund , pgsql-www , Stefan Kaltenbrunner Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmKFNKeRlVKnmcVhMdMKrYugDp/Yo72SJKLpfgui3m4o+TLhcfGvUuBSKQ4YaCyOHzbeHeX X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/5 X-Sequence-Number: 20699 On Wed, May 30, 2012 at 11:58 AM, Marti Raudsepp wrote: > On Mon, May 28, 2012 at 2:44 PM, Andres Freund w= rote: >> The amount of pages actually having been renamed isn't that big. Marti o= pened >> up his version of the docs to me and I browsed along and even between 7.= 4 and >> 9.1 I had a hard time finding pages where you would expect a link from 7= .4 >> forwards. > > Exactly. And people rely on page names right now anyway -- they find > the page on Google and then just change the version number in the URL > and see if it works. Either that, or they will read the wrong version. > What I'm proposing solves >95% of the cases and I think that is good > enough. Given that nobody has objecte,d I'm going to go ahead and do this. However - should we perhaps just list supported versions? Turns the query i= nto: versions =3D DocPage.objects.filter(file=3Dfullname).extra(where=3D['versi= on IN (SELECT tree FROM core_version WHERE supported)']).order_by('-version').only('version', 'file') or if we do want to list all versions, we should somehow indicate which versions are supported and not on this list as well, I think. But I'm happy to just listed supported versions for now. Thoughts? > On Sun, May 27, 2012 at 9:40 PM, Magnus Hagander wr= ote: >> On Sunday, May 27, 2012, Marti Raudsepp wrote: >>> PS: Python projects have a nearly universal style of using 4-space >>> indents (PEP-0008). > >> I don't really see the point. If your editor can't be consistent about >> tabs/spaces, you probably have a bigger problem > > Well I need to reconfigure my editor to edit these files. I'm sure you can instruct it to reconfigure itself once you know it though ;) (based on pathname or such) --=20 =A0Magnus Hagander =A0Me: http://www.hagander.net/ =A0Work: http://www.redpill-linpro.com/