call site 1 for path.local.visit
apigen/testing/test_apigen_example.py - line 399
398
399
400
401
402
403
404
405
406
407
408
409
410
   def test_build_pages_nav(self):
->     self.spb.build_pages(self.fs_root)
       self.linker.replace_dirpath(self.base, False)
       funcsource = self.base.join('source/pkg/func.py.html')
       assert funcsource.check(file=True)
       html = funcsource.read()
       print html
       run_string_sequence_test(html, [
           'href="../style.css"',
           '<a href="index.html">pkg</a>',
           '<a href="someclass.py.html">someclass.py</a>',
           '<a href="somesubclass.py.html">somesubclass.py</a>',
       ])
apigen/htmlgen.py - line 284
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
   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:
               # skip hidden dirs and files
               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)