You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just stumbled upon conventional-github-releaser, having used standard-version for awhile and searching for a way to customize how the CHANGELOG.md is generated. It appears that the templating system may be provided by the underlying conventional-changelog tool, but I can't seem to find any documentation at any level of these tools which actually walks you through how to create a custom template. The help output says:
-c, --context A filepath of a javascript that is used to define template variables
... but I can't find any documentation as to what the contents of this file is supposed to look like. Are there some existing docs that I'm missing?
Thanks.
The text was updated successfully, but these errors were encountered:
It appears that the templating system may be provided by the underlying conventional-changelog tool
That is the case. You can customize the data used by the templates, and you can just straight up replace templates with your own custom.
I can't seem to find any documentation at any level of these tools which actually walks you through how to create a custom template
That is also correct. There is not, to my knowledge, any documentation explaining how to work with context and the templates settings to customize the CHANGELOG output.
If you run the tool with verbose output, conventional-github-releaser -v, it should print the "final context", which may give an indication of the keys to put in there. The trick with the JavaScript file is to use module exports like they do in the example file given for the --config-script option.
I've just stumbled upon conventional-github-releaser, having used standard-version for awhile and searching for a way to customize how the CHANGELOG.md is generated. It appears that the templating system may be provided by the underlying conventional-changelog tool, but I can't seem to find any documentation at any level of these tools which actually walks you through how to create a custom template. The help output says:
... but I can't find any documentation as to what the contents of this file is supposed to look like. Are there some existing docs that I'm missing?
Thanks.
The text was updated successfully, but these errors were encountered: