mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:45:10 +00:00
[AYA] Make returns a separate h2
This commit is contained in:
parent
c926397ed6
commit
4fbdf05176
2 changed files with 6 additions and 5 deletions
|
|
@ -35,6 +35,7 @@ a:link
|
||||||
.aya-arg
|
.aya-arg
|
||||||
{
|
{
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
color: #fabd2f;
|
||||||
}
|
}
|
||||||
.aya-name
|
.aya-name
|
||||||
{
|
{
|
||||||
|
|
|
||||||
10
tools/aya.c
10
tools/aya.c
|
|
@ -144,12 +144,10 @@ GenerateReturns(Stream *out, AyadocComment *ayadoc, HeaderDeclaration decl, char
|
||||||
{
|
{
|
||||||
if (StrEquals(val, "NOTHING"))
|
if (StrEquals(val, "NOTHING"))
|
||||||
{
|
{
|
||||||
StreamPrintf(out, " <span class='rets-none'>nothing.</span>");
|
StreamPrintf(out, "<span class='rets-none'>Nothing.</span>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
StreamPrintf(out, ": ");
|
|
||||||
|
|
||||||
/* TODO: Split all arguments by the '|', and handle them automatically
|
/* TODO: Split all arguments by the '|', and handle them automatically
|
||||||
* (with live-alongs, special capped params, ... */
|
* (with live-alongs, special capped params, ... */
|
||||||
StreamPrintf(out, " <span class='rets-span'>%s</span>", val);
|
StreamPrintf(out, " <span class='rets-span'>%s</span>", val);
|
||||||
|
|
@ -164,7 +162,7 @@ GenerateHTML(Stream *out, AyadocComment *ayadoc, HeaderDeclaration decl)
|
||||||
|
|
||||||
StreamPrintf(out, "<div id='fdiv-%s'>", decl.name);
|
StreamPrintf(out, "<div id='fdiv-%s'>", decl.name);
|
||||||
{
|
{
|
||||||
StreamPrintf(out, "<h2><code>%s</code></h2><hr/>", decl.name);
|
StreamPrintf(out, "<hr/>");
|
||||||
|
|
||||||
StreamPrintf(out, "<h3>Signature</h3>");
|
StreamPrintf(out, "<h3>Signature</h3>");
|
||||||
StreamPrintf(out, "<div id='sdiv-%s'>", decl.name);
|
StreamPrintf(out, "<div id='sdiv-%s'>", decl.name);
|
||||||
|
|
@ -221,7 +219,7 @@ GenerateHTML(Stream *out, AyadocComment *ayadoc, HeaderDeclaration decl)
|
||||||
{
|
{
|
||||||
/* TODO: Be a little more advanced. */
|
/* TODO: Be a little more advanced. */
|
||||||
StreamPrintf(out, "<div class='aya-pret' id='pret-%s'>", decl.name);
|
StreamPrintf(out, "<div class='aya-pret' id='pret-%s'>", decl.name);
|
||||||
StreamPrintf(out, "Returns");
|
StreamPrintf(out, "<h2>Returns</h2>");
|
||||||
GenerateReturns(out, ayadoc, decl, value);
|
GenerateReturns(out, ayadoc, decl, value);
|
||||||
StreamPrintf(out, "</div>");
|
StreamPrintf(out, "</div>");
|
||||||
StreamFlush(out);
|
StreamFlush(out);
|
||||||
|
|
@ -288,6 +286,8 @@ Main(Array *args, HashMap *env)
|
||||||
StreamPrintf(output, "</head>");
|
StreamPrintf(output, "</head>");
|
||||||
|
|
||||||
StreamPrintf(output, "<body>");
|
StreamPrintf(output, "<body>");
|
||||||
|
StreamPrintf(output, "<center><h1>Ayaya!: %s</h1></center>", header);
|
||||||
|
StreamPrintf(output, "<br/>");
|
||||||
/* TODO */
|
/* TODO */
|
||||||
{
|
{
|
||||||
AyadocComment *comm = NULL;
|
AyadocComment *comm = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue