From c88f63c4cb8078e28de97d6cea29630c527f01e0 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 19 Jul 2018 22:03:35 +0200 Subject: [PATCH] don't forget configuration in case of deeper source directory --- daux/d3processor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daux/d3processor.php b/daux/d3processor.php index 445ac28..a7b2d89 100644 --- a/daux/d3processor.php +++ b/daux/d3processor.php @@ -123,6 +123,14 @@ class d3DocumentRenderer implements BlockRendererInterface $output = new NullOutput(); $daux = new Daux(Daux::STATIC_MODE, $output); + + foreach ($_SERVER['argv'] as $arg) { + if (stristr($arg, '--source=')) { + $docsdir = trim(str_replace('--source=', '', $arg)); + $daux->getParams()->setDocumentationDirectory($docsdir); + } + } + $daux->initializeConfiguration(); $params = $daux->getParams();