[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Peleg Michaeli
Hi Travis, Thanks, I did not know that... On Thursday, 1 December 2016 16:35:55 UTC+2, Travis Scrimshaw wrote: > > Hey Peleg, >You should also only define the reference (i.e., the .. [XYZ] part) in > the master references file in doc/en/reference/references/index.rst. > > Best, > Travis > >

[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Travis Scrimshaw
Hey Peleg, You should also only define the reference (i.e., the .. [XYZ] part) in the master references file in doc/en/reference/references/index.rst. Best, Travis On Thursday, December 1, 2016 at 7:58:00 AM UTC-6, Sébastien Labbé wrote: > > $ cat file.rst > > Cite many times the same item

[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Sébastien Labbé
$ cat file.rst Cite many times the same item [ABCDEF]_ [ABCDEF]_ is okay. .. [ABCDEF] bibliography Many times the same item [XYZ]_ in bibliography in the same file is not okay. .. [XYZ] bibliography1 .. [XYZ] bibliography2 labbe@priminfo tmp $ rst2html file.rst file.html file.rst:9: (WARNING

[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Peleg Michaeli
But perhaps I have to be more precise. In the docstring I also have a link to the reference, something of the form [ABC123]_. I've read something about "anonymous links", but I am not sure I understood the difference. I keep searching. On Thursday, 1 December 2016 15:23:56 UTC+2, Peleg Michaeli

[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Peleg Michaeli
Yes. On Thursday, 1 December 2016 14:47:28 UTC+2, Dima Pasechnik wrote: > > did you try "make doc-clean" and then rebuilding the docs? > > On Thursday, December 1, 2016 at 11:58:12 AM UTC, Peleg Michaeli wrote: >> >> I have a method, and in the docsrting of this method I have references. I >> the

[sage-devel] Re: Alias causes "Duplicate explicit target name" when building docs

2016-12-01 Thread Dima Pasechnik
did you try "make doc-clean" and then rebuilding the docs? On Thursday, December 1, 2016 at 11:58:12 AM UTC, Peleg Michaeli wrote: > > I have a method, and in the docsrting of this method I have references. I > then want to alias the method. Something like this: > > class Class(object): >