def add_tmpldirs(self, tmpl_dirs): self.docs = docextract.extract_tmpl(tmpl_dirs, self.docs)
source_dirs.append(arg) if opt in ('-a', '--with-annotations'): with_annotations = True if opt in ('-p', '--with-properties'): with_properties = True if opt in ('-n', '--no-since'): docextract.no_since = True if opt in ('-i', '--no-signals'): with_signals = False if opt in ('-e', '--no-enums'): with_enums = False if len(args) != 0: usage() docs = docextract.extract(source_dirs); docextract.extract_tmpl(source_dirs, docs); #Try the tmpl sgml files too. # print d.docs if docs: print("<root>") for name, value in sorted(docs.items()): # Get the type of comment block ('function', 'signal' or # 'property') (the value is a GtkDoc). block_type = value.get_type() # Skip signals if the option was not specified. if block_type == 'signal' and not with_signals: continue
with_signals = False with_properties = False for opt, arg in opts: if opt in ('-s', '--source-dir'): source_dirs.append(arg) if opt in ('-a', '--with-annotations'): with_annotations = True if opt in ('-p', '--with-properties'): with_properties = True if opt in ('-i', '--with-signals'): with_signals = True if len(args) != 0: usage() docs = docextract.extract(source_dirs) docextract.extract_tmpl(source_dirs, docs) #Try the tmpl sgml files too. # print d.docs if docs: print "<root>" for name, value in sorted(docs.items()): # Get the type of comment block ('function', 'signal' or # 'property') (the value is a GtkDoc). block_type = value.get_type() # Skip signals if the option was not specified. if block_type == 'signal' and not with_signals:
with_properties = True elif opt in ('-c', '--with-sections'): with_sections = True elif opt in ('-r', '--no-recursion'): docextract.no_recursion = True elif opt in ('-n', '--no-since'): docextract.no_since = True elif opt in ('-i', '--no-signals'): with_signals = False elif opt in ('-e', '--no-enums'): with_enums = False if len(args) != 0: usage() docs = docextract.extract(source_dirs, exclude_files) docextract.extract_tmpl(source_dirs, exclude_files, docs) #Try the tmpl sgml files too. # print d.docs if docs: print("<root>") for name, value in sorted(docs.items()): # Get the type of comment block ('function', 'signal', # 'property', 'section' or 'enum') (the value is a GtkDoc). block_type = value.get_type() # Skip signals if the option was not specified. if block_type == 'signal' and not with_signals:
with_properties = True if opt in ('-c', '--with-sections'): with_sections = True if opt in ('-r', '--no-recursion'): docextract.no_recursion = True if opt in ('-n', '--no-since'): docextract.no_since = True if opt in ('-i', '--no-signals'): with_signals = False if opt in ('-e', '--no-enums'): with_enums = False if len(args) != 0: usage() docs = docextract.extract(source_dirs); docextract.extract_tmpl(source_dirs, docs); #Try the tmpl sgml files too. # print d.docs if docs: print("<root>") for name, value in sorted(docs.items()): # Get the type of comment block ('function', 'signal', # 'property', 'section' or 'enum') (the value is a GtkDoc). block_type = value.get_type() # Skip signals if the option was not specified. if block_type == 'signal' and not with_signals: continue