Difference between revisions of "Generating a Lithium TOC"

From Second Life Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Prerequisite''': Download this Perl script: http://duramecho.com/ComputerPrograms/HtmlHeadingsToTableOfContents/index.html
+
{{#Widget:Redirect|url=/t5/English-Knowledge-Base/Knowledge-Base-Style-Guide/ta-p/717705#Section_.3.2a}}
 
+
'''Procedure'''
+
 
+
# Copy / paste the HTML into a local file.
+
#Add <html><body> ....</body></html>
+
#Run script
+
:<pre>perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html></pre>
+
:4. Copy paste results back into Lithium.
+
:5. Add TOC table wrapper code
+
 
+
'''TOC wrapper code'''
+
<pre>
+
<table id="toc" class="toc" summary="Contents">
+
<tbody>
+
<tr>
+
<td>
+
<!-- Generated TOC here -->
+
</td>
+
</tr>
+
</tbody>
+
</table>
+
</pre>
+
[[Category:Documentation]]
+

Latest revision as of 14:00, 13 January 2012

Redirecting to http://community.secondlife.com/t5/English-Knowledge-Base/Knowledge-Base-Style-Guide/ta-p/717705#Section_.3.2a