X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmwdocgen.php;h=ee0ff0176655f9a439be80009262f196ecfccc84;hb=d0e16713bcf0a065d22caad2125cc25d4d9245ef;hp=9283264ae9e63c620f2cf199522d7ee93b7a3e27;hpb=ca1e4c8059a214c2b1a38507d1973568c4976fc9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index 9283264ae9..ee0ff01766 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -57,7 +57,8 @@ class MWDocGen extends Maintenance { $this->addOption( 'generate-man', 'Whether to generate man files' ); $this->addOption( 'file', - 'Only process given file (relative to $IP)', + "Only process given file or directory. Multiple values " . + "accepted with comma separation. Path relative to \$IP.", false, true ); $this->addOption( 'output', 'Path to write doc to', @@ -75,13 +76,21 @@ class MWDocGen extends Maintenance { $this->doxygen = $this->getOption( 'doxygen', 'doxygen' ); $this->mwVersion = $this->getOption( 'version', 'master' ); - $this->input = $IP . '/' . $this->getOption( 'file', '' ); + + $this->input = ''; + $inputs = explode( ',', $this->getOption( 'file', '' ) ); + foreach ( $inputs as $input ) { + # Doxygen inputs are space separted and double quoted + $this->input .= " \"$IP/$input\""; + } + $this->output = $this->getOption( 'output', "$IP/docs" ); $this->inputFilter = wfShellWikiCmd( $IP . '/maintenance/mwdoc-filter.php' ); $this->template = $IP . '/maintenance/Doxyfile'; $this->excludes = array( + 'vendor', 'images', 'static', ); @@ -143,15 +152,13 @@ You might want to delete the temporary file: --------------------------------------------------- TEXT - ); + ); if ( $exitcode !== 0 ) { $this->error( "Something went wrong (exit: $exitcode)\n", $exitcode ); } - } - } $maintClass = 'MWDocGen';