# HG changeset patch # User Boris Feld # Date 1505983506 -7200 # Node ID 1cb715257130327f04c60c392d94427fb4c8aef2 # Parent 586c9ace20b3a00163c5ba6630c5562ef9f27d5b 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. diff -r 586c9ace20b3 -r 1cb715257130 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(' ')