module MyPackage
"""
Standard behavior.
"""
function do_something(x::Vector)
x .^ 3
end
end # module
with a CUDA extension:
module CUDAExt
import MyPackage: do_something
"""
Special CUDA behavior with such-and-such extra info for usage
"""
function do_something(x::CuVector)
x .^ 3
end
end # module
Obviously, I now want a page in my docs explaining the extra info regarding CUDA, including the CUDA-specific docstring. Is there an accepted way to do this?