JuliaDocs/Documenter.jl

Easier doctests of non-exported functions

オープン

#2,126 opened on 2023/05/21

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (513 件のフォーク)batch import
Topic: UsabilityType: Enhancementhelp wanted

Repository metrics

Stars
 (910 個のスター)
PR merge metrics
 (平均マージ 16d 9h) (30d で 3 merged PRs)

説明

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?

コントリビューターガイド