aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc-src/index.py')
-rw-r--r--doc-src/index.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc-src/index.py b/doc-src/index.py
index b049e3ce..4fefc866 100644
--- a/doc-src/index.py
+++ b/doc-src/index.py
@@ -2,7 +2,7 @@ import os
import sys
import datetime
import countershape
-from countershape import Page, Directory, markup, model
+from countershape import Page, Directory, markup
import countershape.template
MITMPROXY_SRC = os.path.abspath(
@@ -17,7 +17,8 @@ if ns.options.website:
ns.idxpath = "doc/index.html"
else:
ns.idxpath = "index.html"
-this.layout = countershape.Layout("_layout.html")
+
+this.layout = countershape.layout.FileLayout("_layout.html")
ns.title = countershape.template.Template(None, "<h1>@!this.title!@</h1>")
this.titlePrefix = "%s - " % version.NAMEVERSION
@@ -51,7 +52,7 @@ def nav(page, current, state):
else:
pre = "<li>"
p = state.application.getPage(page)
- return pre + '<a href="%s">%s</a></li>'%(model.UrlTo(page), p.title)
+ return pre + '<a href="%s">%s</a></li>'%(countershape.widgets.UrlTo(page), p.title)
ns.nav = nav
ns.navbar = countershape.template.File(None, "_nav.html")