Skip to content

SchweizerischeBundesbahnen/markdown2html-maven-plugin

Repository files navigation

Markdown to HTML Maven Plugin

This Maven plugin uses GitHub API for converting Markdown to HTML.

Build

This extension can be produced using maven:

mvn clean package

Usage

This plugin can be used in a maven project by adding the following to the pom.xml:

    <build>
        <plugins>
            <plugin>
                <groupId>ch.sbb.maven.plugins</groupId>
                <artifactId>markdown2html-maven-plugin</artifactId>
                <version>${markdown2html-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <id>readme.md-to-about.html</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>convert</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <inputFile>${project.basedir}/README.md</inputFile>
                    <outputFile>${project.basedir}/README.html</outputFile>
                    <tokenEnvVarName>GITHUB_TOKEN</tokenEnvVarName>
                </configuration>
            </plugin>
...
        </plugins>
    </build>

About

This Maven plugin uses GitHub API for converting Markdown to HTML

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages