From: lottaviano Date: Fri, 26 Jun 2009 10:27:05 +0000 (+0000) Subject: doc: Filter wizard tags from documentation. X-Git-Tag: 2.2.0~252 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f84ce0e39dc9c97e9cc184d3a4161e1fd99e7786;p=bertos.git doc: Filter wizard tags from documentation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2716 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/Doxyfile b/Doxyfile index f081c4da..3e388c43 100644 --- a/Doxyfile +++ b/Doxyfile @@ -426,19 +426,19 @@ SORT_BY_SCOPE_NAME = NO # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. -GENERATE_TODOLIST = YES +GENERATE_TODOLIST = NO # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. -GENERATE_TESTLIST = YES +GENERATE_TESTLIST = NO # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. -GENERATE_BUGLIST = YES +GENERATE_BUGLIST = NO # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting @@ -477,7 +477,7 @@ SHOW_FILES = YES # Namespaces page. This will remove the Namespaces entry from the Quick Index # and from the Folder Tree View (if specified). The default is YES. -SHOW_NAMESPACES = YES +SHOW_NAMESPACES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from @@ -667,7 +667,7 @@ IMAGE_PATH = # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. -INPUT_FILTER = +INPUT_FILTER = "python doc/wizard-tag-filter.py" # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the diff --git a/doc/wizard-tag-filter.py b/doc/wizard-tag-filter.py new file mode 100644 index 00000000..d944c106 --- /dev/null +++ b/doc/wizard-tag-filter.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +from __future__ import with_statement +import re, sys + +if __name__ == "__main__": + expr = re.compile(r"\$WIZ\$.*$") + with file(sys.argv[1]) as f: + for line in f: + if re.search(expr, line) != None: + new_line = re.sub(expr, "", line) + sys.stdout.write(new_line) + else: + sys.stdout.write(line)