# Documenter.jl: Missing Docstring (random?)

**URL:** https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619
**Category:** General Usage
**Tags:** documenter
**Created:** [July 14, 2023, 12:36pm UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619 "2023-07-14T12:36:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [July 14, 2023, 12:36pm UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619/1 "2023-07-14T12:36:43Z")

</div>

In [this package](https://github.com/m3g/ProteinSecondaryStructures.jl), I reference some doc strings, as usual with `@docs` macro.

Locally, using the `LiveServer.servedocs()`, some docstrings do not show up, but some of these show up when the documentation is actually deployed.

Specifically, this doc string:

> <https://github.com/m3g/ProteinSecondaryStructures.jl/blob/c1daf1bdff20ef296e6dfa35326b1f2dd008364c/docs/src/explanation.md?plain=1#L48>

shows correctly in the deployed docs:

[https://m3g.github.io/ProteinSecondaryStructures.jl/stable/explanation/#Data-structure](https://m3g.github.io/ProteinSecondaryStructures.jl/stable/explanation/#Data-structure)

But **the same** doc string, in a different page:

> <https://github.com/m3g/ProteinSecondaryStructures.jl/blob/c1daf1bdff20ef296e6dfa35326b1f2dd008364c/docs/src/reference.md?plain=1#L5>

Does not show up:

[https://m3g.github.io/ProteinSecondaryStructures.jl/stable/reference/#Basic-data-structure](https://m3g.github.io/ProteinSecondaryStructures.jl/stable/reference/#Basic-data-structure)

What may be going on? Any insight?

---

<div class="post-metadata">

### Author: ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)
#### Post date: [July 15, 2023, 11:34am UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619/2 "2023-07-15T11:34:59Z")

</div>

I think Documenter only shows docstrings once. In [Syntax · Documenter.jl](https://documenter.juliadocs.org/stable/man/syntax/#@docs-block) it says it should error though if there are repeats.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [July 15, 2023, 11:44am UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619/3 "2023-07-15T11:44:30Z")

</div>

Uhm, but actually I was getting the error before the duplicate (and not only with that function). I thought that the example with the duplicate would help, but seems I introduced another variable.

---

<div class="post-metadata">

### Author: ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)
#### Post date: [July 15, 2023, 11:51am UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619/4 "2023-07-15T11:51:55Z")

</div>

Ah ok, in that case I’m not sure. I’ve been confused before by docstrings not showing up because they were inadvertent duplicates, so that’s the first thing I’d check for. Otherwise no idea. Maybe some kind of revise/file watching issue with LiveServer? In which case restarting the Julia session could help.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [July 16, 2023, 6:41pm UTC](https://discourse.julialang.org/t/documenter-jl-missing-docstring-random/101619/5 "2023-07-16T18:41:29Z")

</div>

Indeed, removing the duplicate `@docs` call to that entry solves the deployed version. I get errors locally with that and other functions, when using LiveServer. I’ll try to figure out what’s going on, but it is less relevant now that the issue does not appear in the published docs.
