cake-build / website

:earth_americas: The Cake website: https://cakebuild.net
https://cakebuild.net
MIT License
42 stars 230 forks source link

Automation to make examples show pinned addin / tools directives #587

Open pascalberger opened 6 years ago

pascalberger commented 6 years ago

We get complaints from time to time from users which looked at XML code examples and copy/pasted the example into their buildscript without reading about the suggestion to pin addin and tool versions.

Some automated process would be nice to have examples always showing usage with latest version of the addin / tool. This would require to patch all documentation XML files before generating the API documentation and search for #addin and #tool usage there and replace it with the actual version of the specific addin or tool.

There are some points to consider though:

pascalberger commented 3 years ago

Extension page in the meantime shows how to add an addin to the different runners pinned to latest version (see e.g. https://cakebuild.net/extensions/cake-7zip/). We should therefore discourage repeating this information in XML comments in best practices.