update new api

This commit is contained in:
2020-11-02 08:14:51 +08:00
parent 8c3c022f0c
commit 5c11fc0552
2 changed files with 11 additions and 7 deletions

View File

@@ -10,13 +10,16 @@ class APIgoatDoc extends APIgoatTemplate
foreach ($data as $row) {
$menu .= li(href($row['name'], '#' . $row['title']), "class='page_item current_page_item'");
$menu .= li(href($row['name'], '#' . $row['title']), "class='page_item wd-state-closed'");
$content .= div(
anchor($row['title']) . h3($row['name'])
anchor($row['title'])
. h2($row['title'], "class='entry-title'")
. h3($row['name'])
. span($row['type'] . " " . $row['value'])
. p(trim($row['text']))
. ((!empty($row['example'])) ? div(span("Example:") . pre(htmlentities($row['example']))) : '')
. ((!empty($row['example'])) ? div(span("Example:") . pre(htmlentities($row['example']))) : ''),
"",
"class='doc-item'"
);
}