forked from science-ation/science-ation
a few apidoc cleanups
This commit is contained in:
parent
0f9588cdf4
commit
c413d54f6d
@ -1,14 +1,17 @@
|
|||||||
body {
|
body {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
color: #666666;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.0em;
|
font-size: 1.0em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
|
color: #666666;
|
||||||
}
|
}
|
||||||
.apidoc {
|
.apidoc {
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
|
@ -36,13 +36,14 @@
|
|||||||
unset($cmd);
|
unset($cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ksort($commands);
|
||||||
foreach($commands AS $c=>$com) {
|
foreach($commands AS $c=>$com) {
|
||||||
echo "<h1>".htmlspecialchars($c)."</h1>";
|
echo "<h1>".htmlspecialchars($c)."</h1>";
|
||||||
echo "<div class=\"apidoc\">\n";
|
echo "<div class=\"apidoc\">\n";
|
||||||
echo $com['description'];
|
echo $com['description'];
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
if(count($com['post'])) {
|
if(count($com['post'])) {
|
||||||
echo "<h2>POST</h2>\n";
|
echo "<h2>Post</h2>\n";
|
||||||
echo "<ul>";
|
echo "<ul>";
|
||||||
foreach($com['post'] AS $p) {
|
foreach($com['post'] AS $p) {
|
||||||
echo "<li>$p</li>\n";
|
echo "<li>$p</li>\n";
|
||||||
@ -50,7 +51,7 @@ foreach($commands AS $c=>$com) {
|
|||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
}
|
}
|
||||||
if(count($com['return'])) {
|
if(count($com['return'])) {
|
||||||
echo "<h2>RETURN</h2>\n";
|
echo "<h2>Return</h2>\n";
|
||||||
echo "<ul>";
|
echo "<ul>";
|
||||||
foreach($com['return'] AS $p) {
|
foreach($com['return'] AS $p) {
|
||||||
echo "<li>$p</li>\n";
|
echo "<li>$p</li>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user