generate doclist automatically based on modelist
This commit is contained in:
parent
4c1497fc29
commit
37fc612756
17 changed files with 118 additions and 94 deletions
5
demo/kitchen-sink/docs/ada.ada
Normal file
5
demo/kitchen-sink/docs/ada.ada
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
procedure Hello is
|
||||
begin
|
||||
Put_Line("Hello, world!");
|
||||
end Hello;
|
||||
1
demo/kitchen-sink/docs/cobol.CBL
Normal file
1
demo/kitchen-sink/docs/cobol.CBL
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
14
demo/kitchen-sink/docs/d.d
Normal file
14
demo/kitchen-sink/docs/d.d
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env rdmd
|
||||
// Computes average line length for standard input.
|
||||
import std.stdio;
|
||||
|
||||
void main() {
|
||||
ulong lines = 0;
|
||||
double sumLength = 0;
|
||||
foreach (line; stdin.byLine()) {
|
||||
++lines;
|
||||
sumLength += line.length;
|
||||
}
|
||||
writeln("Average line length: ",
|
||||
lines ? sumLength / lines : 0);
|
||||
}
|
||||
1
demo/kitchen-sink/docs/ejs.ejs
Normal file
1
demo/kitchen-sink/docs/ejs.ejs
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
1
demo/kitchen-sink/docs/html.htm
Normal file
1
demo/kitchen-sink/docs/html.htm
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
1
demo/kitchen-sink/docs/ini.ini
Normal file
1
demo/kitchen-sink/docs/ini.ini
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
1
demo/kitchen-sink/docs/jsoniq.jq
Normal file
1
demo/kitchen-sink/docs/jsoniq.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
1
demo/kitchen-sink/docs/matlab.matlab
Normal file
1
demo/kitchen-sink/docs/matlab.matlab
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
1
demo/kitchen-sink/docs/mysql.mysql
Normal file
1
demo/kitchen-sink/docs/mysql.mysql
Normal file
|
|
@ -0,0 +1 @@
|
|||
TODO
|
||||
46
demo/kitchen-sink/docs/soy_template.soy
Normal file
46
demo/kitchen-sink/docs/soy_template.soy
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Greets a person using "Hello" by default.
|
||||
* @param name The name of the person.
|
||||
* @param? greetingWord Optional greeting word to use instead of "Hello".
|
||||
*/
|
||||
{template .helloName #eee}
|
||||
{if not $greetingWord}
|
||||
Hello {$name}!
|
||||
{else}
|
||||
{$greetingWord} {$name}!
|
||||
{/if}
|
||||
{/template}
|
||||
|
||||
/**
|
||||
* Greets a person and optionally a list of other people.
|
||||
* @param name The name of the person.
|
||||
* @param additionalNames The additional names to greet. May be an empty list.
|
||||
*/
|
||||
{template .helloNames}
|
||||
// Greet the person.
|
||||
{call .helloName data="all" /}<br>
|
||||
// Greet the additional people.
|
||||
{foreach $additionalName in $additionalNames}
|
||||
{call .helloName}
|
||||
{param name: $additionalName /}
|
||||
{/call}
|
||||
{if not isLast($additionalName)}
|
||||
<br> // break after every line except the last
|
||||
{/if}
|
||||
{ifempty}
|
||||
No additional people to greet.
|
||||
{/foreach}
|
||||
{/template}
|
||||
|
||||
|
||||
{/foreach}
|
||||
{if length($items) > 5}
|
||||
{msg desc="Says hello to the user."}
|
||||
|
||||
|
||||
{namespace ns autoescape="contextual"}
|
||||
|
||||
/** Example. */
|
||||
{template .example}
|
||||
foo is {$ij.foo}
|
||||
{/template}
|
||||
Loading…
Add table
Add a link
Reference in a new issue