I was able to replace kw_str
’s doc simply by re-declare it. But this does not work for Projects, e.g
module TestProject
import Base.BaseDocs: @kw_str
"""
aaa
"""
kw""
end # module
If you simply run this in REPL, and ?
+ enter, the kw""
's docstring is replaced.
But not for projects, if simply ] generate TestProject
and write this in module, then start with the
project by
julia --project
in the project folder, using the module doesn’t change anything
julia> using TestProject
nothing changed. So how can I replace the doc string by using a project? This breaks the behavior of our localization package: GitHub - JuliaCN/JuliaZH.jl: Julia语言中文文档