def tags(): "Uses 'etags' to generate a TAG index to aid navigation." conf = get_conf() regexp_fn = os.path.join(os.path.join(conf.paths.projectroot, conf.paths.tools, 'etags.regexp')) if not os.path.exists(regexp_fn): abort('[dev]: cannot regenerate TAGS: no {0} file'.format(regexp_fn)) source = expand_tree(os.path.join(conf.paths.projectroot, conf.paths.source), 'txt') if len(source) == 0: abort('[dev]: no source files in {0}'.format(source)) source = ' '.join(source) local('etags -I --language=none --regex=@{0} {1}'.format(regexp_fn, source)) regexps = [ (re.compile(r'\.\. (.*):: \$*(.*)'), r'\1.\2'), (re.compile(r'\.\. _(.*)'), r'ref.\1') ] munge_page(fn=os.path.join(conf.paths.projectroot, 'TAGS'), regex=regexps, tag='dev')
def tags(): "Uses 'etags' to generate a TAG index to aid navigation." conf = get_conf() regexp_fn = os.path.join( os.path.join(conf.paths.projectroot, conf.paths.tools, 'etags.regexp')) if not os.path.exists(regexp_fn): abort('[dev]: cannot regenerate TAGS: no {0} file'.format(regexp_fn)) source = expand_tree( os.path.join(conf.paths.projectroot, conf.paths.source), 'txt') if len(source) == 0: abort('[dev]: no source files in {0}'.format(source)) source = ' '.join(source) local('etags -I --language=none --regex=@{0} {1}'.format( regexp_fn, source)) regexps = [(re.compile(r'\.\. (.*):: \$*(.*)'), r'\1.\2'), (re.compile(r'\.\. _(.*)'), r'ref.\1')] munge_page(fn=os.path.join(conf.paths.projectroot, 'TAGS'), regex=regexps, tag='dev')
def _clean_sphinx_latex(fn, regexes): munge_page(fn, regexes, tag='pdf')
def _clean_sphinx_latex(fn, regexes): munge_page(fn, regexes, tag='pdf')