Documentation improvements
p3lim opened this issue ยท 6 comments
- options are already optional, drop the
?
from the type, suggesting something else than the type could be provided - when the option requires a specific value, explicitly note the value instead of the type
- e.g.
('asc'|'desc'|nil)
instead of(string?) ['asc', 'desc']
(current) - right-most type is the default value (typically
nil
)
- e.g.
- types should be presented before the explanation of the option
- e.g.
(string|nil) ...
instead of... (string?)
(current)
- e.g.
We also need to (finally) export the documentation.
The doc in stagger may need to be improved as well.
Line 140 in 5a201c9
The UNIT_AURA can only be registered if you hide the stagger by default.
It took me a while to figure out why my stagger bar was not updating.
If I follow the example doc in stagger, the bar won't be able to update.
I have to add "Stagger:Hide()".
Nope, this is something I've broken here, it is not the docs. Will fix in about an hour.