-
Notifications
You must be signed in to change notification settings - Fork 364
Extra doc tips
Many functions in CasADi have links in their documentation.
E.g. Python help(casadi.substitute)
or Matlab help casadi.subsitute
may show lines like this:
Extra doc: https://github.com/casadi/casadi/wiki/L_1cm
Doc source:
https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L673
Implementation:
https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L673-L676
The Extra doc
link leads to a wiki page, editable by anyone.
In principle, everything. It's a wiki right.
Do note that the 'Standard documentation for ...' section is auto-generated from source (Doc source link). Your edits in this section will be lost when a new release happens.
The 'Extra documentation' section is the best place to write additions.
The purpose of the 'Extra documentation' is to present the community with a low-barrier mechanism to add documentation (not needing to delve into source code and work with pull requests). Information you add here may end up in the official source code eventually.
Anything that may have helped you when you first set out to understand a certain function:
- minimal examples
- typical use
- caveats
- links to literature
- links to other software frameworks
Not necessarily, no. The 'Extra documentation' is a community effort. We do not monitor changes in the wiki.
Navigate to the Doc source link, and make a pull request. Here is an example of a commit that edits documentation source: https://github.com/casadi/casadi/commit/a66c7b28d56a745aaa5c9b7e128139f9c1b99d4a