-
-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem including source code #3200
Comments
Did you add the |
I have |
it should be, however there could be a bug in this area :-) so I would like to ask you to give it a try. |
Thanks for this. I used the --sourcecode flag on the command line and things are starting to come together. With the default template some, but not all, of the source file were generated. All the source files were generated for the clean template. But in neither case did the files display - the error message |
I have a better idea of what is going on. As you have already explained you have to use the --sourcecode option. Using the default template, anything that isn't a Class doesn't display the source code. The source-view logic is missing from the generated file for all cases other than Classes (eg a file containing a single function doesn't display the source code):
Using the clean template, once you have drilled down into a file (ie select the FILE option in the right hand menu) then the code is displayed correctly but it doesn't display when trying to view the source from the list of functions under the top-level ToC. ENUMs are not documented using the clean template. There isn't an issue to do with not all the files being generated, at least not one that I can reproduce, I'm afraid that you have to put that down to senility - I apologise for that. |
The issues that you described for the default template should be resolved through PR #3284. As for the reported issue on the clean template; I haven't checked that out. But I do admit that issues in the default template have more priority for me as I only have so much time :) |
Template issue/request
I am having an issue including source code in the generated documentation. It may well be that I do not understand the functionality but there appears to be some sort of issue.
If I use the default template there are not any files generated under the artifact name defined in templates\default\template.xml (ie files/{{path}}.txt). I believe that this is because the source file templates/default/source/file.source.txt.twig does not exists (I'm not sure why that twig file is defined under the sub-directory source but that is a different matter).
If I use the clean template then files are generated under the artifact name but they are all empty. That may be because the template.xml for clean refers to transformation writer="twig" whereas the writer is sourcecode for the default template.
As an aside, because of the PHAR it is difficult to make changes to test these theories but that may well be as a result of my ignorance!
The text was updated successfully, but these errors were encountered: