Create a "daux" binary

Refactored Daux a bit to allow generating documentation from working directory
This commit is contained in:
Stéphane Goetz
2016-07-27 23:27:51 +02:00
parent 4f5bc217e7
commit 3375f8ff2b
15 changed files with 164 additions and 71 deletions

View File

@ -29,11 +29,12 @@ class BuilderIntegrationTest extends \PHPUnit_Framework_TestCase
public function testCreateHierarchy()
{
$config = new Config();
$config->setDocumentationDirectory($this->root->url());
$config['valid_content_extensions'] = ['md'];
$config['mode'] = Daux::STATIC_MODE;
$config['index_key'] = 'index.html';
$tree = new Root($config, $this->root->url());
$tree = new Root($config);
Builder::build($tree, []);
$this->assertCount(2, $tree);