phpDocumentor / phpDocumentor

Documentation Generator for PHP
https://www.phpdoc.org
MIT License
4.12k stars 640 forks source link

Rendering documentation with external template #1770

Open RobertErobert opened 8 years ago

RobertErobert commented 8 years ago

Hello, i have upgrade my phpDocumentor to 2.9 and now when i run phpDoc it gives me an error, i am using an branded version of responsiv-twig template. Before i upgraded it, all was fine. I need the new version, because the render throw exception bug is now fixed.

The Error Message is:

[phpDocumentor\Transformer\Exception]
The source path does not exist: /Users/rov/Documents/phpStorm/phpDoc/vendor/phpdocumentor/phpdocumentor/src/phpDocumentor/Transformer/../../../data/templates/abstract//Users/rov/Documents/phpStorm/phpDocumentor2_sf_template/img/sf_logo.png

This is the first entry in the template.xml:

It would be very nice, if somebody can help me.

RobertErobert commented 8 years ago

Now i get: `Preparing template "/Users/rov/Documents/phpStorm/phpDocNewTemplat ..

[Symfony\Component\Filesystem\Exception\IOException]
Failed to create "phar:///Users/rov/Documents/phpStorm/IA_Local_Development_Instance_Symfony_3/docs/phpDoc/phpDocumentor.phar/src/phpDocumentor/Transformer/../../../data/templates/phpDocNewTemplate" `

mattbeck commented 8 years ago

@DJWindless Did you figure out how to make this work with the Phar? I'm stuck on the same issue.

RobertErobert commented 8 years ago

No sorry man, i will be waiting for a fix.

jaapio commented 8 years ago

A change in code is needed to solve this. If you have time to fix this feel free to create a PR.