* @ingroup Maintenance
*/
class MWDocGen extends Maintenance {
+ /** @var string */
+ private $doxygen;
+ /** @var string */
+ private $mwVersion;
+ /** @var string */
+ private $output;
+ /** @var string */
+ private $input;
+ /** @var string */
+ private $inputFilter;
+ /** @var string */
+ private $template;
+ /** @var string[] */
+ private $excludes;
+ /** @var string[] */
+ private $excludePatterns;
+ /** @var bool */
+ private $doDot;
+ /** @var bool */
+ private $doMan;
/**
* Prepare Maintenance class
$this->addOption( 'version',
'Pass a MediaWiki version',
false, true );
- $this->addOption( 'generate-man',
- 'Whether to generate man files' );
$this->addOption( 'file',
"Only process given file or directory. Multiple values " .
"accepted with comma separation. Path relative to \$IP.",
'resources/lib',
'images',
'static',
+ 'tests',
+ 'includes/libs/Message/README.md',
+ 'includes/libs/objectcache/README.md',
+ 'includes/libs/ParamValidator/README.md',
+ 'maintenance/benchmarks/README.md',
+ 'resources/src/mediawiki.ui/styleguide.md',
];
$this->excludePatterns = [];
if ( $this->hasOption( 'no-extensions' ) ) {
$this->excludePatterns[] = 'extensions';
+ $this->excludePatterns[] = 'skins';
}
$this->doDot = shell_exec( 'which dot' );
- $this->doMan = $this->hasOption( 'generate-man' );
}
public function execute() {
'{{EXCLUDE}}' => $exclude,
'{{EXCLUDE_PATTERNS}}' => $excludePatterns,
'{{HAVE_DOT}}' => $this->doDot ? 'YES' : 'NO',
- '{{GENERATE_MAN}}' => $this->doMan ? 'YES' : 'NO',
'{{INPUT_FILTER}}' => $this->inputFilter,
]
);