summaryrefslogtreecommitdiff
path: root/grc/python/extract_docs.py
diff options
context:
space:
mode:
authorJosh Blum2011-10-17 23:40:51 -0700
committerJosh Blum2011-10-17 23:40:51 -0700
commit161910c66e88c081d267f4b2b699f7431f287279 (patch)
tree86500bb995f5afeece82042eb29eeb3716151d1d /grc/python/extract_docs.py
parent41ce01bd6f602009b83422550b0b91bddd830c84 (diff)
parentf664585ddddeb040d1cd285d0b9dfb41c4979b91 (diff)
downloadgnuradio-161910c66e88c081d267f4b2b699f7431f287279.tar.gz
gnuradio-161910c66e88c081d267f4b2b699f7431f287279.tar.bz2
gnuradio-161910c66e88c081d267f4b2b699f7431f287279.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Conflicts: gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h gnuradio-core/src/lib/general/gr_ofdm_demapper_vcb.h gr-digital/include/digital_ofdm_cyclic_prefixer.h gr-digital/include/digital_ofdm_frame_acquisition.h gr-digital/include/digital_ofdm_frame_sink.h gr-digital/include/digital_ofdm_insert_preamble.h gr-digital/include/digital_ofdm_mapper_bcv.h gr-digital/include/digital_ofdm_sampler.h
Diffstat (limited to 'grc/python/extract_docs.py')
-rw-r--r--grc/python/extract_docs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/python/extract_docs.py b/grc/python/extract_docs.py
index aa85397f9..be55fd239 100644
--- a/grc/python/extract_docs.py
+++ b/grc/python/extract_docs.py
@@ -26,6 +26,8 @@ DOXYGEN_NAME_XPATH = '/doxygen/compounddef/compoundname'
DOXYGEN_BRIEFDESC_GR_XPATH = '/doxygen/compounddef/briefdescription'
DOXYGEN_DETAILDESC_GR_XPATH = '/doxygen/compounddef/detaileddescription'
+GROUP_KEYS = "gr|usrp2|trellis|noaa|vocoder|digital"
+
def extract_txt(xml):
"""
Recursivly pull the text out of an xml tree.
@@ -63,7 +65,8 @@ def _extract(key):
#extract descriptions
comp_name = extract_txt(xml.xpath(DOXYGEN_NAME_XPATH)[0]).strip()
comp_name = ' --- ' + comp_name + ' --- '
- if re.match('(gr|usrp2|trellis|noaa)_.*', key):
+# if re.match('(gr|usrp2|trellis|noaa)_.*', key):
+ if re.match(('(%s)_.*' % GROUP_KEYS), key):
brief_desc = extract_txt(xml.xpath(DOXYGEN_BRIEFDESC_GR_XPATH)[0]).strip()
detailed_desc = extract_txt(xml.xpath(DOXYGEN_DETAILDESC_GR_XPATH)[0]).strip()
else: