phpnode / Yii-Docs-Generator

Generates HTML documentation for Yii applications
43 stars 16 forks source link

Generates the site documentation but how to ignores system and zii files? #3

Open brucebnu opened 11 years ago

brucebnu commented 11 years ago

Hello, How to like to ignores views (noviews) . generates the site documentation but ignores yii framework system and zii package?

thanks! bruce 2013-06-26

LightningK0ala commented 10 years ago

Here's a quick to ignore yii framework classes:

Edit the commands/DocsCommand.php file, at line 297:

foreach(CFileHelper::findFiles(YII_PATH,$this->yiiOptions) as $file) {
    $files[] = $file;
}

comment/remove that foreach loop:

/*
foreach(CFileHelper::findFiles(YII_PATH,$this->yiiOptions) as $file) {
    $files[] = $file;
}
*/

Now it should only generate docs for the files in your application.