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.

Request details

(I’ve searched a lot but couldn’t find any requests related to this topic, so here I am, but sorry if it’s a duplicate)

My idea/request is simple:

Host JavaDoc pages from the maven repo -javadoc.jar file as a static page in an iframe. The iframe would be embedded in the main site on a separate route. (For security the headers would only allow iframes from the same-origin) This feature would also introduce a separate badge that would show the version of the latest JavaDoc available for a specified artifact or N/A if there are no available ones.

If it detects that the published artifact has a Javadoc generated along with it, with RegExp for example; the backend could extract the HTML content with the following: The -javadoc.jar file is actually just like a “zip”, it only contains the HTML pages. By running the command: jar xf *-javadoc.jar, it will extract the jar’s content into the folder it’s in. (* would be the artifact name).

(P.S: I’d create a pull request and implement it myself, but I don’t have much experience with Kotlin, Javalin, and especially with your codebase. Once I learn it - will probably do - I most likely come back and implement it myself, if someone else hasn’t implemented it by that time)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:34 (33 by maintainers)

github_iconTop GitHub Comments

1reaction
TOTHT0MIcommented, Jan 1, 2022

Rename java directory to kotlin in your sources 😃

Oh well… Yeah now it has a source so I assume it’s gonna boot up. The more you know, yeah forgot to do that when converting from java to Kotlin. Thanks.

1reaction
TOTHT0MIcommented, Dec 27, 2021

With Kotlin, you can just simply use reified function:

val mavenFacade = extensions().facade<MavenFacade>() // gets facade by generic type

But yeah, it misses standard class based getter for Java API. I’ll add in next release. Btw you’re trying to write it in Java or Kotlin?

Well first in Java, because I feel more comfortable with it, but I assume it can easily be converted into Kotlin down the line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javadoc.io: Free Java Doc hosting for open source projects
javadoc.io. javadoc hosting for open source projects hosted on Central Maven. free, CDN enabled, new versions auto-detected within 24 hours.
Read more >
Hosting for javadoc? [closed] - Stack Overflow
I have an open source project hosted on bitbucket. Bitbucket does not provide hosting for large number of small files (i. e. javadocs)....
Read more >
Host your JavaDoc's online in GitHub - Vaadin
When you build a release of your Java library with Maven, Maven automatically generates the javadocs in the target/apidocs folder of your ...
Read more >
Publishing Javadocs with Gradle
Another hosting platform that has become increasing popular is GitHub Pages. In this post you will learn how to generate Javadocs and ...
Read more >
javadoc-The Java API Documentation Generator
Generates HTML pages of API documentation from Java source files. This document contains Javadoc™ examples for Microsoft Windows. CONTENTS. Reference Guide.
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