summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2022-03-31 15:59:58 +0200
committerrebortg <github@ghlr.de>2022-03-31 15:59:58 +0200
commit8a4040c03660fe47dc92308704791af6d48c6094 (patch)
treea273e5a13ac5343544b61c5eee3e4a1805d23b36 /docs
parente23407b008ba871a916ec566499669ee650fd504 (diff)
downloadvyos-documentation-8a4040c03660fe47dc92308704791af6d48c6094.tar.gz
vyos-documentation-8a4040c03660fe47dc92308704791af6d48c6094.zip
vyos.py: add code to find syntax errors
Diffstat (limited to 'docs')
-rw-r--r--docs/_ext/vyos.py5
1 files changed, 5 insertions, 0 deletions
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()