doc: add a special flag for content to ignore in the rst
authorBoris Feld <boris.feld@octobus.net>
Thu, 21 Sep 2017 10:45:06 +0200
changeset 2958 1cb715257130
parent 2957 586c9ace20b3
child 2959 ef361938dfa1
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.
docs/test2rst.py
--- 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('  ')