Code Monkey home page Code Monkey logo

Comments (6)

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

For the moment, you can include the image by adding a regular HTML <img> tag in your JavaDoc. The URL can be relative to the html, or you can define an imagedir to be used.

For the 2.0 version, we're looking at options for automatic inclusion in the generated HTML documentation.

from umldoclet.

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

Before the final 2.0.0 release, we should at least look into the feasibility of providing an automated feature for this.

from umldoclet.

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

I think a feasible strategy is to implement a custom Taglet and provide it to the Standard doclet when generating the HTML

from umldoclet.

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

😞 A taglet cannot be added from the same path specification as the doclet.
This requires either a different Jar purely for adding the UML image to the HTML or adding the doclet jar to both the docletPath and the tagletPath when running Javadoc.

Maybe a post-processing phase to manipulate the HTML isn't such a bad idea after all; this is the approach followed by others as well.

from umldoclet.

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

Cursory investigation shows that for generated Javadoc class HTML, simply replacing the first

<hr>

by

<hr>
<img src="MyClass.svg" alt="MyClass class diagram" style="float: right;">

may turn out quite satisfactory...

from umldoclet.

sjoerdtalsma avatar sjoerdtalsma commented on May 25, 2024

Now also available on JDK 1.7 + 8: use UML doclet version 1.1.0

from umldoclet.

Related Issues (20)

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.