[pypy-svn] r38784 - in pypy/dist/pypy/doc: . weekly
hpk at codespeak.net
hpk at codespeak.net
Wed Feb 14 03:37:56 CET 2007
Author: hpk
Date: Wed Feb 14 03:37:55 2007
New Revision: 38784
Modified:
pypy/dist/pypy/doc/confrest.py
pypy/dist/pypy/doc/weekly/confrest.py
Log:
fixing doc generation target
Modified: pypy/dist/pypy/doc/confrest.py
==============================================================================
--- pypy/dist/pypy/doc/confrest.py (original)
+++ pypy/dist/pypy/doc/confrest.py Wed Feb 14 03:37:55 2007
@@ -1,9 +1,9 @@
+import py
from py.__.doc.confrest import *
class PyPyPage(Page):
- def fill(self):
- super(PyPyPage, self).fill()
- self.menubar[:] = html.div(
+ def fill_menubar(self):
+ self.menubar = html.div(
html.a("news", href="news.html", class_="menu"), " ",
html.a("getting-started",
href="getting-started.html", class_="menu"), " ",
@@ -18,6 +18,8 @@
" ", id="menubar")
class Project(Project):
+ mydir = py.magic.autopath().dirpath()
+
title = "PyPy"
stylesheet = 'style.css'
encoding = 'latin1'
@@ -29,4 +31,5 @@
height=110, width=149)))
Page = PyPyPage
-
+ def get_docpath(self):
+ return self.mydir
Modified: pypy/dist/pypy/doc/weekly/confrest.py
==============================================================================
--- pypy/dist/pypy/doc/weekly/confrest.py (original)
+++ pypy/dist/pypy/doc/weekly/confrest.py Wed Feb 14 03:37:55 2007
@@ -1,9 +1,9 @@
+import py
from py.__.doc.confrest import *
class PyPyPage(Page):
- def fill(self):
- super(PyPyPage, self).fill()
- self.menubar[:] = html.div(
+ def fill_menubar(self):
+ self.menubar = html.div(
html.a("news", href="../news.html", class_="menu"), " ",
html.a("doc", href="../index.html", class_="menu"), " ",
html.a("contact", href="../contact.html", class_="menu"), " ",
@@ -17,6 +17,7 @@
" ", id="menubar")
class Project(Project):
+ mydir = py.magic.autopath().dirpath()
title = "PyPy"
stylesheet = 'style.css'
encoding = 'latin1'
@@ -28,4 +29,7 @@
height=110, width=149)))
Page = PyPyPage
+ def get_docpath(self):
+ return self.mydir
+
More information about the Pypy-commit
mailing list