Closed timconner closed 4 years ago
Thanks for pointing out this issue. Unfortunately, this documentation was not updated for quite a time, the site itself is created with old version of Statie, so there may be differences, as you noted. Could you create a PR with updated page about generators?
I might take that up. I am having some other issues with generators at the moment and need to work through that first.
Thanks.
Hi, author of Statie decided to shut down the project and replace it with a Symfony package:
Now I do not see a reason to put more effort into the documentation. I'll add notification on the web soon.
The documentation on statie.org for Generators says that you can create your own object file and the example shows the class extending
Symplify\Statie\Renderable\File\AbstractFile
.However, when trying to do that, you will get this build error:
I wasn't sure if this restriction was supposed to be imposed or not. If so, here is a working skeleton for a custom generator. It's basically the PostFile with some of the Post stuff stripped out.