# Documenter.jl: @ref a specific method of a function

**URL:** <https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792>\
**Category:** General Usage\
**Tags:** documentation, documenter\
**Created:** [February 3, 2018, 9:48am UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792 "2018-02-03T09:48:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [February 3, 2018, 9:48am UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792/1 "2018-02-03T09:48:47Z")

</div>

Let’s say I have two methods

```julia
"""
    f(x::Integer)

Integer version of `f`.
"""
f(x::Integer) = println("I'm an integer!")

"""
    f(x::Float64)

Float64 version of `f`.
"""
f(x::Float64) = println("I'm floating!")

```

and produce doc entries for those methods in my documentation using Documenter.jl’s `@autodocs` or `@docs`.

**How can I refer (with `@ref`) to one of the methods?**

I’m searching for something like `[integer version](@ref f(::Integer))` (which unfortunately does not work) rather than just `[function f](@ref f)` or `[f](@ref)`.

Note that for generating the doc entries `@docs` has a similar feature. From the [guide page](https://juliadocs.github.io/Documenter.jl/stable/man/guide/#Filtering-Included-Docstrings-1):

> […] include the type in the signature with
> 
> ````
> ```@docs
> length(::T)
> ```
> 
> ````

Thanks in advance.

x-ref: [julia - Documenter.jl: @ref a specific method of a function - Stack Overflow](https://stackoverflow.com/questions/48595976/documenter-jl-ref-a-specific-method-of-a-function)  
x-ref: [docs Block Methods · Issue #569 · JuliaDocs/Documenter.jl · GitHub](https://github.com/JuliaDocs/Documenter.jl/issues/569#issuecomment-362760811)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 3, 2018, 11:01am UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792/2 "2018-02-03T11:01:00Z")

</div>

also x-ref [https://github.com/JuliaDocs/Documenter.jl/issues/569#issuecomment-362760811](https://github.com/JuliaDocs/Documenter.jl/issues/569#issuecomment-362760811) where you also asked.

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [February 3, 2018, 12:51pm UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792/3 "2018-02-03T12:51:06Z")

</div>

Oh, thanks.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 3, 2018, 5:22pm UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792/4 "2018-02-03T17:22:29Z")

</div>

In general, please don’t spam multiple forums with the same question.

---

<div class="post-metadata">

**Author:** ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Post date:** [February 3, 2018, 10:08pm UTC](https://discourse.julialang.org/t/documenter-jl-ref-a-specific-method-of-a-function/8792/5 "2018-02-03T22:08:02Z")

</div>

You would normally refer to a function with `[`f`](@ref)`, with the name of the function being referred to between backticks in text part of the link. You can then also refer to specific signatures, e.g. with `[`f(::Integer)`](@ref)`.
