From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/5] scanrefs: only scan docs, not JS files
Date: Tue, 10 Nov 2020 11:45:39 +0100 [thread overview]
Message-ID: <20201110104543.24040-2-a.lauterer@proxmox.com> (raw)
In-Reply-To: <20201110104543.24040-1-a.lauterer@proxmox.com>
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 <a.lauterer@proxmox.com>
---
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
next prev parent reply other threads:[~2020-11-10 10:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 10:45 [pbs-devel] [PATCH proxmox-backup 0/5] add/fix help buttons Aaron Lauterer
2020-11-10 10:45 ` Aaron Lauterer [this message]
2020-11-10 10:45 ` [pbs-devel] [PATCH proxmox-backup 2/5] docs: add maintenance chapter prefix to verification ref Aaron Lauterer
2020-11-10 10:45 ` [pbs-devel] [PATCH proxmox-backup 3/5] docs: add network management reference Aaron Lauterer
2020-11-10 10:45 ` [pbs-devel] [PATCH proxmox-backup 4/5] ui: add all online help refs found in docs Aaron Lauterer
2020-11-10 10:45 ` [pbs-devel] [PATCH proxmox-backup 5/5] ui: add/fix help buttons Aaron Lauterer
2020-11-10 10:52 ` [pbs-devel] applied-series: [PATCH proxmox-backup 0/5] " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201110104543.24040-2-a.lauterer@proxmox.com \
--to=a.lauterer@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal