X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tools%2Fcheck.py;h=70bd8d5d731266da430f749016df6c310a163d34;hb=8d1405685572cb63212adce7bd78dc6f6428ba42;hp=187cd1c3c95abdf4f13110c450d577e532354c98;hpb=51849c8bb83e69cd5d9552ac39e570a55620a293;p=lttng-docs.git diff --git a/tools/check.py b/tools/check.py index 187cd1c..70bd8d5 100644 --- a/tools/check.py +++ b/tools/check.py @@ -107,13 +107,18 @@ class _Checker: sections_anchors = self._root.findall('.//section') sections_anchors += self._root.findall('.//anchor') sections_anchors += self._root.findall('.//glossary') + sections_anchors += self._root.findall('.//important') + sections_anchors += self._root.findall('.//tip') + sections_anchors += self._root.findall('.//caution') + sections_anchors += self._root.findall('.//warning') + sections_anchors += self._root.findall('.//note') links = self._root.findall('.//link') end_ids = set() for sa in sections_anchors: end_id = sa.get('id') - if end_id is None: + if sa.tag in ('section', 'anchor') and end_id is None: self._perror('Found a section/anchor with no ID', True) end_ids.add(end_id)