question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should Javadoc link to project site?

See original GitHub issue

Inspired by @smoyer64’s question on PR #110, I want to discuss whether Javadoc on classes should link to the documentation of the corresponding feature on the project site.

E.g. should “Vintage @Test” link here with a line like this:

/**
 * [...]
 *
 * For more details and examples, see
 * <a href="https://junit-pioneer.org/docs/vintage-test/" target="_top">the documentation on <code>@Test</code></a>
 */

I think this is a good idea. What does everybody else think?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Bukamacommented, Feb 1, 2020

I vote for including links.

2reactions
nipafxcommented, Oct 21, 2019

I think that’s manageable. When creating the documentation for a feature, an entry has to be added to docs-nav.yaml:

  - title: Features
    children:
      - title: "Vintage @Test"
        url: /docs/vintage-test/
      - title: "TempDirectory"
        url: /docs/temp-directory/
      - title: "@DefaultLocale and @DefaultTimeZone"
        url: /docs/default-locale-timezone/
      - title: "@RepeatFailedTest"
        url: /docs/repeat-failed-test

The URL is /docs/$NAME-OF-THE-DOC-FILE. For absolute URL, just prefix with https://junit-pioneer.org.

If we settle on this approach, the contribution documentation needs to be updated anyway - I will make sure to include that explanation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linking to an External URL in Javadoc - Baeldung
To summarize, @link is preferred when we use a class or method name in the description.
Read more >
Javadoc link to src/main/resource or src/test/resource file ...
The answer here Link to text file (resource) in Javadoc does not help as an absolute path would be too fragile. Is there...
Read more >
Apache Maven Javadoc Plugin – Configuring links and ...
Important Note: according the Javadoc specifications, all given links should have a fetchable /package-list file. Since 2.6, you could try to ...
Read more >
How to Write Doc Comments for the Javadoc Tool - Oracle
A doc comment is written in HTML and must precede a class, field, constructor or method declaration. It is made up of two...
Read more >
Invalid reference" warning for @link to Java package - Bugs
Create a Javadoc link to a package, e.g. {@link java.util.zip}. 2. Under Window, Preferences, Java, Compiler, Javadoc, ensure that: a) "Process Javadoc comments ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found