Skip to content

Commit

Permalink
fix(docs) normalize headers to look the same, cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Feb 17, 2022
1 parent c70e567 commit 9cb224f
Show file tree
Hide file tree
Showing 6 changed files with 289 additions and 281 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ indent_size = 4
indent_style = tab
indent_size = 4

[*.html]
indent_style = tab
indent_size = 4

[*.c]
indent_style = space
indent_size = 2
Expand Down
19 changes: 10 additions & 9 deletions docs/examples.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>LuaExpat: XML Expat parsing for the Lua programming language</title>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
Expand All @@ -12,7 +12,7 @@

<div id="product">
<div id="product_logo"><a href="http://www.keplerproject.org">
<img alt="LuaExpat logo" src="luaexpat.png"/>
<img alt="LuaExpat logo" src="luaexpat.png"/>
</a></div>
<div id="product_name"><big><strong>LuaExpat</strong></big></div>
<div id="product_description">XML Expat parsing for the Lua programming language</div>
Expand All @@ -37,18 +37,19 @@ <h1>LuaExpat</h1>
<li><a href="manual.html">Manual</a>
<ul>
<li><a href="manual.html#introduction">Introduction</a></li>
<li><a href="manual.html#building">Building</a></li>
<li><a href="manual.html#installation">Installation</a></li>
<li><a href="manual.html#parser">Parser Objects</a></li>
</ul>
</li>
<li><strong>Examples</strong></li>
<li><a href="lom.html">Lua Object Model</a></li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><a href="license.html">License</a></li>
</ul>
</div> <!-- id="navigation" -->
Expand Down
126 changes: 63 additions & 63 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>LuaExpat: XML Expat parsing for the Lua programming language</title>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<div id="container">

<div id="product">
<div id="product_logo">
<a href="http://www.keplerproject.org"><img alt="LuaExpat logo" src="luaexpat.png"/></a>
</div>
<div id="product_logo"><a href="http://www.keplerproject.org">
<img alt="LuaExpat logo" src="luaexpat.png"/>
</a></div>
<div id="product_name"><big><strong>LuaExpat</strong></big></div>
<div id="product_description">XML Expat parsing for the Lua programming language</div>
</div> <!-- id="product" -->
Expand Down Expand Up @@ -44,12 +44,12 @@ <h1>LuaExpat</h1>
</li>
<li><a href="examples.html">Examples</a></li>
<li><a href="lom.html">Lua Object Model</a></li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><a href="license.html">License</a></li>
</ul>
</div> <!-- id="navigation" -->
Expand All @@ -74,8 +74,8 @@ <h2><a name="download"></a>Download</h2>
<p>The latest LuaExpat release is 1.3.0.</p>

<ul>
<li><a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz">luaexpat-1.3.0.tar.gz</a> <a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz.asc">(signature)</a></li>
<li><a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.2.0.tar.gz">luaexpat-1.2.0.tar.gz</a> <a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.2.0.tar.gz.asc">(signature)</a></li>
<li><a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz">luaexpat-1.3.0.tar.gz</a> <a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz.asc">(signature)</a></li>
<li><a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.2.0.tar.gz">luaexpat-1.2.0.tar.gz</a> <a href="https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.2.0.tar.gz.asc">(signature)</a></li>
</ul>

<p>Older LuaExpat releases can be downloaded from
Expand All @@ -90,56 +90,56 @@ <h2><a name="download"></a>Download</h2>
<h2><a name="history"></a>History</h2>

<dl class="history">
<dt><strong>Version 1.3.0</strong> [02/Apr/2014]</dt>
<dd>
<ul>
<li>Lua 5.2 support (thanks Tomás Guisasola Gorham)</li>
<li>support for the XmlDecl handler</li>
<li>add parser:getcurrentbytecount() (XML_GetCurrentByteCount)</li>
<li>ability to disable CharacterData merging</li>
<li>Makefile improvements (thanks Vadim Misbakh-Soloviov)</li>
</ul>
</dd>

<dt><strong>Version 1.2.0</strong> [02/Jun/2011]</dt>
<dd>
<em>New maintainer: Matthew Wild</em>
<ul>
<li>support for the StartDoctypeDecl handler</li>
<li>add parser:stop() to abort parsing inside a callback</li>
</ul>
</dd>

<dt><strong>Version 1.1.0</strong> [05/Jun/2007]</dt>
<dd>
<ul>
<li>adapted to work on both Lua 5.0 and Lua 5.1</li>
<li>updated to use Expat 2.0.0</li>
</ul>
</dd>

<dt><strong><a href="http://www.keplerproject.org/luaexpat/1.0">Version 1.0.2</a></strong> [23/Mar/2006]</dt>
<dd>
<ul>
<li>minor bugfix, <code>lom</code> correct module name is <code>lxp.lom</code></li>
</ul>
</dd>

<dt><strong>Version 1.0.1</strong> [06/Jun/2005]</dt>
<dd>
<ul>
<li>minor changes for compatibility with Expat version 1.95.8</li>
</ul>
</dd>

<dt><strong>Version 1.0</strong> [2/Dec/2004]</dt>
<dd />

<dt><strong>Version 1.0 Beta</strong> [4/Apr/2004]</dt>
<dd />

<dt><strong>Version 1.0 Alpha</strong> [10/Dec/2003]</dt>
<dd />
<dt><strong>Version 1.3.0</strong> [02/Apr/2014]</dt>
<dd>
<ul>
<li>Lua 5.2 support (thanks Tomás Guisasola Gorham)</li>
<li>support for the XmlDecl handler</li>
<li>add parser:getcurrentbytecount() (XML_GetCurrentByteCount)</li>
<li>ability to disable CharacterData merging</li>
<li>Makefile improvements (thanks Vadim Misbakh-Soloviov)</li>
</ul>
</dd>

<dt><strong>Version 1.2.0</strong> [02/Jun/2011]</dt>
<dd>
<em>New maintainer: Matthew Wild</em>
<ul>
<li>support for the StartDoctypeDecl handler</li>
<li>add parser:stop() to abort parsing inside a callback</li>
</ul>
</dd>

<dt><strong>Version 1.1.0</strong> [05/Jun/2007]</dt>
<dd>
<ul>
<li>adapted to work on both Lua 5.0 and Lua 5.1</li>
<li>updated to use Expat 2.0.0</li>
</ul>
</dd>

<dt><strong><a href="http://www.keplerproject.org/luaexpat/1.0">Version 1.0.2</a></strong> [23/Mar/2006]</dt>
<dd>
<ul>
<li>minor bugfix, <code>lom</code> correct module name is <code>lxp.lom</code></li>
</ul>
</dd>

<dt><strong>Version 1.0.1</strong> [06/Jun/2005]</dt>
<dd>
<ul>
<li>minor changes for compatibility with Expat version 1.95.8</li>
</ul>
</dd>

<dt><strong>Version 1.0</strong> [2/Dec/2004]</dt>
<dd />

<dt><strong>Version 1.0 Beta</strong> [4/Apr/2004]</dt>
<dd />

<dt><strong>Version 1.0 Alpha</strong> [10/Dec/2003]</dt>
<dd />
</dl>

<h2><a name="references"></a>References</h2>
Expand Down
19 changes: 10 additions & 9 deletions docs/license.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>LuaExpat: XML Expat parsing for the Lua programming language</title>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
Expand All @@ -12,7 +12,7 @@

<div id="product">
<div id="product_logo"><a href="http://www.keplerproject.org">
<img alt="LuaExpat logo" src="luaexpat.png"/>
<img alt="LuaExpat logo" src="luaexpat.png"/>
</a></div>
<div id="product_name"><big><strong>LuaExpat</strong></big></div>
<div id="product_description">XML Expat parsing for the Lua programming language</div>
Expand All @@ -37,18 +37,19 @@ <h1>LuaExpat</h1>
<li><a href="manual.html">Manual</a>
<ul>
<li><a href="manual.html#introduction">Introduction</a></li>
<li><a href="manual.html#building">Building</a></li>
<li><a href="manual.html#installation">Installation</a></li>
<li><a href="manual.html#parser">Parser Objects</a></li>
</ul>
</li>
<li><a href="examples.html">Examples</a></li>
<li><a href="lom.html">Lua Object Model</a></li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><a href="http://luaforge.net/projects/luaexpat/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=13">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=13">CVS</a></li>
</ul>
</li>
<li><strong>License</strong></li>
</ul>
</div> <!-- id="navigation" -->
Expand Down
25 changes: 13 additions & 12 deletions docs/lom.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>LuaExpat: XML Expat parsing for the Lua programming language</title>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<link rel="stylesheet" href="./doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
Expand All @@ -12,7 +12,7 @@

<div id="product">
<div id="product_logo"><a href="http://www.keplerproject.org">
<img alt="LuaExpat logo" src="luaexpat.png"/>
<img alt="LuaExpat logo" src="luaexpat.png"/>
</a></div>
<div id="product_name"><big><strong>LuaExpat</strong></big></div>
<div id="product_description">XML Expat parsing for the Lua programming language</div>
Expand All @@ -37,6 +37,7 @@ <h1>LuaExpat</h1>
<li><a href="manual.html">Manual</a>
<ul>
<li><a href="manual.html#introduction">Introduction</a></li>
<li><a href="manual.html#building">Building</a></li>
<li><a href="manual.html#installation">Installation</a></li>
<li><a href="manual.html#parser">Parser Objects</a></li>
</ul>
Expand Down Expand Up @@ -72,17 +73,17 @@ <h2><a name="characteristics"></a>Characteristics</h2>
table has three special characteristics:</p>

<ul>
<li>a special field called <strong><code>tag</code></strong> that holds the
element's name;</li>
<li>a special field called <strong><code>tag</code></strong> that holds the
element's name;</li>

<li>an optional field called <strong><code>attr</code></strong> that stores
the element's attributes (see <a href="#attributes">attribute's
section</a>); and</li>
<li>an optional field called <strong><code>attr</code></strong> that stores
the element's attributes (see <a href="#attributes">attribute's
section</a>); and</li>

<li>the element's children are stored at the <em>array-part</em> of
the table. A child could be an ordinary string or another XML
element that will be represented by a Lua table following these
same rules.</li>
<li>the element's children are stored at the <em>array-part</em> of
the table. A child could be an ordinary string or another XML
element that will be represented by a Lua table following these
same rules.</li>
</ul>


Expand Down
Loading

0 comments on commit 9cb224f

Please sign in to comment.