From: Joseph Myers <joseph@codesourcery.com>
To: Michael Matz <matz@suse.de>
Cc: "Martin Liška" <mliska@suse.cz>,
gcc-patches@gcc.gnu.org, "Gerald Pfeifer" <gerald@pfeifer.com>
Subject: Re: [RFC] docs: remove documentation for unsupported releases
Date: Wed, 9 Nov 2022 18:57:39 +0000 [thread overview]
Message-ID: <19722790-79e7-d83-f860-76a3d1e26ea@codesourcery.com> (raw)
In-Reply-To: <alpine.LSU.2.20.2211091413410.29399@wotan.suse.de>
On Wed, 9 Nov 2022, Michael Matz via Gcc-patches wrote:
> I think everything that's on the web server (even the 2.95 docu) has to be
> reachable via a (reasonable) set of clicks from the main index.html. It
> doesn't need to be _directly_ from the main index.html, though.
>
> Also, you simply might want to move the "Current Development" section
> to the front if it's currently too cumbersome to reach.
>
> (E.g. one could move the index of the obsolete versions to a different web
> page, make that one un-indexable by google, but leave a trace to that one
> from the main index.html).
Although we could use robots.txt to prevent indexing of the old
documentation, that's not quite right, in that there's no problem with
robots accessing the old documentation for any purpose (indexing,
archiving, downloading a local copy of all the docs for an old version,
etc.), just with showing it in a search engine in preference to a more
recent version. The logically correct way of directing search engines to
the preferred version to index is <link rel="canonical">.
Suppose we could develop some reasonably reliable way of making automated
substitutions in the HTML manuals for old versions. (Make sure the
original versions of the files, generated years ago, are backed up first!
Indeed, when we want to revise such substitutions, we should go back to
the original versions of the files to do so rather than piling one
substitution on top of another - i.e. the original versions should be kept
somewhere readily available for that purpose, just not directly in the web
area.) Then we could substitute such <link rel="canonical"> to point to a
more recent release (that has a matching documentation page). And as I
mentioned at the Cauldron, I think having human-visible notices on the
pages for old versions, linking to the corresponding page for human
readers - like there are in old versions of the Python documentation -
would be a good idea as well.
Maybe it would be hard to find matching pages in an automated way across
the Sphinx transition - so all EOL versions before GCC 12 would end up
pointing to corresponding pages in GCC 12 documentation and a more general
index for later versions, rather than a corresponding page for a later
version - but whatever can be done automatically in terms of
rel="canonical" for search engines and a prominent notice at the top of
each page for human readers still seems like it would be a significant
improvement (and something that could be improved further incrementally).
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2022-11-09 18:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 13:54 Martin Liška
2022-11-09 14:11 ` Jakub Jelinek
2022-11-09 14:17 ` Michael Matz
2022-11-09 18:57 ` Joseph Myers [this message]
2022-11-09 19:32 ` Alexander Monakov
2022-11-09 19:36 ` Martin Liška
2022-11-10 7:29 ` Gerald Pfeifer
2022-11-10 8:48 ` Martin Liška
2022-11-10 12:39 ` Alexander Monakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19722790-79e7-d83-f860-76a3d1e26ea@codesourcery.com \
--to=joseph@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gerald@pfeifer.com \
--cc=matz@suse.de \
--cc=mliska@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).