from amara.xslt import transform
from Cheetah.Template import Template
-dist = "."
+dist = os.path.dirname(os.getcwd())
style = "default"
style_xslt = dist+"/style/"+style+"/docbook.xsl"
style_tmpl = dist+"/style/"+style+"/index.html.tmpl"
if title and menu:
found = 0
- base = os.path.splitext(xfile)[0]
- link = base.translate(None,'.').replace('index','')
+ base = xfile.split('.')[1]
+ link = base.replace('index','')
level = len(filter(None,re.split(r'(/\w*/)',link)))
page = dict(title=unicode(doc.article.info.title),
menu=unicode(doc.article.info.titleabbrev),