<?php include '../../autoload.php'; use reStructuredText\RST\Builder; use reStructuredText\RST\LaTeX\Kernel; try { // Build the 'input' files to the 'output' directory $builder = new Builder(new Kernel()); $builder->copy('css', 'css'); $builder->build('input', 'output'); } catch (\Exception $exception) { echo "\n"; echo "Error: " . $exception->getMessage() . "\n"; }
public function setUp() { shell_exec('rm -rf ' . $this->targetFile()); $builder = new Builder(); $builder->copy('file.txt'); $builder->build($this->sourceFile(), $this->targetFile(), false); }