-
Notifications
You must be signed in to change notification settings - Fork 0
Developer guide
Olivier Cots edited this page Oct 30, 2025
·
2 revisions
This tutorial explains how to develop a repository from the control-toolbox ecosystem, based on the template CTAppTemplate.jl.
We assume you have installed Julia and that your package is called MyAwesomePackage.jl.
- Navigate to the folder where you want to store the repository, e.g.:
cd ~/dev- Copy the SSH or HTTPS URL from GitHub (see screenshot):
- Clone the repository:
git clone the-url-you-have-copiedWe recommend using Visual Studio Code to develop:
VSCode
- Install the Julia extension.
- Optional but recommended extensions:
- GitHub Actions
- GitHub Markdown Preview
- Jupyter & Jupyter Notebook Renderers
- Markdown Preview for GitHub Alerts
- Open the folder of your package in VSCode:
- Open a terminal in VSCode and start Julia's interactive session:
using Pkg
Pkg.activate(".")
Pkg.test()Tip
To add unit tests, see the Unit Testing documentation.
- Open a terminal in VSCode and start Julia's interactive session.
- Run:
using Pkg
Pkg.activate("docs")
Pkg.develop(path=pwd()); include("docs/make.jl"); Pkg.rm("MyAwesomePackage")[!NOTE] Explanation of the three commands:
Pkg.develop(path=pwd()): Adds the package todocs/Project.tomlso it can be used indocs/make.jlor markdown files.include("docs/make.jl"): Builds the documentation indocs/build. Opendocs/build/index.htmlto view it.Pkg.rm("MyAwesomePackage"): Removes the package fromdocs/Project.tomlafter building.
Tip
Learn more about Documenter.jl for generating documentation from docstrings and markdown files.
✅ Quick summary
| Step | Action |
|---|---|
| Clone | git clone ... |
| Dev environment | Install VSCode + Julia extension |
| Unit tests | Pkg.activate("."); Pkg.test() |
| Build docs | Pkg.activate("docs"); Pkg.develop(...); include("docs/make.jl") |
📚 References: