def build_pages(self, base): |
-> for fspath in [base] + list(base.visit()): |
if fspath.ext in ['.pyc', '.pyo']: |
continue |
if self.capture: |
self.capture.err.writeorg('.') |
relfspath = fspath.relto(base) |
if relfspath.find('%s.' % (os.path.sep,)) > -1: |
|
continue |
elif fspath.check(dir=True): |
if relfspath != '': |
relfspath += os.path.sep |
reloutputpath = 'source%s%sindex.html' % (os.path.sep, |
relfspath) |
else: |
reloutputpath = "source%s%s.html" % (os.path.sep, relfspath) |
reloutputpath = reloutputpath.replace(os.path.sep, '/') |
outputpath = self.base.join(reloutputpath) |
self.linker.set_link(str(fspath), reloutputpath) |
self.build_page(fspath, outputpath, base) |