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?

貢獻者指南