So I am using this plugin for generating javadocs:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
and to generate the docs I use: mvn javadoc:javadoc
and I get something like this:
I have two questions:
Is there a way to put an
<a>
or<div>
in the html sections so that I can hyperlink to it using this technique? https://stackoverflow.com/a/2835151/1223975I need to include a javascript tag in each html file for the generated javadocs. Is there a way to tell the plugin to include this script tag in each html file? In the
<head>
? Or really anywhere since it's for styling.
For example, to solve #2, I tried adding this above each class in my project:
/*
* <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
**/
public class Foo {}
but that didn't seem to work, the script tag doesn't get added to the html.