Changesets can be listed by changeset number.
The Git repository is here.
Changeset 227
Added a truly automatic section numbering script derived
from Rhino (see script comments) which can be included in
Wiki pages if required. Wiki help updated to describe the
process for enabling the contents section - for the record
here, adding a DIV with ID toc_heading and closing the
tag, then another DIV with ID toc and closing the tag,
will add a "Contents" heading at level 2, then the TOC. It
is recommended that pages then use a level 2 heading after
the TOC and do not skip header levels (e.g. don't jump
from 2 to 4 without level 3 in between).
Might be nice to get this server side some time, but this
works resonably in Firefox 2, Opera 9 and IE 7, degrades
gracefully in older browsers, and is better than nothing!
- Comitted by: rool
- Date: Thursday June 14 11:20:41 2007 (over 17 years ago)
Affected files:
- rool/rails/i2/trunk/public/javascripts/auto_sections.js
- rool/rails/i2/trunk/public/javascripts/manual_sections.js
- rool/rails/i2/trunk/public/javascripts/sections.js
- rool/rails/i2/trunk/app/views/layouts/application.rhtml (diff)
- rool/rails/i2/trunk/public/stylesheets/instiki.css (diff)
rool/rails/i2/trunk/app/views/layouts/application.rhtml:
prev. | current | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<%= auto_discovery_link_tag(:rss, feed_url) %> | ||
<%= stylesheet_link_tag 'instiki' %> | ||
9 | | |
9 | <%= javascript_include_tag 'manual_sections' %> | |
10 | <%= javascript_include_tag 'auto_sections' %> | |
<%= content_tag "style", @style_additions, :type => "text/css" %> | ||
</head> | ||
<body bgcolor="#ffffff" text="#333333" link="#6e915e" vlink="#8cb877" alink="#e5ffd4"> | ||
... | ... | |
</div> | ||
<p /> | ||
37 | <div id="under_toc"> | |
<%= @content_for_layout %> | ||
39 | </div> | |
</div> | ||
</div> | ||
</td> |
rool/rails/i2/trunk/public/stylesheets/instiki.css:
prev. | current | |
margin: 0; | ||
overflow: visible; | ||
} | ||
126 | ||
127 | /* Table of contents (see auto_sections.js) */ | |
128 | ||
129 | div#toc { padding-left: 2em; } | |
130 | a.TOCBackLink { display: none; } | |
131 | .TOCLevel3 { margin-left: 2em; } | |
132 | .TOCLevel4 { margin-left: 4em; } | |
133 | .TOCLevel5 { margin-left: 6em; } | |
134 | .TOCLevel6 { margin-left: 8em; } | |
135 |