JuliaDocs/Documenter.jl

Easier doctests of non-exported functions

Open

#2,126 创建于 2023年5月21日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)Julia (910 star) (513 fork)batch import
Topic: UsabilityType: Enhancementhelp wanted

描述

Hello,

I've recently started adding more doctests to unexported functions in my code, and I seem to be repeating the same boilerplate-y setup quite a bit, e.g.

"""
    parsechecksum(checksum::String)
    
...text...

```jldoctest; setup = :(import DataToolkitCommon.Store.parsechecksum)
julia> parsechecksum("crc32c:9c0188ee")
(:crc32c, 0x9c0188ee)
```
"""

Is there some way this boilerplate could be avoided?

贡献者指南

Easier doctests of non-exported functions · JuliaDocs/Documenter.jl#2126 | Good First Issue