# Documenter is warning of "duplicated docs", but it isn't?

**URL:** <https://discourse.julialang.org/t/documenter-is-warning-of-duplicated-docs-but-it-isnt/109004>\
**Category:** Package Management\
**Tags:** documenter\
**Created:** [January 19, 2024, 10:18am UTC](https://discourse.julialang.org/t/documenter-is-warning-of-duplicated-docs-but-it-isnt/109004 "2024-01-19T10:18:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [January 19, 2024, 10:18am UTC](https://discourse.julialang.org/t/documenter-is-warning-of-duplicated-docs-but-it-isnt/109004/1 "2024-01-19T10:18:43Z")

</div>

For any (sub-)module of my package, I want a documentation page with:

1. High-level documentation of the module
2. Index of the exported functions
3. Detailed doc of each exported function

I currently implement the page source like:

```julia

# [The BetaML.Nn Module](@id nn_module)

` ` `@docs
Nn
` ` `

## Module Index

` ` `@index
Modules = [Nn]
Order = [:function, :constant, :type, :macro]
` ` `
## Detailed API

` ` `@autodocs
Modules = [Nn]
Private = false
` ` `

```

This is rendered correctly, in this example as [Nn · BetaML.jl Documentation](https://sylvaticus.github.io/BetaML.jl/stable/Nn.html)

However, Documenter complains with:

````julia
┌ Warning: duplicate docs found for 'BetaML.Nn' in src/Nn.md:15-18
│ ```@autodocs
│ Modules = [Nn]
│ Private = false
│ ```

````

Is there a better way to achieve the documentation in the format I wish ? If I remove the index part, I have no index, if I remove the autodoc part, I have no doc for the functions (and other objects)…
