-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#159, #72 - Restructuring of docs #436
Conversation
8deca4d
to
77e9eec
Compare
docs/src/index.md
Outdated
@@ -189,6 +189,10 @@ Depth = 2 | |||
|
|||
## Library Outline | |||
|
|||
```@docs | |||
LazySets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a comment: many people do not add a docstring to module LazySets
, in which case this @docs
is not needed -- by default julia will print the README.md of the package. i like this idea because it has some more info such as links to online documentation that our current Main module for
LazySets.jl -- a Julia package for calculus with convex sets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, then I vote for removing this @docs
. Otherwise we get a warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. can you do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,41 @@ | |||
# Functions with several methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of the file methods_fix.md
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add it, all the Documenter
warnings about missing documentation are gone. Of course this is dangerous, so I commented this line. But it can help find missing docs at least for new function/type names quickly. In particular, I finally managed to exclude the warnings about apply_recipe
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hooray 🙌
most if not all of these functions with several methods should be documented, such as constraints_list
. why does Documenter complain? since we include some (maybe not all) the variations of constraints_list
in the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the reason is described in #72. Documenter
just does not recognize methods with default values or where
syntax. Currently there is just no other way than manually searching for those docs. That is why I said that it is dangerous 😟
1753060
to
1d9b491
Compare
- sort functions (for consistency) - add missing docs - remove numeric type where possible
1d9b491
to
6eae1b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Titanic changeset, thanks for fixing!! 😄
here i only get:
> checking for missing docstrings.
!! 6 docstrings potentially missing:
LazySets.cartesian_product :: Tuple{LazySets.VPolytope,LazySets.VPolytope}
LazySets.cartesian_product :: Tuple{LazySets.HPolytope,LazySets.HPolytope}
Polyhedra.polyhedron :: Union{Tuple{LazySets.VPolytope{N},Any}, Tuple{LazySets.VPolytope{N}}, Tuple{N}} where N
Polyhedra.polyhedron :: Union{Tuple{LazySets.HPolytope{N},Any}, Tuple{LazySets.HPolytope{N}}, Tuple{N}} where N
Base.intersect :: Union{Tuple{LazySets.VPolytope{N},LazySets.VPolytope{N}}, Tuple{N}} where N<:Real
Base.intersect :: Union{Tuple{LazySets.HPolytope{N},LazySets.HPolytope{N}}, Tuple{N}} where N<:Real
Yes, these are only there with |
Closes #159. Workaround for #72.
Polyhedra.jl
. Should we remove them as well?Documenter
in case of multiple methods. As a workaround, I omit the hyperlinks when there are conflicts.p::Real=Inf
): This simply does not work.an_element(::LazySet{Real})
; for this case one can also create a hyperlink reference. On higher (interface/type) levels, one has to use thewhere
syntax in order to use the correct method; for this case there are no hyperlinks.where
syntax).array
function for array types (probably due to nested type parameters) and the functions with default values (norm
/radius
/diameter
) work.VPolytope.jl
andplot_recipes.jl
, probably because the documentation was not used before.