Developing Guidelines
These guidelines are for the developers of this toolbox.
Guidelines
We should follow the following development guidelines:
Follow Semantic Versioning for version numbers
We don’t use MATLAB’s documentation system for publishing the toolbox documentation but host a versioned website generated with Sphinx online
Work on
devbranch, merge tomainonly on release
Releasing a new toolbox version
Follow the following steps to release a new version:
Update the
ToolboxVersioninproject.mAdd an entry for the new version in
CHANGELOG.rstIn MATLAB, run
make_releaseto package the.mltbxfile in thereleasefolderCommit your changes to the
devbranch (although it is a derived file, we will commit the.mltbxfile so that it can be picked up as release artifact) and pushdevto GitLabMerge branch
devintomainPush
mainto GitLab, it will trigger rebuild of documentation and if the version number is new it will create a tag and a releaseFetch tags with
git fetch origin --tagsPush
mainand tags to GitHub with:git push github main git push github --tags
It will trigger creating the release on GitHub. This new release will automatically create a new version on Matlab File Exchange.[not yet implemented, instead do these steps manually]Check if the Documentation has the new version, check Releases if the release is there, check File Exchange if the version was published