Re: [PATCH] docs: redirect from old arch to the new one

From: Mauro Carvalho Chehab
Date: Sun Apr 30 2023 - 19:20:33 EST


Em Fri, 28 Apr 2023 07:22:53 -0600
Jonathan Corbet <corbet@xxxxxxx> escreveu:

> Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> writes:
>
> > Again, as this is something that only applies to websites hosting
> > documentation, IMO the best would be to have a separate file
> > ("conf_redirects.py") included on conf.py, that will be
> > auto-generated by a script that would receive, as input, the
> > initial Kernel version where redirects should be preserved.
>
> ...but again...I think we should observe an actual problem before we
> start adding any of this. Otherwise we'll just end up carrying a bunch
> of cruft indefinitely.

Agreed. Just saying that, if this is a real problem, a custom conf.py
would be the best approach.

Btw, if I'm not mistaken, our building system already allows it via:

make SPHINX_CONF=conf-redirects.py htmldocs

I suspect that it would be possible to add redirects extension and
its parameters on it, if someone ever needs it. No need to carry
such stuff at the Kernel upstream, as this would very likely limited
to some web sites that would be interested on keeping links to
old documentation's location.

Regards,
Mauro