blob: 5a164a5f6c0dbfa3d4179a3adda97bd59322a15c [file] [log] [blame]
/* --COPYRIGHT--,EPL
* Copyright (c) 2008 Texas Instruments and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Texas Instruments - initial implementation
*
* --/COPYRIGHT--*/
var Gbl = xdc.loadCapsule('Gbl.xs');
var Out = xdc.loadCapsule('Out.xs');
var _out;
function PL( s ) { _out.println(s); }
/*
* ======== gen ========
*/
function gen(title, pname, outdir, big)
{
var bodyPage = '';
if (big) {
bodyPage = 'body-big.html';
}
else if (pname != null) {
bodyPage = pname.replace(/\./g, '/') + '/package.html';
}
else {
bodyPage = 'all-packages.html';
}
if (big) {
var index = '/index-big.html';
}
else {
var index = '/index.html';
}
_out = new Out.Stream(outdir + index);
if (title == null) {
if (big) {
title = 'RTSC Package Documentation (Consolidated)';
}
else {
title = 'RTSC Package Documentation';
}
}
PL(Gbl.FSDTYPE + '<HTML>');
PL('<HEAD>');
PL('<TITLE>' + title + '</TITLE>');
PL('<META name="googlebot" content="noindex,nofollow">');
PL('<SCRIPT language="javascript" type="text/javascript" src="index.js"></SCRIPT>');
PL('</HEAD>');
PL('<FRAMESET cols=20%,*>');
if (big) {
PL('<FRAME name="tree" scrolling="yes" src="toc-big.html">');
}
else {
PL('<FRAME name="tree" scrolling="yes" src="toc.html">');
}
PL('<FRAMESET name="main" border="0" rows="*">');
PL('<FRAME name="body" scrolling="yes" src="' + bodyPage + '">');
PL('</FRAMESET>');
PL('</FRAMESET>');
PL('</HTML>');
_out.close();
}