add main page
This commit is contained in:
parent
59d791e97f
commit
12c4995428
16 changed files with 372 additions and 43 deletions
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>JSDoc: <?js= title ?></title>
|
||||
<title>Initi documentation for GUI(2.9.1-develop) <?js= title ?></title>
|
||||
|
||||
<script src="scripts/prettify/prettify.js"> </script>
|
||||
<script src="scripts/prettify/lang-css.js"> </script>
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
<?js
|
||||
var data = obj;
|
||||
var self = this;
|
||||
|
||||
|
||||
console.log(self.content)
|
||||
?>
|
||||
|
||||
<?js= self.partial('mainpage/each.tmpl', self.content) ?>
|
||||
|
||||
<?js if (data.kind === 'package') { ?>
|
||||
<h3><?js= data.name ?> <?js= data.version ?></h3>
|
||||
<?js } ?>
|
||||
|
|
8
templates/initi/tmpl/mainpage/each.tmpl
Normal file
8
templates/initi/tmpl/mainpage/each.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?js
|
||||
var content = obj;
|
||||
var self = this;
|
||||
?>
|
||||
|
||||
<?js for(var a = 0; a < content.length; a++) { ?>
|
||||
<?js= self.partial('mainpage/part.tmpl', content[a]) ?>
|
||||
<?js } ?>
|
17
templates/initi/tmpl/mainpage/part.tmpl
Normal file
17
templates/initi/tmpl/mainpage/part.tmpl
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?js
|
||||
var part = obj;
|
||||
var self = this;
|
||||
|
||||
//console.log(part);
|
||||
?>
|
||||
|
||||
<?js if(part.description) { ?>
|
||||
<div class="description part bdotted"><?js= self.replace_enters_to_br(part.description) ?></div>
|
||||
<?js } ?>
|
||||
|
||||
<?js if (part.examples && part.examples.length) { ?>
|
||||
<div class="params-desc params-example bdotted part">
|
||||
<div class="title">Examples: </div>
|
||||
<?js= self.partial('examples.tmpl', part.examples) ?>
|
||||
</div>
|
||||
<?js } ?>
|
Loading…
Add table
Add a link
Reference in a new issue