-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add possibility to generate documentation on source-changes #615
Comments
Never mind. Should be possible, when a042e8a is released |
@nils-a I think we should open this again, just to make sure that it works as intended, once things have shipped. That way, it won't drop off the radar. |
@gep13 agreed. From looking at the diffs again I'm no longer sure whether the changes do what I suspected them to do at first glance or rather whether they enable/disable generation of source documentation at all. |
I'm guessing something like develop...nils-a:feature/GH-615 is needed. However, I can not get the current develop-branch of cake.recipe to work (i.e. not even the integration tests) so I'm not sure "what" the code does... (Hence, no PR at the moment...) |
@nils-a what issues are you seeing? If you can provide some more information we should hopefully be able to help. |
@gep13 on a vanilla clone, running
and while I'm guessing the error originates at https://github.com/cake-build/cake/blob/3e8bd7a7589d0e38e819011230aff215f8eef4ce/src/Cake.Core/Scripting/ScriptProcessor.cs#L104 I'm currently somewhat lost in tracking it down. |
Ah, so the build itself works, but the included integration tests don't. I "think" that actually makes sense. Those projects won't have been updated to include the Cake.Recipe 2.0 related changes, and likely other things, so I don't think that this is a showstopper. @AdmiringWorm has another repository that we have been using for testing out the changes to Cake.Recipe (https://github.com/cake-contrib/Cake.Recipe.Tests). For now, I wouldn't worry about running the local integration tests, but we will need to get these fixed up. |
@gep13 Thanks for the pointer - I wasn't even sure my code worked in the slightest (and it didn't..). So I needed some tests :-) |
… set When generating docs, Cake.Recipe should take into consideration whether or not changes in the project source code should result in updating the docs. This is especially important when building API documentation using Wyam.
currently
Publish-Documentation
checks for changes to documentation files in the current commit:https://github.com/cake-contrib/Cake.Recipe/blob/1.1.2/Cake.Recipe/Content/wyam.cake#L33-L46
It would be nice to have the ability to check for source-file changes, too. Probably add a new BuildParameter
ShouldGenerateDocumentationOnSrcChange
?One would have to include the
sourceDirectoryPath
and possibly exclude thetestDirectoryPath
.The text was updated successfully, but these errors were encountered: