JuliaDocs/Documenter.jl

Easier doctests of non-exported functions

Open

#2126 aperta il 21 mag 2023

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)Julia (513 fork)batch import
Topic: UsabilityType: Enhancementhelp wanted

Metriche repository

Star
 (910 star)
Metriche merge PR
 (Merge medio 16g 9h) (3 PR mergiate in 30 g)

Descrizione

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?

Guida contributor