JuliaDocs/Documenter.jl

Easier doctests of non-exported functions

开放

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

 (9 条评论) (0 个反应) (0 位负责人)Julia (513 个派生)batch import
Topic: UsabilityType: Enhancementhelp wanted

仓库指标

星标
 (910 个星标)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 3 个 PR)

描述

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?

贡献者指南