From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.21 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796225321; b=VThYSGuTy/2Q4LNFq03GhEixMR8HPD0bELgVilV9wX9ug6EDHbepEWoAzSu1beaMImH5 O3zw7xM0a8rbz3SvGrN6l0Msd8U0d6t33bPng73Jhc3K0m6ioHzJat4ScrN8c9geNZpfY 6A0ScX5JdZ8AUxsWq+wGdPW1Ft1wphW9bsp2IbLq/fAX9UO2DsMba2Ec2syWKgw51xxAk JFNw7wzZQZ+/Yp0zPZpjKUAJuBenywGIeMRNcrNnnmrAKjDf6kaZmJDlrBuxbRG3maMRh PPhPP0je0HLef0lQEtk5LXc2tbUP0/79Fe8ywhMqcmxSWPVwNDS1lh4tMcbI2jAZKgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796225321; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Subject: In-Reply-To:Organization:References:Date:Message-ID:MIME-Version: Content-Type; bh=DfqweXezKPc0a2v/0x4ezmjH0sYUqN+lztxY2y7nakk=; b=ldXGNPu+UxoK6mzY5JIEEvxHARldL7WJs3S5rWwCxcAmjz8uz/z/sluMGsc3Xy61giiD h+2JTJdFCKE4Dy938K5W6J3OdbJDOmY0TAcyOchWzgXzj5Nzm5ilhBsYO4J3gblK36uSM R0b3if0aNHgXI8RPihTQnvhAunUPGUbn469Ogx+F56acrrLA4k6nTlJ0QTGIRzCnRyIae BsM0GEezAgPAWWWOAPrj5X3/ywctW3MICUg0RHVY+pSxWRaCJfFEisz/Qazf2qDsuCRXS 2fbYpaKwH4JRRe8dBSCSWAEFlgvN1chgplXjWQdbdJsBt4oZnKjTZC8lpT3NHj4eg5w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=SiMEajPb; arc=none smtp.remote-ip=198.175.65.21 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB6D4606A322 for ; Wed, 2 Dec 2026 15:28:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CB6D4606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=SiMEajPb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796225321; x=1827761321; h=from:to:subject:in-reply-to:references:date:message-id: mime-version; bh=DfqweXezKPc0a2v/0x4ezmjH0sYUqN+lztxY2y7nakk=; b=SiMEajPbr6G5Yy8RgUWBIX7L9Zkr1iq2m2OCIqvfZq/gQqDRbuuq2yQW 8DaxYLOyaBYRAiGM9XptjhXp2J/U1afhd0qRWhJnHx11N5oWflu03XQt7 EDnLbfpv3d+YS3Vj+3EJk6MszapFsah3ic60MEypy90uuBysJjlA887Jc CBmcpPU66YHwU92LmdI3nC37Ii6DmIcgmqqvEex2ajDpYaJeUKkSqoXnn a4IROTs99/5KwLd4m6vcoulcObRn1+uAuOvpJ5xPYEmY3ZdNig5nuHiqk WCoIX/2/W4e9//eTVmP43OlJKRsSrLjtG9L6YcrefQz8viU6g+AXdVKQb g==; X-CSE-ConnectionGUID: 39FEOOQXSi6sP8l13oO0Mg== X-CSE-MsgGUID: yV+tFGAYQr2LmeHgQzQAgw== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5259898" X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="5259898" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 07:28:41 -0800 X-CSE-ConnectionGUID: iXpeSA2eRIWZDLQ4AAkPJw== X-CSE-MsgGUID: YDO7537ZRRmRW/TkZzi7Lg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="15305913" Received: from abityuts-desk1.ger.corp.intel.com (HELO localhost) ([10.245.245.105]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 07:28:39 -0800 From: Jani Nikula To: linux-doc@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH] docs: conf.py: use master_doc instead of hardcoding index In-Reply-To: <20261124163820.1587424-1-jani.nikula@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland References: <20261124163820.1587424-1-jani.nikula@intel.com> Date: Wed, 02 Dec 2026 17:28:36 +0200 Message-ID: <7bb61e5c719b74fa208e322694dd9336e938c473@intel.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain On Tue, 24 Nov 2026, Jani Nikula wrote: > The name of the root document is specified by the master_doc > configuration option. Use that instead of hardcoding "index" in conf.py. > > It would be preferrable to use root_doc, but that was only introduced in > Sphinx 4.0. While at it, add a FIXME comment next to master_doc about > it. > > Signed-off-by: Jani Nikula Forgot to add Jon in recipients originally. Ping. :) > --- > Documentation/conf.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/conf.py b/Documentation/conf.py > index 5ab26ce89daf..6c986f64f764 100644 > --- a/Documentation/conf.py > +++ b/Documentation/conf.py > @@ -103,9 +103,8 @@ def config_init(app, config): > > # get index.rst, if it exists > doc = os.path.basename(app.srcdir) > - fname = "index" > - if os.path.exists(os.path.join(app.srcdir, fname + ".rst")): > - latex_documents.append((fname, doc + ".tex", > + if os.path.exists(os.path.join(app.srcdir, master_doc + ".rst")): > + latex_documents.append((master_doc, doc + ".tex", > "Linux %s Documentation" % doc.capitalize(), > "The kernel development community", > "manual")) > @@ -114,7 +113,7 @@ def config_init(app, config): > # When building all docs, or when a main index.rst doesn't exist, seek > # for it on subdirectories > for doc in os.listdir(app.srcdir): > - fname = os.path.join(doc, "index") > + fname = os.path.join(doc, master_doc) > if not os.path.exists(os.path.join(app.srcdir, fname + ".rst")): > continue > > @@ -267,6 +266,7 @@ source_suffix = { > # source_encoding = 'utf-8-sig' > > # The master toctree document. > +# FIXME: switch to root_doc when needs_sphinx gets bumped to >= 4.0. > master_doc = "index" > > # General information about the project. -- Jani Nikula, Intel