Uploaded image for project: 'Maven JXR'
  1. Maven JXR
  2. JXR-10

Create a named anchor for each symbol like Javadoc does

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jxr
    • Labels:
      None

      Description

      I want to reference source code from XDoc. By now I'm writing a link like this:
      <a href="./../xref/com/acme/foo/Foo.html#127">method here</a>

      The problem is, my link can lead to a wrong place just after a few cosmetic changes in source code. Of course, automatic link check will not guess the link went wrong.

      It would be nice to generate named anchors in XRef the same way Javadoc does, supporting a link like this from XDoc:
      <a href="./../xref/com/acme/foo/Foo.html#bar(Object)">method here</a>

      Another way to achieve the same result would be to parse Java comments to find a special expression to be transformed in a named anchor, but the Javadoc way seems more straightforward.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                laurentcaillette Laurent Caillette
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: