You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"WARNING: duplicate label" because of include #1668
I also notice that the link that is inserted for the reference, links me to included.html, so somehow it appears it is not completely included but also rendered as a separate document. Hence the duplicate definiton.
Ok, got it. The issue is that your included file is also found and read as a regular document since it matches the source_suffix. That's also why included.html exists.
You can either rename it (e.g. included.inc is popular) or add a pattern matching it to exclude_patterns.
Reacted by Lev Levitsky, Karl Bartel and Carles Cufí
Activity
birkenfeld commentedon Jan 15, 2015
If the label name is actually the same, this is expected.
includeworks as if the target file is put into the current file literally.tino commentedon Jan 25, 2015
Sorry, should have been clearer. There is only one label. See this gist: https://gist.github.com/tino/ae778c1795c1f199e0b0 (with a standard
conf.py, withsource_suffix = '.rst'andmaster_doc = 'index').I also notice that the link that is inserted for the reference, links me to
included.html, so somehow it appears it is not completely included but also rendered as a separate document. Hence the duplicate definiton.Appears on 1.2.3 as well as on 1.3b2.
birkenfeld commentedon Jan 25, 2015
Thanks for the feedback. I'll have a look.
birkenfeld commentedon Jan 25, 2015
Ok, got it. The issue is that your included file is also found and read as a regular document since it matches the
source_suffix. That's also whyincluded.htmlexists.You can either rename it (e.g.
included.incis popular) or add a pattern matching it toexclude_patterns.tino commentedon Jan 25, 2015
Ah, that sounds logical. I thought only the documents included in a toctree were included.
docs: simplify pycompwa website layout (#68)