aboutsummaryrefslogtreecommitdiffstats
path: root/monkeyrunner/src
diff options
context:
space:
mode:
Diffstat (limited to 'monkeyrunner/src')
-rw-r--r--monkeyrunner/src/com/android/monkeyrunner/MonkeyRunnerHelp.java2
-rw-r--r--monkeyrunner/src/resources/com/android/monkeyrunner/sdk-docs.cs28
2 files changed, 29 insertions, 1 deletions
diff --git a/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunnerHelp.java b/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunnerHelp.java
index 5642788..124e6cf 100644
--- a/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunnerHelp.java
+++ b/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunnerHelp.java
@@ -141,7 +141,7 @@ public final class MonkeyRunnerHelp {
JSilver jsilver = new JSilver(resourceLoader);
// Quick check for support formats
- if ("html".equals(format) || "text".equals(format)) {
+ if ("html".equals(format) || "text".equals(format) || "sdk-docs".equals(format)) {
try {
Data hdf = buildHelpHdf(jsilver);
return jsilver.render(format + ".cs", hdf);
diff --git a/monkeyrunner/src/resources/com/android/monkeyrunner/sdk-docs.cs b/monkeyrunner/src/resources/com/android/monkeyrunner/sdk-docs.cs
new file mode 100644
index 0000000..b4be1fe
--- /dev/null
+++ b/monkeyrunner/src/resources/com/android/monkeyrunner/sdk-docs.cs
@@ -0,0 +1,28 @@
+page.title=UI/Application Exerciser Monkey API
+@jd:body
+
+<h2>MonkeyRunner Help<h2>
+<h3>Table of Contents</h3>
+<ul>
+<?cs each:item = help ?>
+<li><a href="#<?cs name:item ?>"><?cs var:item.name ?></a></li>
+<?cs /each ?>
+</ul>
+<?cs each:item = help ?>
+<h3><a name="<?cs name:item ?>"><?cs var:item.name ?></a></h3>
+ <?cs each:docpara = item.doc ?>
+ <p><?cs var:docpara ?></p>
+ <?cs /each ?>
+ <?cs if:subcount(item.argument) ?>
+<h4>Args</h4>
+<ul>
+ <?cs each:arg = item.argument ?>
+ <li><?cs var:arg.name ?> - <?cs each:argdocpara = arg.doc ?><?cs var:argdocpara ?> <?cs /each ?>
+ <?cs /each ?>
+</ul>
+<h4>Returns</h4>
+<p><?cs each:retdocpara = item.returns ?><?cs var:retdocpara ?> <?cs /each ?></p>
+<?cs /if ?>
+<?cs /each ?>
+</body>
+</html>