| 1 |
lars |
1 |
<?php
|
|
|
2 |
//
|
|
|
3 |
// +------------------------------------------------------------------------+
|
|
|
4 |
// | phpDocumentor |
|
|
|
5 |
// +------------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (c) 2000-2003 Joshua Eichorn, Gregory Beaver |
|
|
|
7 |
// | Email jeichorn@phpdoc.org, cellog@phpdoc.org |
|
|
|
8 |
// | Web http://www.phpdoc.org |
|
|
|
9 |
// | Mirror http://phpdocu.sourceforge.net/ |
|
|
|
10 |
// | PEAR http://pear.php.net/package/PhpDocumentor |
|
|
|
11 |
// +------------------------------------------------------------------------+
|
|
|
12 |
// | This source file is subject to version 3.00 of the PHP License, |
|
|
|
13 |
// | that is available at http://www.php.net/license/3_0.txt. |
|
|
|
14 |
// | If you did not receive a copy of the PHP license and are unable to |
|
|
|
15 |
// | obtain it through the world-wide-web, please send a note to |
|
|
|
16 |
// | license@php.net so we can mail you a copy immediately. |
|
|
|
17 |
// +------------------------------------------------------------------------+
|
|
|
18 |
//
|
|
|
19 |
// ./phpdoc -d /home/jeichorn/phpdoc -dn phpDocumentor -ti "phpDocumentor generated docs" -td templates/DOM/l0l33t -t /tmp/phpdoc_DOM_l0l33t
|
|
|
20 |
/**
|
|
|
21 |
* This file creates example documentation output of all templates.
|
|
|
22 |
* @package phpDocumentor
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
/**
|
|
|
26 |
* Directory the output should go to.
|
|
|
27 |
* Change this variable to an output directory on your computer
|
|
|
28 |
* @global string $output_directory
|
|
|
29 |
*/
|
|
|
30 |
$output_directory = "/tmp";
|
|
|
31 |
/**
|
|
|
32 |
* default package name, used to change all non-included files to this package
|
|
|
33 |
* @global string $base_package
|
|
|
34 |
*/
|
|
|
35 |
$base_package = "phpDocumentor";
|
|
|
36 |
/**
|
|
|
37 |
* Title of the generated documentation
|
|
|
38 |
* @global string $title
|
|
|
39 |
*/
|
|
|
40 |
$title = "phpDocumentor Generated Documentation";
|
|
|
41 |
/**
|
|
|
42 |
* location of the files to parse. Change to a location on your computer.
|
|
|
43 |
* Example:
|
|
|
44 |
* <code>
|
|
|
45 |
* $parse_directory = "/home/jeichorn/phpdoc";
|
|
|
46 |
* </code>
|
|
|
47 |
* @global string $parse_directory
|
|
|
48 |
*/
|
|
|
49 |
$parse_directory = "/you-MUST/change-me/to-fit/your-environment";
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* directories to output examples into.
|
|
|
53 |
* @global array $output
|
|
|
54 |
*/
|
|
|
55 |
$output = array(
|
|
|
56 |
$output_directory.'/docs/phpdoc_default' => 'HTML:default:default',
|
|
|
57 |
$output_directory.'/docs/phpdoc_l0l33t' => 'HTML:default:l0l33t',
|
|
|
58 |
$output_directory.'/docs/phpdoc_phpdoc_de' => 'HTML:default:phpdoc.de',
|
|
|
59 |
$output_directory.'/docs/phpdoc_DOM_default' => 'HTML:default:DOM/default',
|
|
|
60 |
$output_directory.'/docs/phpdoc_DOM_l0l33t' => 'HTML:default:DOM/l0l33t',
|
|
|
61 |
$output_directory.'/docs/phpdoc_DOM_phpdoc_de' => 'HTML:default:DOM/phpdoc.de',
|
|
|
62 |
$output_directory.'/docs/phpdoc_smarty_default' => 'HTML:Smarty:default',
|
|
|
63 |
$output_directory.'/docs/phpdoc_pdf_default' => 'PDF:default:default',
|
|
|
64 |
$output_directory.'/docs/phpdoc_chm_default' => 'CHM:default:default',
|
|
|
65 |
);
|
|
|
66 |
|
|
|
67 |
foreach($output as $output => $template)
|
|
|
68 |
{
|
|
|
69 |
passthru("./phpdoc -d /home/jeichorn/phpdoc -dn $base_package -ti \"$title\" -td $template -t $output");
|
|
|
70 |
}
|