diff docs/test2rst.py @ 2958:1cb715257130

doc: add a special flag for content to ignore in the rst The testfile to rest document convertion has a new way to ignore some commands.
author Boris Feld <boris.feld@octobus.net>
date Thu, 21 Sep 2017 10:45:06 +0200
parents 2ddc63d13af8
children ef361938dfa1
line wrap: on
line diff
--- a/docs/test2rst.py	Fri Sep 08 12:10:21 2017 +0200
+++ b/docs/test2rst.py	Thu Sep 21 10:45:06 2017 +0200
@@ -23,6 +23,9 @@
         # Emtpy lines doesn't change output
         if not line:
             newlines.append(line)
+
+        # Ignore line
+        if line.endswith('#rest-ignore'):
             continue
 
         codeline = line.startswith('  ')