Ejemplo n.º 1
0
 */
error_reporting(E_ERROR | E_WARNING | E_PARSE);
define("DS", DIRECTORY_SEPARATOR);
define("PS", PATH_SEPARATOR);
//将lib目录加到path里面去。
set_include_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib" . PATH_SEPARATOR . get_include_path());
require_once "JsDoc/JsDoc.php";
require_once "phpqrcode.php";
$baseDir = dirname(dirname(dirname(dirname(__FILE__))));
$zeptoDir = $baseDir . "/src/zeptodoc";
$gmuDir = $baseDir . "/src";
$templateDir = $baseDir . "/tasks/lib/doc/template";
$outputDir = $baseDir . "/doc";
$themes = array('purple' => './css/purple.css', 'blue' => './css/blue.css', 'dark' => './css/dark.css', 'orange' => './css/orange.css');
$zeptoDoc = new JsDoc($zeptoDir);
$zeptoDoc->setData('name', 'Zepto.js');
$zeptoDoc->setData('title', 'Zepto API');
$zeptoDoc->setData('desc', 'Zepto是一个轻量级的针对现代浏览器的JS库,兼容jQuery用法');
$zeptoDoc->setOrder('core.js
            event.js
            ajax.js
            effect.js
            touch.js
            form.js
            ');
$gmuDoc = new JsDoc($gmuDir, array('core/zepto/*', 'core/fx.js'), true);
$gmuDoc->setData('name', 'GMU 新版API');
$gmuDoc->setData('title', 'GMU 新版API');
$gmuDoc->setOrder('
            core/extend.js
            core/ui.js