Generating documents is always not the most pleasant job but it can be made easier by using easier markup language like Markdown. For that purpose I made last year a simple Markdown to HTML Page Generator Maven Plugin and now it’s also available in Maven Central.
“Markdown to HTML Page Generator” is a simple Maven Plugin which reads the input directory for Markdown files with .md suffix and outputs HTML files to target directory. There are couple of configuration options to set the input/output directories and if you want to add header and footer files to make it structurally valid HTML. The plugin uses pegdown Markdown processor.
Maven plugin artifacts can be found in Sonatypes’ OSS Maven repository:
- Snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/ruleoftech/markdown-page-generator-plugin/
- Releases: https://oss.sonatype.org/content/groups/public/com/ruleoftech/markdown-page-generator-plugin/
Read more about the plugin and how to use it from markdown-page-generator-plugin’s GitHub page.