From d5f77554678b9810606db293241dfcc1fc793415 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Nov 2020 10:15:08 +0100 Subject: [PATCH] docs: online help scanner: also include help tool links Signed-off-by: Thomas Lamprecht --- docs/_ext/proxmox-scanrefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_ext/proxmox-scanrefs.py b/docs/_ext/proxmox-scanrefs.py index 8de17620..4940dbb5 100644 --- a/docs/_ext/proxmox-scanrefs.py +++ b/docs/_ext/proxmox-scanrefs.py @@ -44,7 +44,7 @@ def scan_extjs_files(wwwdir="../www"): # a bit rough i know, but we can optimize js_files.append(os.path.join(root, filename)) for js_file in js_files: fd = open(js_file).read() - allmatch = re.findall("onlineHelp:\s*[\'\"](.*?)[\'\"]", fd, re.M) + allmatch = re.findall("(?:onlineHelp:|get_help_tool\s*\()\s*[\'\"](.*?)[\'\"]", fd, re.M) for match in allmatch: anchor = match anchor = re.sub('_', '-', anchor) # normalize labels