Should Javadoc link to project site?
See original GitHub issueInspired 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:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I vote for including links.
I think that’s manageable. When creating the documentation for a feature, an entry has to be added to
docs-nav.yaml
:The URL is
/docs/$NAME-OF-THE-DOC-FILE
. For absolute URL, just prefix withhttps://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.