Permalink
Browse files

Apigen: template modified for Nette

  • Loading branch information...
1 parent 63afdad commit 944b345507cb14b00a9627893c7b0e33a77004f0 @dg dg committed Dec 20, 2011
@@ -15,7 +15,7 @@ templates:
filename: namespace-%s.html
template: namespace.latte
class:
- filename: class-%s.html
+ filename: %s.html
template: class.latte
constant:
filename: constant-%s.html
@@ -5,7 +5,7 @@
{block #content}
<div id="content" class="function">
- <h1>{if $function->deprecated}Deprecated {/if}Function {$function->shortName}</h1>
+ <h1>{if $function->deprecated}Deprecated {/if}Function {$function->shortName}()</h1>
<div class="description" n:if="$template->longDescription($function)">
{!$function|longDescription}
@@ -51,7 +51,7 @@ $(function() {
autocompleteFound = true;
var location = window.location.href.split('/');
location.pop();
- location.push(data[0] + '-' + data[1].replace(/[^\w]/g, '.') + '.html');
+ location.push((data[0] === 'class' ? '' : data[0] + '-') + data[1].replace(/[^\w]/g, '.') + '.html');
window.location = location.join('/');
}).closest('form')
.submit(function() {
@@ -7,13 +7,13 @@
<div id="content" class="namespace">
<h1>{if $namespace != 'None'}Namespace {!$namespace|namespaceLinks:false}{else}No namespace{/if}</h1>
+ {include '@elementlist.latte'}
+
<table class="summary" id="namespaces" n:if="$subnamespaces">
<caption>Namespaces summary</caption>
<tr n:foreach="$subnamespaces as $namespace">
<td class="name"><a href="{$namespace|namespaceUrl}">{$namespace}</a></td>
</tr>
</table>
-
- {include '@elementlist.latte'}
</div>
{/block}
@@ -12,13 +12,13 @@
<h1>{if $package != 'None'}Package {$package}{else}No package{/if}</h1>
{/if}
+ {include '@elementlist.latte'}
+
<table class="summary" id="packages" n:if="$subpackages">
<caption>Subpackages summary</caption>
<tr n:foreach="$subpackages as $package">
<td class="name"><a href="{$package|packageUrl}">{$package|subpackageName}</a></td>
</tr>
</table>
-
- {include '@elementlist.latte'}
</div>
{/block}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -60,7 +60,7 @@ p {
hr {
margin: 2em 0 1em;
border: none;
- border-top: 1px solid #cccccc;
+ border-top: 1px solid #e0e3e4;
height: 0;
}
@@ -126,6 +126,12 @@ code a b {
position: relative;
}
+#menu a {
+ display: block;
+ padding: 0;
+ margin-right: 20px;
+}
+
#menu .active > a, #menu > span {
color: #333333;
background: none;
@@ -237,7 +243,7 @@ code a b {
/* Navigation */
#navigation {
padding: 3px 8px;
- background-color: #f6f6f4;
+ background-color: #f2f2ee;
height: 26px;
}
@@ -342,16 +348,12 @@ dl.tree dd {
vertical-align: top;
}
-.summary td:first-child {
+#methods.summary td:first-child, #constants.summary td:first-child, #properties.summary td:first-child {
text-align: right;
}
-#packages.summary td:first-child, #namespaces.summary td:first-child, .inherited.summary td:first-child, .used.summary td:first-child {
- text-align: left;
-}
-
.summary tr:hover td {
- background: #f6f6f4;
+ background: #f2f2ee;
}
.summary .description pre {
@@ -415,7 +417,7 @@ td.name, td.attributes {
line-height: 1;
font-size: 85%;
margin: 0;
- color: #006aeb !important;
+ color: #9fc7f6 !important;
}
.list {
@@ -436,7 +438,7 @@ td.name, td.attributes {
height: 100%;
width: 5px;
left: 270px;
- background: #1e5eb6 url('resize.png') left center no-repeat;
+ background: #f2f2ee url('resize.png') left center no-repeat;
cursor: e-resize;
}

0 comments on commit 944b345

Please sign in to comment.