GithubHelp home page GithubHelp logo

amadeusitgroup / asciidoctor-extension-apidoc Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 61 KB

AsciidoctorJ inline macro for linking to Javadoc

License: MIT License

Java 97.77% Shell 2.23%
asciidoctor-extension javadoc inline-macro asciidoctorj

asciidoctor-extension-apidoc's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar rquinio1a avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asciidoctor-extension-apidoc's Issues

Relative & base URIs

In the case where the Javadoc of a project is hosted alongside the documentation via HTML backend (for instance via a Maven site), relative URIs work well to link from the userguide to the corresponding version of the Javadoc:

org.acme=./apidocs/

But when the Asciidoctor backend is standalone (pdf, confluence page, ...), the URIs need to become absolute:

org.acme=http://myserver/myproject/apidocs/

Rather than using 2 apidocs.properties files and having some duplication, the feature would be to have a new attribute apidocs_baseuri that could be set only for the standalone backends in order to automatically prefix the relative URIs:

<apidocs_baseuri>http://myserver/myproject/</apidocs_baseuri>

CI is gone

Travis CI seems to have disappeared a while back.
Could be the opportunity to move to GitHub actions and automate deployment to Maven central.

Support for method-level Javadoc links

For instance:
org.springframework.web.cors.CorsConfiguration#addAllowedMethod(java.lang.String)
could be displayed as:
CorsConfiguration#addAllowedMethod(String)
and link to:
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html#addAllowedMethod-java.lang.String-

Tolerate missing trailing / in URLs

A frequent mistake is to forget the trailing / for Javadoc base URLs.
i.e.
javax=https://jakarta.ee/specifications/platform/8/apidocs
instead of
javax=https://jakarta.ee/specifications/platform/8/apidocs/

It would be nice if the plugin would auto-correct that mistake/be more flexible, rather than ending with a broken Javadoc link.

Javadoc links broken with module layout

Hello

apidoc seems to be broken when the javadoc is generated with the option that lays out the module inside the javadoc

When using the following following form `java.logging.Handler', apidoc generates the following link for the oracle website (using my configuration) : https://docs.oracle.com/en/java/javase/11/docs/api/java/util/logging/Handler.html
However, this has changed and the link above is broken: the module name whose java.logging.Handler belongs to is now used in the URI path of the resource it's the following :
https://docs.oracle.com/en/java/javase/11/docs/api/java.logging/java/util/logging/package-summary.html

Implementation idea :
module information is accessible using reflection, so it would be easy for any class of the JDK to layout the module in the javadoc.
However for other third-parties, access to the runtime classpath of the application is needed to generate the documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.