# Linking to exactly one documentation in @docs of Documenter.jl

**URL:** <https://discourse.julialang.org/t/linking-to-exactly-one-documentation-in-docs-of-documenter-jl/31865>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [December 4, 2019, 5:09pm UTC](https://discourse.julialang.org/t/linking-to-exactly-one-documentation-in-docs-of-documenter-jl/31865 "2019-12-04T17:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [December 4, 2019, 5:09pm UTC](https://discourse.julialang.org/t/linking-to-exactly-one-documentation-in-docs-of-documenter-jl/31865/1 "2019-12-04T17:09:01Z")

</div>

I would like to refer to exactly one version of a function that is implemented for several subtypes in Documenter, see  
[here](https://github.com/JuliaNLSolvers/Manifolds.jl/blob/master/docs/src/manifolds/symmetricpositivedefinite.md). Especially the line 28 which reads

```julia
manifold_dimension(::SymmetricPositiveDefinite{N}) where N

```

and I hoped that this would just produce the documentation for this one type (see [here](https://github.com/JuliaNLSolvers/Manifolds.jl/blob/master/src/SymmetricPositiveDefinite.jl#L72) for its definition).  
But currently it prints all available implementations from within `Manifold.jl`, see [here](https://julianlsolvers.github.io/Manifolds.jl/latest/manifolds/symmetricpositivedefinite.html#ManifoldsBase.manifold_dimension-Union%7BTuple%7BSymmetricPositiveDefinite%7BN%7D%7D,%20Tuple%7BN%7D%7D%20where%20N). Even the Link of the anchor mentions the right signature, but the result prints all.

I am sorry for not being able to narrow that down to an MWE but I hoped that the exact signature would restrict the documentations to exactly this one case. Why is that not happening?

Or phrased differently (something that would also solve the problem): Is it possible to restrict a `@docs`-block to just one file (like one can to for `@autodocs`)? That would be great, too.

---

<div class="post-metadata">

**Author:** ![thofma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thofma/32/1691_2.png) [@thofma](https://discourse.julialang.org/u/thofma)\
**Post date:** [December 4, 2019, 6:52pm UTC](https://discourse.julialang.org/t/linking-to-exactly-one-documentation-in-docs-of-documenter-jl/31865/2 "2019-12-04T18:52:52Z")

</div>

[https://github.com/JuliaDocs/Documenter.jl/issues/839](https://github.com/JuliaDocs/Documenter.jl/issues/839) might be relevant.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [December 4, 2019, 7:00pm UTC](https://discourse.julialang.org/t/linking-to-exactly-one-documentation-in-docs-of-documenter-jl/31865/3 "2019-12-04T19:00:19Z")

</div>

Yes, thanks for the link; I think my situation is a little bit different, though. Extending your example I have the following (I think):

```julia
struct A{T} <: Number end
struct B{T} <: Number end
"""Number""" foo(x::Number) = x; # 1
"""A{T}""" foo(x::A{T}) where {T} = x; # 2
"""B{T}""" foo(x::B{T}) where {T} = x; # 3

```

and

````julia
```@docs
foo(x::A{T}) where T
```

````

prints both `#2` _and_`#3` (if I am not mistaken) in my case.
