File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # JavaDoc Source Embed
2+
3+ JavaDoc is a wonderful tool with some annoying limitations, one of them is its inability to handle source code embeds.
4+ [ Githubs gist] ( http://gist.github.com/ ) is an amazing tool for embeding source code but it requires JavaScript which means
5+ it doesn't work with the popups in common IDE's and isn't as searchable.
6+
7+ Gist makes source embedding trivial since you can embed a single sample in multiple methods/classes and manage the sample
8+ itself in a centeral location.
9+
10+ The JavaDoc source embed tool allows you to use gist embeds directly in your javadoc without any change! When you want to
11+ generate local JavaDoc for use in the IDE it queries github for the gist contents and embeds it as a ` <noscript> `
12+ alternative right into the code.
13+
14+ Just pass the source directory and an output directory to the jar file and then generate the javadoc based on the output
15+ directory.
You can’t perform that action at this time.
0 commit comments