MediaWiki master
mwdoc-filter.php
Go to the documentation of this file.
1<?php
27use MediaWiki\Maintenance\MWDoxygenFilter;
28
29// Warning: Converting this to a Maintenance script may reduce performance.
30if ( PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg' ) {
31 die( "This filter can only be run from the command line.\n" );
32}
33
34require_once __DIR__ . '/includes/MWDoxygenFilter.php';
35
36$source = file_get_contents( $argv[1] );
37echo MWDoxygenFilter::filter( $source );
$source