From 8a4040c03660fe47dc92308704791af6d48c6094 Mon Sep 17 00:00:00 2001 From: rebortg Date: Thu, 31 Mar 2022 15:59:58 +0200 Subject: vyos.py: add code to find syntax errors --- docs/_ext/vyos.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/_ext/vyos.py') diff --git a/docs/_ext/vyos.py b/docs/_ext/vyos.py index dec34d34..caa51a90 100644 --- a/docs/_ext/vyos.py +++ b/docs/_ext/vyos.py @@ -597,6 +597,11 @@ def process_coverage(app, fromdocname, doccmd, xmlcmd, cli_type): strip_true_list = list(set(strip_true_list)) + # to find syntax errors in cfg or cmd commands + #for k in coverage_list.keys(): + # if ("[" in k) or ("]" in k) or ("<" in k) or (">" in k) or ("|" in k): + # print(coverage_list[k]) + table = nodes.table() -- cgit v1.2.3