From 98ad7be09b8661f0b7b78842014eae13d49556a0 Mon Sep 17 00:00:00 2001 From: stefanp Date: Tue, 6 Jan 2004 15:50:29 +0000 Subject: [PATCH] added function renderApi() which renders the whole application docs into files. used via webinterface or commandline. changed RegExp: rhino needs global setting as second param in constructor --- DocApplication/functions.js | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/DocApplication/functions.js b/DocApplication/functions.js index aa586d6e..14393695 100644 --- a/DocApplication/functions.js +++ b/DocApplication/functions.js @@ -31,6 +31,27 @@ function getDir (dir, obj) { } } +function renderApi() { + var prefix = this.href (""); + this.storePage (this, "main", "", "index.html"); + this.storePage (this, "prototypes"); + this.storePage (this, "summary"); + this.storePage (this, "functionindex"); + var ct = 4; + var arr = this.listChildren (); + for (var i=0; i