<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>io.github.bwtrobot</groupId>
    <artifactId>urobot-opensdk-java</artifactId>
    <version>3.2.0</version>
  </parent>
  <artifactId>urobot-opensdk-doc</artifactId>
  <version>3.2.0</version>
  <packaging>pom</packaging>
  <name>uRobot OpenSDK Developer Guide</name>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.3.1</version>
        <executions>
          <execution>
            <id>copy-offline-assets</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/generated-docs/assets</outputDirectory>
              <resources>
                <resource>
                  <directory>${project.basedir}/src/docs/asciidoc/assets</directory>
                  <filtering>false</filtering>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctor-maven-plugin</artifactId>
        <version>${asciidoctor-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>generate-html-doc</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>process-asciidoc</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <backend>html5</backend>
          <sourceDirectory>${project.basedir}/src/docs/asciidoc</sourceDirectory>
          <sourceDocumentName>index.adoc</sourceDocumentName>
          <outputDirectory>${project.build.directory}/generated-docs</outputDirectory>
          <attributes>
            <toc>left</toc>
            <toclevels>3</toclevels>
            <source-highlighter>highlight.js</source-highlighter>
          </attributes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
