From: Jonathan S. Katz <jkatz@postgresql.org>
To: Michael Christofides <michristofides@gmail.com>
To: pgsql-docs@lists.postgresql.org
Subject: Re: List of pages from versions 9, 10, and 11 that don't exist in "current"
Date: Sat, 25 Apr 2020 13:26:47 -0400
Message-ID: <02b85282-f9e5-a428-8c4f-5a01729153e3@postgresql.org> (raw)
In-Reply-To: <CAG8-c61SjKDSZ6+EcFw3dpU519RjQOMhuBLQ3xJjWwrgmrHZJg@mail.gmail.com>
References: <CAG8-c61SjKDSZ6+EcFw3dpU519RjQOMhuBLQ3xJjWwrgmrHZJg@mail.gmail.com>
On 4/25/20 1:12 PM, Michael Christofides wrote:
> Hi there,
>
> Does anyone have an easy way of seeing which pages from the 9.x, 10,
> or 11 docs don't have a "current" version?
I don't have an easy way, but I have a pedantic way:
1. Set up the pgweb app[1]
2. Set up the requirements for the docload.py utility
(tools/docs/docload.py)
3. Download the release source PG12 all the way down. You would really
only need one, likely the latest (e.g. at the time of this writing 12.2,
11.7, ...)
4. Load each one into the database. You may need to explicitly create
the "Version" objects in the admin for pgweb
5. Write SQL to see which filenames are present in an earlier version
but not a later one.
> For context, I've built a Firefox extension that redirects old
> versions of the docs to their "current" version, except when either:
> * you're already on the docs, or
> * when a "current" version of the page doesn't exist.
Sounds interesting. There is presently a patch[3] that could/should help
to address this case. The challenge, outside of the file that was the
impetus for the patch, would be finding the forwarding addresses for the
new pages. I believe Step 5 in the above would help with that.
Thanks!
Jonathan
[1] https://www.postgresql.org/developer/related-projects/
[2] https://www.postgresql.org/ftp/source/
[3]
https://www.postgresql.org/message-id/4490e710-85f7-87a9-74dd-793d27440bed%40postgresql.orgAttachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: jkatz@postgresql.org, michristofides@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: List of pages from versions 9, 10, and 11 that don't exist in "current"
In-Reply-To: <02b85282-f9e5-a428-8c4f-5a01729153e3@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox