[pypy-svn] r64405 - in pypy/trunk/pypy/doc: . jit

arigo at codespeak.net arigo at codespeak.net
Sun Apr 19 19:15:15 CEST 2009


Author: arigo
Date: Sun Apr 19 19:15:15 2009
New Revision: 64405

Modified:
   pypy/trunk/pypy/doc/confrest_oldpy.py
   pypy/trunk/pypy/doc/jit/   (props changed)
Log:
Fix confrest_oldpy for its handling of stylesheets in the jit subdirectory.


Modified: pypy/trunk/pypy/doc/confrest_oldpy.py
==============================================================================
--- pypy/trunk/pypy/doc/confrest_oldpy.py	(original)
+++ pypy/trunk/pypy/doc/confrest_oldpy.py	Sun Apr 19 19:15:15 2009
@@ -108,6 +108,7 @@
     title = "py lib"
     prefix_title = ""  # we have a logo already containing "py lib"
     encoding = 'latin1' 
+    stylesheet = None
     logo = html.div(
         html.a(
             html.img(alt="py lib", id='pyimg', height=114, width=154, 
@@ -130,7 +131,7 @@
             apigenpath = docpath
         self.apigenpath = apigenpath
         if stylesheet is None:
-            p = sourcepath.join("style.css")
+            p = sourcepath.join(self.stylesheet or "style.css")
             if p.check():
                 self.stylesheet = p
             else:
@@ -159,8 +160,8 @@
         stylesheet = self.stylesheet
         if isinstance(stylesheet, py.path.local):
             if not self.docpath.join(stylesheet.basename).check():
-                docpath.ensure(dir=True)
-                stylesheet.copy(docpath)
+                self.docpath.ensure(dir=True)
+                stylesheet.copy(self.docpath)
             stylesheet = relpath(outputpath.strpath,
                                  self.docpath.join(stylesheet.basename).strpath)
 



More information about the Pypy-commit mailing list