Hi, The warnings come from that sphinx processed foo.rst twice. So please rename it to non .rst file or add it to exclude_patterns.
Thanks, Takeshi KOMIYA 2017-03-18 7:46 GMT+09:00 vibebusiness3 <[email protected]>: > Hello, > > I have a file called "chapter.rst" which is included in my index.rst > toctree. Here are the contents of chapter.rst: > > $ cat chapter.rst > ******* > Chapter > ******* > > .. include:: foo.rst > > Now, here are the contents of foo.rst: > > $ cat foo.rst > .. c:function:: int foo(void) > > Here is the warning I get when typing "make html": > > foo.rst:1: WARNING: duplicate C object description of foo, other instance in > /path/doc_sphinx/foo.rst > /path/doc_sphinx/foo.rst:1: WARNING: duplicate C object description of foo, > other instance in /path/doc_sphinx/chapter.rst > > Strangely, if I rename foo.rst to foo.txt, the warning disappears. So I only > get the warning if foo.rst has an "rst" suffix. Since foo.rst really is an > RST file, I would like to keep the suffix intact - does anyone know how to > fix this error? > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
