Replies: 1 comment
-
super nice @ocots 👍🏽 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Set up a new control-toolbox application or package
This tutorial explains how to set up a new application or package in the control-toolbox ecosystem. We do not make any distinction between packages and applications concerning the setup since an application may become a package.
To find inspiration, you can visit some existing packages. For instance, check CTBase.jl or OptimalControl.jl. If you intend to add an application, please visit CalculusOfVariations.jl of Kepler.jl.
To make a new application / package, please follow these steps:
Step 1: Create a new Github repository using CTApp.jl as template
Hence, the application / package url should be:
Warning
You must give a name with
.jl
suffix.Step 2: Add keys and secrets
Warning
Don't forget to allow write access for the deploy key.
Settings > Secrets and variables > Actions
and add a new repository secret for coverage. GiveCODECOV_TOKEN
as name. For the secret, if the owner iscontrol-toolbox
please create an issue asking to set up coverage and add @ocots to the assignees.Step 3: Replace name and owner
Considering that the application / package name is
MyApp.jl
and the owner ismy-owner
, please update the following.control-toolbox/CTApp.jl
bymy-owner/MyApp.jl
in all the files.CTApp
byMyApp
in all the files.src/CTApp.jl
bysrc/MyApp.jl
.Note
You can remove the first sentence of the
README.md
file.Tip
We recommend to use
VSCode
to develop. Visit our Developer guide for basic dev usage.Step 4: Update metadata
.github/ISSUE_TEMPLATE
. Please updateassignees
in markdown files from this directory. The assignees are notified when a new issue is created. You can put your github name for instance.authors
inProject.toml
.UUID
inProject.toml
with the output ofStep 5: Activate discussions
Go to
Settings
and activate discussions.Step 6: Make your first release and deploy documentation
Settings > Actions > General
, scroll to the end of the page and in Workflow permissions, selectRead and write permissions
and checkAllow GitHub Actions to create and approve pull requests
. Don't forget to save.v0.1.0
. Give as titlev0.1.0
and click on "Generate release notes". Now, you can click on "Publish release".Note
When publishing a new release, please update the version in
Project.toml
to0.1.1
for instance before creating the new release.Note
In the
README.md
you can find two badges for thedev
andstable
documentations:The
dev
documentation is updated each time you push changes to themain
branch. Thestable
documentation is updated each time you make a new release.Step 7: Enter into control-toolbox ecosystem
If you are developping an application, you may appear in top menu of https://control-toolbox.org. Please create an issue for asking and assign @ocots.
Tip
You are now ready to add code, unit tests and documentation. Visit our Developer guide for basic dev usage.
Beta Was this translation helpful? Give feedback.
All reactions