Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp653556rwr; Thu, 27 Apr 2023 06:34:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58QXOHBguuMzcwHX3+wmBxPSUOFlnzSaEnGWeso08HLqxew05msSQO0xixafXLMsUpV7RG X-Received: by 2002:a17:903:1d0:b0:1a9:98ae:5964 with SMTP id e16-20020a17090301d000b001a998ae5964mr1891799plh.3.1682602476612; Thu, 27 Apr 2023 06:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682602476; cv=none; d=google.com; s=arc-20160816; b=RNuvBQxKMg2uCJ80jxCV7yEZLic1JJJyBFe2hoXlMtHSJeDzAlL9wuTtsf3D9WbWN8 FLgpKNyZyuin3vpK8cAgPfPMcaB6CtvATNiMb77sE9mcF7vvptbPduvScG4ubeuRXD3i vETcZuaFbO/NCrF0JtS2T/+xnbJSk9XAhlF0sTF86vta/DabsQXa4lSxdAwcBbE1E1qy zhIKbjECU3zS5sai0Uz/Z5V1QWXVkQQYwl7xs3C5ngeBwWW3yDHsJ53ZFLPJx9No+E9X oUgFpird6DdT7r2/iJAqE0VqVQB9Fr08H4yU35W7bqPu8EtMxdbegeyPgpwsNa1i8lYW K5FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=SSNo45l7KalwFwPxQWlP3l+W4npj5muDBIelMX7dDRY=; b=j9sxj8EOzYD98zEzD0M1Hms2nKsvaL6tZg/eKr5ckS/EQ3QM0PS1Q+5wNQNp03gHoF cGn3XJr8PEg/kdttkW5/coVDdhx3JzXeZ7eyuL0DM0yDPNP2uGMhd17LdNbu1UaWAlQD mnsQ2ZbPto3DK/+6Dq1K3hysaI0kstZ6hohMzNtMd/TvR+vDWz7Vt1cq3880znGKZ5b2 7blexnv85P1v0nTM9/JwfNOr5OUwNfjI91I1mO9xjQItb1JaZHMZ++SDi6h7a3vVyR8+ TAXmxETlV5gQ1LTLNxD/da4QbMFkR6qDTssAzjhyWkJhe1X6X08S1jNGHCLwh8qRMuVm F3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=nr5eFNBD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170903028600b00194967b7badsi19586044plr.591.2023.04.27.06.34.24; Thu, 27 Apr 2023 06:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=nr5eFNBD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243581AbjD0N1G (ORCPT + 99 others); Thu, 27 Apr 2023 09:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243323AbjD0N1F (ORCPT ); Thu, 27 Apr 2023 09:27:05 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FDED449E; Thu, 27 Apr 2023 06:27:02 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 3A229379; Thu, 27 Apr 2023 13:27:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 3A229379 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1682602022; bh=SSNo45l7KalwFwPxQWlP3l+W4npj5muDBIelMX7dDRY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nr5eFNBD1QQJf3EGN10RdF9SHMVZa7XO/YSTXcMbvmw3ytRg2PzWdh6sxo4xo6EmL zpZhyebv9UnWYv9eAwM15wy/BdRa7QWQjj+aC7EEFTQsyZSb5u/0nJ7J2Iq6VhemHR dO/NpAeY3u6UEIpdnMe5Q5StIiJdVFLXsUvRRxhA1PeH/jhFwoHyLf8HTfhIwpzJ3m Uuvt+HOT93y5yyKyYv3u4DLHvwJwFYkdx0kLdJmxBUHYSJjJ82716PF1p9WXWZTaZT hMeoEw6bz0tLiHeH/QUyyhej8p8a4hBapeoBPwIhXeHSistwNr33RcvpuBe9M2WEsP E0FzEw5fbY2xg== From: Jonathan Corbet To: Costa Shulyupin , linux-doc@vger.kernel.org Cc: Costa Shulyupin , Mauro Carvalho Chehab , open list Subject: Re: [PATCH] docs: redirect from old arch to the new one In-Reply-To: <20230427101241.1273752-1-costa.shul@redhat.com> References: <20230427101241.1273752-1-costa.shul@redhat.com> Date: Thu, 27 Apr 2023 07:27:01 -0600 Message-ID: <87ildhfobe.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Costa Shulyupin writes: > Due to a recent reorganization of 'CPU Architectures', the links to > the documentation from external resources were rendered invalid. > This is a common challenge when attempting to make changes > while maintaining backward compatibility. To address this issue, > a commit has been made which uses sphinx extension to seamlessly > redirect users from the old location of the page to the new one. > > > Signed-off-by: Costa Shulyupin > --- > Documentation/conf.py | 8 +++++++- > Documentation/sphinx/requirements.txt | 1 + > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/Documentation/conf.py b/Documentation/conf.py > index 37314afd1ac8..514bfe6a8166 100644 > --- a/Documentation/conf.py > +++ b/Documentation/conf.py > @@ -55,7 +55,13 @@ needs_sphinx = '1.7' > extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', > 'kfigure', 'sphinx.ext.ifconfig', 'automarkup', > 'maintainers_include', 'sphinx.ext.autosectionlabel', > - 'kernel_abi', 'kernel_feat'] > + 'kernel_abi', 'kernel_feat', > + 'sphinx_reredirects', > +] > + > +redirects = { > + "arch.html": "arch/index.html", > +} I am not generally opposed to doing this, but: - It only solves part of the problem; links directly into (say) the x86 docs will still break. - Is there really a problem? Are there to-be-broken links out there that you can point to? Thanks, jon