<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>io.nessus</groupId>
        <artifactId>nessus-ipfs</artifactId>
        <version>1.0.0.Beta2-SP1</version>
    </parent>

    <artifactId>nessus-ipfs-docs</artifactId>
    <packaging>pom</packaging>

    <name>Nessus :: IPFS :: docs</name>

    <!-- Build -->
    <build>
        <plugins>
            <plugin>
                <groupId>com.ruleoftech</groupId>
                <artifactId>markdown-page-generator-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <inputDirectory>${basedir}/src/markdown</inputDirectory>
                    <outputDirectory>${basedir}/target/docs/html</outputDirectory>
                    <headerHtmlFile>${basedir}/src/html/header.html</headerHtmlFile>
                    <footerHtmlFile>${basedir}/src/html/footer.html</footerHtmlFile>
                    <copyDirectories>css,trail/img</copyDirectories>
                    <recursiveInput>true</recursiveInput>
                    <transformRelativeMarkdownLinks>true</transformRelativeMarkdownLinks>

                    <!-- https://github.com/walokra/markdown-page-generator-plugin -->
                    <pegdownExtensions>FENCED_CODE_BLOCKS</pegdownExtensions>

                    <!--
                        $ ipfs add -r ipfs/docs/target/docs/html
                        ...
                        added QmXiMZcMSWBkLSTwUMpHjCLop7arjAGAVZvtdCUDF6ut1e html
                    -->
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
