eric6/DocumentationTools/QtHelpGenerator.py

changeset 8220
006ee31b4835
parent 8207
d359172d11be
child 8273
698ae46f40a4
equal deleted inserted replaced
8219:013aee248a62 8220:006ee31b4835
173 package == "00index" and self.title or package, 173 package == "00index" and self.title or package,
174 package == "00index" and 174 package == "00index" and
175 joinext("index", ".html") or 175 joinext("index", ".html") or
176 joinext("index-{0}".format(package), ".html")) 176 joinext("index-{0}".format(package), ".html"))
177 for subpack in sorted(self.packages[package]["subpackages"]): 177 for subpack in sorted(self.packages[package]["subpackages"]):
178 s += self.__generateSections(subpack, level + 1) 178 s += self.__generateSections(subpack, level + 1) + '\n'
179 s += '\n'
180 for mod in sorted(self.packages[package]["modules"]): 179 for mod in sorted(self.packages[package]["modules"]):
181 s += indent1 + '<section title="{0}" ref="{1}" />\n'.format( 180 s += indent1 + '<section title="{0}" ref="{1}" />\n'.format(
182 mod, joinext(mod, ".html")) 181 mod, joinext(mod, ".html"))
183 s += indent + '</section>' 182 s += indent + '</section>'
184 return s 183 return s
218 if basename: 217 if basename:
219 basename = basename.replace(os.sep, ".") 218 basename = basename.replace(os.sep, ".")
220 if not basename.endswith("."): 219 if not basename.endswith("."):
221 basename = "{0}.".format(basename) 220 basename = "{0}.".format(basename)
222 221
223 sections = self.__generateSections("00index", 3) 222 sections = self.__generateSections("00index", level=3)
224 filesList = sorted(e for e in os.listdir(self.htmlDir) 223 filesList = sorted(e for e in os.listdir(self.htmlDir)
225 if e.endswith('.html')) 224 if e.endswith('.html'))
226 files = "\n".join( 225 files = "\n".join(
227 [" <file>{0}</file>".format(f) for f in filesList]) 226 [" <file>{0}</file>".format(f) for f in filesList])
228 filterAttribs = "\n".join( 227 filterAttribs = "\n".join(

eric ide

mercurial