Code Monkey home page Code Monkey logo

markdown-doclet's Introduction

Broken and not maintained

A doclet to output javadoc as Markdown

This library provides a doclet to output the javadoc comments from Java source code to markdown.

This is probably the worst code I have ever written and has only one purpose: Get this javadoc into a CMS. The code is untested, ugly, does only halve of what the 'html javadoc' does - but it works good enough.

If you want to use this code as well, I might help adding some decency to it ;-)

The base was shamelessly stolen from the xml-doclet library by Markus Bernhardt.

Usage

If you are using maven you can use this library by adding the following report to your pom.xml:

<project>
	...
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<executions>
					<execution>
						<id>md-doclet</id>
					<phase>prepare-package</phase>
						<goals>
							<goal>javadoc</goal>
						</goals>
						<configuration>
							<doclet>name.neuhalfen.projects.markdowndoclet.MarkdownDoclet</doclet>
							<additionalparam>-d ${project.build.directory}/javadoc</additionalparam>
							<useStandardDocletOptions>false</useStandardDocletOptions>
							<docletArtifact>
								<groupId>name.neuhalfen.projects.markdowndoclet</groupId>
								<artifactId>markdown-doclet</artifactId>
								<version>0.0.1</version>
							</docletArtifact>
						</configuration>
					</execution>
				</executions>
			</plugin>
	...
</project>

Options

-d <directory>            Destination directory for output file.
                          Default: .

TODO

[x] Varargs [ ] Freemarker from a custom folder [ ] configure root url [ ] configure root package [ ] Java 8 [ ] Annotations for everything [ ] Fields [ ] Inherited everything

markdown-doclet's People

Stargazers

JohnnySun avatar Vasily avatar Krishnamurthy G B avatar

Watchers

James Cloos avatar Krishnamurthy G B avatar Jens Neuhalfen avatar  avatar

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.