Skip to content

BUG?: References always have an errant second link #169

Closed

Description

@larsoner

Why do the references have a link that points nowhere? For example for this:

http://scipy.github.io/devdocs/generated/scipy.signal.windows.dpss.html#id1

Each ref is used once but there are two links, the second of which points to a tag that does not seem to exist.

Activity

  1. jnothman commented on Apr 11, 2018

    @jnothman
    Member
  2. larsoner commented on Apr 11, 2018

    @larsoner
    CollaboratorAuthor

    On master for my minimal example code min.zip it looks like:

    [1] | (1, 2) Hyvarinen, A., 1999. Fast and robust fixed-point algorithms for independent component analysis. IEEE transactions on Neural Networks, 10(3), pp.626-634.
    

    I checked out the commit that immediately preceded #136 (21a194e) and it still occurs and looks like:

    [R1] | (1, 2) Hyvarinen, A., 1999. Fast and robust fixed-point algorithms for independent component analysis. IEEE transactions on Neural Networks, 10(3), pp.626-634.
    

    So the problem appears to precede your PR.

  3. jnothman commented on Apr 11, 2018

    @jnothman
    Member
  4. larsoner commented on Apr 12, 2018

    @larsoner
    CollaboratorAuthor

    Secondly we only need this hack where a reference is not otherwise cited, but that solution may be a bit hacky.

    Maybe we should look at what HTML and LaTeX PDFs are produced by this only-add-ref-if-needed solution? It seems like the easier route.

  5. jnothman commented on Apr 12, 2018

    @jnothman
    Member
  6. jnothman commented on Jun 6, 2018

    @jnothman
    Member

    Another option might be to pass builder information into SphinxDocString and only generate this latex-only code if in a latex builder, rather than relying on reST directives.

  7. added a commit that references this issue on Jun 6, 2018
    fd6aeae
  8. jnothman commented on Jun 6, 2018

    @jnothman
    Member

    The fix in #180 simply removes backreferences where the reference does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions