diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-01-20 15:07:20 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-01-20 15:07:20 +0000 |
commit | b7c15e93baba2879cdb79156e60858f305ba1229 (patch) | |
tree | c016d5c4e217057878e1e884adf78e5d4984818a /doc/templates | |
parent | ac470e5fdb561c33b11b15a2e8994f525390a84c (diff) |
Add anchors to index chapters
Diffstat (limited to 'doc/templates')
-rw-r--r-- | doc/templates/index.html | 7 | ||||
-rw-r--r-- | doc/templates/style.css | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/doc/templates/index.html b/doc/templates/index.html index efc38d4e..ab8a9901 100644 --- a/doc/templates/index.html +++ b/doc/templates/index.html @@ -28,7 +28,12 @@ #def output($items) #for $item in $items #if $item.__class__.__name__ == 'Section' - <li class="chapter">$item.short_name</li> + #set $anchor = $item.short_name.replace(' ', '-') + <li class="chapter"> + <a name="$anchor"></a> + $item.short_name + <span class="permalink">(<a href="#$anchor">Permalink</a>)</span> + </li> $item.get_docstring() <ul> $output($item.items) diff --git a/doc/templates/style.css b/doc/templates/style.css index 964d88bd..043f4d1d 100644 --- a/doc/templates/style.css +++ b/doc/templates/style.css @@ -219,6 +219,13 @@ div.rationale { } span.permalink { - float: right; font-size: x-small; } + +div.inset span.permalink { + float: right; +} + +li.chapter span.permalink { + font-weight: normal; +} |