help?> import
search: import export import_log isqrt ispow2 isperm insorted Cshort sort hypot
import
import Foo will load the module or package Foo. Names from the imported Foo
module can be accessed with dot syntax (e.g. Foo.foo to access the name
foo). See the manual section about modules for details.
julia>
The notation
import GLMakie as ma
for example is not mentioned at all. And the sentence “See manual section…” is missing a hyperlink.
Is it possible to add hyperlinks that work and keep working in the future to docstrings?
The @docs macro of the PkgOnlineHelp.jl package is designed for this purpose. By default, typing
julia> @docs SomePackage
will open your default browser to the package repository site. But you can customize it (only needs to be done once) so that typing the same thing takes you directly to the documentation of the package (or anywhere else you choose). For instance, I have mine set up so that
I think documentation should be helpful. Adding a link to the “full” documentation is definitely helpful, and it’s also probably not that hard. Users shouldn’t have to search “the manual” (beginners may not even know where to find “the manual” itself) or use third-party macro packages to access documentation for the Julia language itself or its standard library.
The obvious response here is “if it’s not that hard, why don’t you submit a PR adding the links?”, and that’s probably the right thing to do…