diff options
author | Tom Rondeau | 2011-10-14 13:05:25 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-14 13:05:25 -0400 |
commit | 68ac497f17af5af435b535d0dccbd930be0fc1d3 (patch) | |
tree | 8413c77e8a921acd782708f67ab0d11b068e8560 /grc | |
parent | d6b2864470e44aeac3775909a24b9a734e9a369d (diff) | |
download | gnuradio-68ac497f17af5af435b535d0dccbd930be0fc1d3.tar.gz gnuradio-68ac497f17af5af435b535d0dccbd930be0fc1d3.tar.bz2 gnuradio-68ac497f17af5af435b535d0dccbd930be0fc1d3.zip |
docs: Updated some docs and made it so GRC can pull docs in from other components like vocoder and digital.
Diffstat (limited to 'grc')
-rw-r--r-- | grc/python/extract_docs.py | 5 |
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: |