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