justinwalsh / daux.io

Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.
daux.io
4.54k stars 527 forks source link

Exception while formatting for confluence #439

Closed fritz-gerneth closed 7 years ago

fritz-gerneth commented 7 years ago

Getting this exception when trying to generate & upload the documentation to confluence:

$ ./vendor/bin/daux generate --format=confluence --configuration=./docs/config.json
Generating Tree ...

  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Type error: Argument 3 passed to Todaymade\Daux\Format\Confluence\ContentPage::Todaymade\Daux\Format\Confluence\{closure}() must
  be an instance of Todaymade\Daux\Tree\Raw, instance of Todaymade\Daux\Tree\Content given, called in /docs/vendor/justinwalsh/daux.io/libs/Format/Base/EmbedImages.php on line 75

Interessting enough our documentation doesn't contain any images (yet). Any ideas what might be causing this?

onigoetz commented 7 years ago

Hello, are you using the latest (0.3.1) version ?

I will have a look to see if there is something broken

fritz-gerneth commented 7 years ago

Yes, this is happening on 0.3.2 :

guzzlehttp/guzzle                 6.2.2  Guzzle is a PHP HTTP client library
guzzlehttp/promises               v1.3.1 Guzzle promises library
guzzlehttp/psr7                   1.3.1  PSR-7 message implementation
justinwalsh/daux.io               0.3.2  Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly
league/commonmark                 0.15.3 Markdown parser for PHP based on the CommonMark spec
league/plates                     3.3.0  Plates, the native PHP template system that's fast, easy to use and easy to extend.
myclabs/deep-copy                 1.6.0  Create deep copies (clones) of your objects
psr/http-message                  1.0.1  Common interface for HTTP messages
psr/log                           1.0.2  Common interface for logging libraries
symfony/console                   v3.2.2 Symfony Console Component
symfony/debug                     v3.2.2 Symfony Debug Component
symfony/finder                    v3.2.2 Symfony Finder Component
symfony/polyfill-mbstring         v1.3.0 Symfony polyfill for the Mbstring extension
symfony/process                   v3.2.2 Symfony Process Component
symfony/yaml                      v3.2.2 Symfony Yaml Component
webuni/commonmark-table-extension 0.6.1  The table extension for CommonMark PHP implementation
webuni/front-matter               0.2.0  Front matter parser and dumper for PHP