From patchwork Sun Nov 13 15:41:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 19370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1728815wru; Sun, 13 Nov 2022 07:42:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R1rp9heFcV26oprZ1ayAdbFjOrJkAd2pFnS+M7VefzgUCYbmQcy2FylSDzIbyY+OTVkp4 X-Received: by 2002:a17:906:e24d:b0:7ad:934f:abc2 with SMTP id gq13-20020a170906e24d00b007ad934fabc2mr7213600ejb.690.1668354123198; Sun, 13 Nov 2022 07:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668354123; cv=none; d=google.com; s=arc-20160816; b=kI0AVLWdOzHBsxJ4LOsOipYdwPIZEfJlLhwufFLPRxHmeo5iHwezm+9K+4ALyJyFCI J4B0f1rRyBa0PtIGAAsA6Fub8D8zH4mU4hd8HnFpQpHLDH9UGHKnsmaplQYyDZXwJSdt 70mMr2vxlQSwLlhnAG5g58h7eN+lxDISLUwDgpYH9HDYX7fyQSwB7s3zVaHwLAjVYShP /D8+4B+cKfaCIUcsLsKuhlGNvpHpyMoENxJGmo+n8v3ad/vMEHfo4U9lpnZ4+0Hmu6Gh ElgpNmXf51RggfE6KZNyADswT+khK+QW6bP3DDicbAd/PflEDIFvLZWqiZ/oG6HoahRq 3Lvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=G5IilqDbT+2wqnuWaOZCwowto9HAPTO/SHmBh77YoZI=; b=fr6E1JlWYXDGniWWQ1XtIMYEko681JCO+1S3Wkn4gGVdILXr/MgA6GYw7q8JEXdKcK V1RDDIx/8It/HHfn4nwY3dCc8mgE5W2EbKwPl1rvkrDEMpS01o/7CxZCFbuL8oETkEet kiAyzZLSmjKFrLTD3FJG/3Bm1mH2KKKW+MGaWlf1yRJ1vlv7/ZIfYjCghu86KEMAP+jm uaKcghD86U/c5EZ+J1UbEqQdGeln5DhOFEYfVUfs911UGMrHoq99j6I2o39/IKaq8xWl ITj7fO19EKoZuYlq6UC91wTitc4oJ8vn7ZZWt5TZkAt2L7hGBW3n7ahiS2L4OV2xitg/ h4tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YUE8aI5c; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id kf21-20020a17090776d500b0078e27f2ef52si5070867ejc.603.2022.11.13.07.42.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 07:42:03 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YUE8aI5c; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 817B13885C24 for ; Sun, 13 Nov 2022 15:41:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 8EA5138708F5 for ; Sun, 13 Nov 2022 15:41:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8EA5138708F5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 93C79223D1 for ; Sun, 13 Nov 2022 15:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1668354064; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5IilqDbT+2wqnuWaOZCwowto9HAPTO/SHmBh77YoZI=; b=YUE8aI5ccYBSf4vkrwP2xqcx19xGyqdjq1kT8nmpqi0ZowcrLJMCajfnVOnJ06hnypjiob YRpGcLM5s1dSV9LKv3OwyDYgFoK2YM2vf4BnSy7m5EUpcXkPhJmVc04zx4OOdfazmfMs8R Zd6QMPNGTzEfQRvxTKaZH0B8B3mDPUI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1668354064; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5IilqDbT+2wqnuWaOZCwowto9HAPTO/SHmBh77YoZI=; b=NDhXXbNyoIz2S+B3FcZogvq4gRvbYzbkJmjf5d9Sxfk/H1UgqoqijxMoSubD/mVNdSpEUL WNxJMrli1E0sGUDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 816BC133A4 for ; Sun, 13 Nov 2022 15:41:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bTh+HRAQcWO+PwAAMHmgww (envelope-from ) for ; Sun, 13 Nov 2022 15:41:04 +0000 Message-ID: <811ea56c-0869-e591-d9b0-2bf25ca23606@suse.cz> Date: Sun, 13 Nov 2022 16:41:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] sphinx: include todolist only if INCLUDE_TODO env. set To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749396092697983282?= X-GMAIL-MSGID: =?utf-8?q?1749396092697983282?= It is confusing that 'Indexes and tables' contains TODO. One gets Index by clicking to the Index link. PR web/107643 ChangeLog: * doc/baseconf.py: Set include_todo tag if INCLUDE_TODO env is set. * doc/indices-and-tables.rst: Use include_todo tag. --- doc/baseconf.py | 3 +++ doc/indices-and-tables.rst | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/baseconf.py b/doc/baseconf.py index 8021a101e77..c91675d3d04 100644 --- a/doc/baseconf.py +++ b/doc/baseconf.py @@ -51,6 +51,7 @@ gcc_REVISION = read_file('REVISION') VERSION_PACKAGE = os.getenv('VERSION_PACKAGE') BUGURL = os.getenv('BUGURL') MONOCHROMATIC = os.getenv('MONOCHROMATIC') +INCLUDE_TODO = os.getenv('INCLUDE_TODO') YEAR = time.strftime('%Y') @@ -215,6 +216,8 @@ def set_common(name, module): if gcc_DEVPHASE == 'experimental': module['todo_include_todos'] = True module['tags'].add('development') + if INCLUDE_TODO: + module['tags'].add('include_todo') html_theme_options['source_edit_link'] = f'https://gcc.gnu.org/onlinedocs/{name}' \ '/_sources/{filename}.txt' diff --git a/doc/indices-and-tables.rst b/doc/indices-and-tables.rst index 56b33139280..0f4cd2fdc28 100644 --- a/doc/indices-and-tables.rst +++ b/doc/indices-and-tables.rst @@ -5,7 +5,7 @@ :ref:`genindex` - .. only:: development + .. only:: include_todo TODO ----