Permalink
Browse files

Add links on section numbers

  • Loading branch information...
cbonte committed Feb 10, 2013
1 parent 40e6ffe commit 915665c99b044986c2e4071c8807be65d15be741
Showing with 2 additions and 2 deletions.
  1. +1 −1 css/page.css
  2. +1 −1 haproxy-dconv.py
View
@@ -122,7 +122,7 @@ pre.arguments {
.sidebar-nav b {
font-size: 13px;
}
-small {
+small, .small {
color: #888;
}
.level1 {
View
@@ -299,7 +299,7 @@ def convert(infile, outfile):
chapterIndexes = sorted(chapters.keys())
if level == 1:
documentAppend("<div class=\"page-header\">", False)
- documentAppend("<h%d id=\"%s\"><small>%s.</small> %s</h%d>" % (level, details["chapter"], details["chapter"], cgi.escape(title, True), level))
+ documentAppend('<h%d id="%s"><small><a class="small" href="#%s">%s.</a></small> %s</h%d>' % (level, details["chapter"], details["chapter"], details["chapter"], cgi.escape(title, True), level))
if level == 1:
documentAppend("</div>", False)

0 comments on commit 915665c

Please sign in to comment.