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