mirror of
https://github.com/michaelrsweet/mxml.git
synced 2025-07-03 17:12:08 +00:00
Fix docset generation.
This commit is contained in:
parent
96564158e1
commit
fd57e148c5
@ -338,16 +338,16 @@ mxml.xml: mxmldoc-static mxml.h $(PUBLIBOBJS:.o=.c)
|
|||||||
$(RM) mxml.xml
|
$(RM) mxml.xml
|
||||||
./mxmldoc-static --header doc/reference.heading mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html
|
./mxmldoc-static --header doc/reference.heading mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html
|
||||||
if test "x`uname`" = xDarwin; then \
|
if test "x`uname`" = xDarwin; then \
|
||||||
./mxmldoc-static --docset ~/Library/Developer/Shared/Documentation/DocSets/org.minixml.docset \
|
./mxmldoc-static --docset org.minixml.docset \
|
||||||
--docversion @VERSION@ --feedname minixml.org \
|
--docversion @VERSION@ --feedname minixml.org \
|
||||||
--feedurl http://www.minixml.org/org.minixml.atom \
|
--feedurl http://www.minixml.org/org.minixml.atom \
|
||||||
--header doc/docset.header --intro doc/docset.intro \
|
--header doc/docset.header --intro doc/docset.intro \
|
||||||
--css doc/docset.css --title "Mini-XML API Reference" \
|
--css doc/docset.css --title "Mini-XML API Reference" \
|
||||||
mxml.xml; \
|
mxml.xml || exit 1; \
|
||||||
/Developer/usr/bin/docsetutil package --output org.minixml.xar \
|
/Developer/usr/bin/docsetutil package --output org.minixml.xar \
|
||||||
--atom org.minixml.atom \
|
--atom org.minixml.atom \
|
||||||
--download-url http://www.minixml.org/org.minixml.xar \
|
--download-url http://www.minixml.org/org.minixml.xar \
|
||||||
~/Library/Developer/Shared/Documentation/DocSets/org.minixml.docset; \
|
org.minixml.docset || exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
valgrind: mxmldoc-static
|
valgrind: mxmldoc-static
|
||||||
|
@ -142,6 +142,7 @@ hspace="10" width="100" height="100" alt="C"></a>Library
|
|||||||
Reference</h1>
|
Reference</h1>
|
||||||
|
|
||||||
<h2 class="title">Contents</h2>
|
<h2 class="title">Contents</h2>
|
||||||
|
<ul class="contents">
|
||||||
<li><a href="#FUNCTIONS">Functions</a><ul class="code">
|
<li><a href="#FUNCTIONS">Functions</a><ul class="code">
|
||||||
<li><a href="#mxmlAdd" title="Add a node to a tree.">mxmlAdd</a></li>
|
<li><a href="#mxmlAdd" title="Add a node to a tree.">mxmlAdd</a></li>
|
||||||
<li><a href="#mxmlDelete" title="Delete a node and all of its children.">mxmlDelete</a></li>
|
<li><a href="#mxmlDelete" title="Delete a node and all of its children.">mxmlDelete</a></li>
|
||||||
|
40
mxmldoc.c
40
mxmldoc.c
@ -4925,6 +4925,8 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
else if (!xml)
|
||||||
|
fputs("<ul class=\"contents\">\n", out);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Next the classes...
|
* Next the classes...
|
||||||
@ -4955,7 +4957,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5002,7 +5004,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5015,9 +5017,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
function = find_public(function, doc, "function");
|
function = find_public(function, doc, "function");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes></Node>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul></li>\n", out);
|
fputs("</ul></li>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5049,7 +5049,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5062,9 +5062,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
scut = find_public(scut, doc, "typedef");
|
scut = find_public(scut, doc, "typedef");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes></Node>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul></li>\n", out);
|
fputs("</ul></li>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5096,7 +5094,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5109,9 +5107,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
scut = find_public(scut, doc, "struct");
|
scut = find_public(scut, doc, "struct");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes></Node>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul></li>\n", out);
|
fputs("</ul></li>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5144,7 +5140,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5157,9 +5153,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
scut = find_public(scut, doc, "union");
|
scut = find_public(scut, doc, "union");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes></Node>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul></li>\n", out);
|
fputs("</ul></li>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5191,7 +5185,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5204,9 +5198,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
arg = find_public(arg, doc, "variable");
|
arg = find_public(arg, doc, "variable");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes></Node>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul></li>\n", out);
|
fputs("</ul></li>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5238,7 +5230,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
"<Path>Documentation/index.html</Path>\n"
|
"<Path>Documentation/index.html</Path>\n"
|
||||||
"<Anchor>%s</Anchor>\n"
|
"<Anchor>%s</Anchor>\n"
|
||||||
"<Name>%s</Name>\n"
|
"<Name>%s</Name>\n"
|
||||||
"</Node>", xmlid ++, name, name);
|
"</Node>\n", xmlid ++, name, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -5261,9 +5253,7 @@ write_toc(FILE *out, /* I - Output file */
|
|||||||
* That's it!
|
* That's it!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (xml)
|
if (!xml)
|
||||||
fputs("</Subnodes>\n", out);
|
|
||||||
else
|
|
||||||
fputs("</ul>\n", out);
|
fputs("</ul>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user