com.github.codemonstur:slate4j

A Java maven plugin for compiling slate documentation.

License

License

GroupId

GroupId

com.github.codemonstur
ArtifactId

ArtifactId

slate4j
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

com.github.codemonstur:slate4j
A Java maven plugin for compiling slate documentation.
Project URL

Project URL

https://github.com/codemonstur/slate4j
Source Code Management

Source Code Management

https://github.com/codemonstur/slate4j

Download slate4j

How to add to project

<plugin>
    <groupId>com.github.codemonstur</groupId>
    <artifactId>slate4j</artifactId>
    <version>0.2.0</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
com.vladsch.flexmark : flexmark-all jar 0.50.46
org.jsoup : jsoup jar 1.12.1
com.google.code.gson : gson jar 2.8.6
org.apache.maven : maven-plugin-api jar 3.0
org.apache.maven : maven-project jar 2.2.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status GitHub Release Maven Central MIT Licence

Slate4j

Produces an HTML file that looks similar and has the same functionality as slate. The output isn't exactly the same but is close enough to work with.

These are the known changes and issues:

  • The search icon isn't there
  • The syntax highlighting works with a different library and in a different way
  • Images are inlined
  • It is not possible to override all the code the way you can in slate

The big benefit of this code is that it is nothing more than a self contained maven plugin. No need to install ruby or node or mess around with docker trying to get the original slate to work.

Configuration

Add this to the pom:

<plugin>
  <groupId>com.github.codemonstur</groupId>
  <artifactId>slate4j</artifactId>
  <version>0.1.0</version>
  <executions>
    <execution>
      <phase>generate-resources</phase>
      <goals><goal>compile</goal></goals>
    </execution>
  </executions>
</plugin>

Slate4j will read slate markdown from src/main/docs/index.html.md. And generate output in target/classes/docs/index.html.

Versions

Version
0.2.0
0.1.0