Created
July 17, 2012 14:30
-
-
Save ezimuel/3129733 to your computer and use it in GitHub Desktop.
Script to convert all the ZF2 docs from DocBook to reStructuredText
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'RstConvert.php'; | |
$zf2Bin = '/path_to_zf2/bin'; | |
$docbookPath = '/path_to_zf2/documentation/manual/en/module_specs'; | |
foreach (glob("$docbookPath/*.xml") as $filename) { | |
$fileout = RstConvert::xmlFileNameToRst(basename($filename)); | |
echo "Generating...$fileout\n"; | |
exec("$zf2Bin/doc2rst.php -d $filename -o /dirout/$fileout -n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment