From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A15ED678D8 for ; Tue, 10 Nov 2020 11:45:11 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8E2DD1EA2D for ; Tue, 10 Nov 2020 11:44:41 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id AEEE21E9F5 for ; Tue, 10 Nov 2020 11:44:39 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 7673E4606D for ; Tue, 10 Nov 2020 11:44:39 +0100 (CET) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Tue, 10 Nov 2020 11:44:34 +0100 Message-Id: <20201110104438.20839-2-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201110104438.20839-1-a.lauterer@proxmox.com> References: <20201110104438.20839-1-a.lauterer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.009 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox-scanrefs.py] Subject: [pve-devel] [PATCH proxmox-backup 1/5] scanrefs: only scan docs, not JS files X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2020 10:45:11 -0000 This is a temporary hack until we find a sensible way to scan the proxmox-widget-toolkit JS files as well. Signed-off-by: Aaron Lauterer --- docs/_ext/proxmox-scanrefs.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/docs/_ext/proxmox-scanrefs.py b/docs/_ext/proxmox-scanrefs.py index 8de17620..10aaeed4 100644 --- a/docs/_ext/proxmox-scanrefs.py +++ b/docs/_ext/proxmox-scanrefs.py @@ -73,7 +73,9 @@ class ReflabelMapper(Builder): 'link': '/docs/index.html', 'title': 'Proxmox Backup Server Documentation Index', } - self.env.used_anchors = scan_extjs_files() + # Disabled until we find a sensible way to scan proxmox-widget-toolkit + # as well + #self.env.used_anchors = scan_extjs_files() if not os.path.isdir(self.outdir): os.mkdir(self.outdir) @@ -115,15 +117,18 @@ class ReflabelMapper(Builder): def validate_anchors(self): #pprint(self.env.online_help) to_remove = [] - for anchor in self.env.used_anchors: - if anchor not in self.env.online_help: - logger.info("[-] anchor {} is missing from onlinehelp!".format(anchor)) - for anchor in self.env.online_help: - if anchor not in self.env.used_anchors and anchor != 'pbs_documentation_index': - logger.info("[*] anchor {} not used! deleting...".format(anchor)) - to_remove.append(anchor) - for anchor in to_remove: - self.env.online_help.pop(anchor, None) + + # Disabled until we find a sensible way to scan proxmox-widget-toolkit + # as well + #for anchor in self.env.used_anchors: + # if anchor not in self.env.online_help: + # logger.info("[-] anchor {} is missing from onlinehelp!".format(anchor)) + #for anchor in self.env.online_help: + # if anchor not in self.env.used_anchors and anchor != 'pbs_documentation_index': + # logger.info("[*] anchor {} not used! deleting...".format(anchor)) + # to_remove.append(anchor) + #for anchor in to_remove: + # self.env.online_help.pop(anchor, None) return def finish(self): -- 2.20.1