GNOME Bugzilla – Bug 86860
docextract.py doesn't parse tmpl/*.sgml
Last modified: 2008-07-16 10:12:29 UTC
docextract.py doesn't get the documentation in GTK+'s tmpl/*.sgml files. See http://lists.gnome.org/archives/language-bindings/2002-March/msg00001.html I'm not a gnome-python user, but we reuse this script for the gtkmm2 documentation.
I added a docextract.parse_tmpl() function which can extract additional documentation from a tmpl file. It just adds to the FunctionDoc objects in the dictionary.
Thankyou. So this patch seems to make sense. +2002-07-08 Murray Cumming <murrayc@usa.net> + + * codegen/docextract.py (extract): Look for .sgml files and parse + them as tmpl/*.sgml files. The user would have specified a + directory for tmpl/*.sgml files as well as directories for *.cc files. +
Created attachment 9717 [details] [review] extract_tmpl.patch
Instead of overloading the extract() function, I added an additional extract_tmpl() function. You pass in a list of tmpl/ directories (this one does not recurse like extract() does). 2002-07-09 James Henstridge <james@daa.com.au> * codegen/docextract.py (extract_tmpl): function to extract docs from gtk-doc 'tmpl' files. Takes a list of tmpl/ directories as an argument. Doesn't recurse. Fixes bug 86860.