Commits

holger krekel committed 742572e

add mydir logic to correctly generate extradoc pages

  • Participants
  • Parent commits fdbb326

Comments (0)

Files changed (1)

 from py.__.doc.confrest import *
+import py
 
 class PyPyPage(Page): 
     def fill(self):
                    class_="menu"), 
             " ", id="menubar")
 
+    def get_doclink(self, target):
+        return relpath(self.targetpath.strpath,
+                       self.project.get_docpath().join(target).strpath)
+
 class Project(Project): 
     title = "PyPy" 
     stylesheet = 'http://codespeak.net/pypy/dist/pypy/doc/style.css'
                      src="http://codespeak.net/pypy/img/py-web1.png", 
                      height=110, width=149)))
     Page = PyPyPage 
+    mydir = py.magic.autopath().dirpath()
+    def get_docpath(self):
+        return self.mydir