From 1997e9f187796231b50c1c466bc399021ddd834d Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 2 Nov 2019 13:39:50 +0200 Subject: [PATCH] Cleaned up API templates --- templates/Api/themes/api-base/theme.json | 6 +- .../zephir/partials/class/content.phtml | 62 +++++++++++-------- .../partials/class/method-details.phtml | 23 ++++--- .../class/method-summary-params.phtml | 4 +- templates/Api/themes/zephir/theme.json | 8 +-- 5 files changed, 54 insertions(+), 49 deletions(-) diff --git a/templates/Api/themes/api-base/theme.json b/templates/Api/themes/api-base/theme.json index 8c646d3dca..d32cdc13eb 100644 --- a/templates/Api/themes/api-base/theme.json +++ b/templates/Api/themes/api-base/theme.json @@ -1,11 +1,7 @@ { - "javascript" : [ - "api_definition.js", "static/jquery.min.js", "static/zephir-doc.js" - ] - -} \ No newline at end of file +} diff --git a/templates/Api/themes/zephir/partials/class/content.phtml b/templates/Api/themes/zephir/partials/class/content.phtml index 8e74df144f..2dde01a6fd 100644 --- a/templates/Api/themes/zephir/partials/class/content.phtml +++ b/templates/Api/themes/zephir/partials/class/content.phtml @@ -1,55 +1,63 @@ "Classes" , "url" => "/classes.html" ), - $items[] = array("name" => $fullName) - ); +/** + * @var string $fullName + * @var string $className + * @var array $methods + * @var string[] $namespacePieces + * @var Zephir\ClassDefinition $classDefinition + * @var Zephir\CompilerFile $compilerFile + */ + +$items = [ + ['name' => 'Classes' , 'url' => '/classes.html'], + $items[] = ['name' => $fullName] +]; ?> -partial("partials/breadcrumb.phtml",array("items"=> $items)) ?> +partial('partials/breadcrumb.phtml', ['items'=> $items]) ?>
- - +
Source - - themeOption("github")){ ?> - getFilePath() ?>">Github + themeOption('github')) { ?> + getFilePath()}" ?>"> + GitHub +
- Class - $nspath){ ?> + $nspath) { ?> - + + + +

-
Methods
-