<?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.pebbletemplates</groupId>
    <artifactId>pebble-project</artifactId>
    <version>3.1.6</version>
  </parent>

  <artifactId>docs</artifactId>
  <packaging>pom</packaging>

  <name>Pebble docs</name>
  <description>Pebble documentation</description>
  <url>http://pebbletemplates.io</url>

  <properties>
    <orchid.version>0.17.4</orchid.version>
  </properties>

  <profiles>
    <profile>
      <id>doc</id>
      <build>
        <plugins>
          <plugin>
            <groupId>io.github.javaeden.orchid</groupId>
            <artifactId>orchid-maven-plugin</artifactId>
            <version>${orchid.version}</version>

            <!-- 1. Include all official Orchid plugins and themes -->
            <dependencies>
              <dependency>
                <groupId>io.github.javaeden.orchid</groupId>
                <artifactId>OrchidDocs</artifactId>
                <version>${orchid.version}</version>
              </dependency>
              <dependency>
                <groupId>io.github.javaeden.orchid</groupId>
                <artifactId>OrchidJavadoc</artifactId>
                <version>${orchid.version}</version>
              </dependency>
              <dependency>
                <groupId>io.github.javaeden.orchid</groupId>
                <artifactId>OrchidPluginDocs</artifactId>
                <version>${orchid.version}</version>
              </dependency>
              <dependency>
                <groupId>io.github.javaeden.orchid</groupId>
                <artifactId>OrchidGithub</artifactId>
                <version>${orchid.version}</version>
              </dependency>
            </dependencies>

            <!-- 3. Use the 'BsDoc' theme, and view the site locally at 'http://localhost:8080' -->
            <configuration>
              <theme>Editorial</theme>
              <version>${project.version}</version>
              <baseUrl>https://pebbletemplates.io</baseUrl>
            </configuration>

            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>deploy</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <!-- 2. Get Orchid from Jcenter, Bintray, and Jitpack -->
  <pluginRepositories>
    <pluginRepository>
      <id>jcenter</id>
      <url>https://jcenter.bintray.com </url>
    </pluginRepository>
    <pluginRepository>
      <id>kotlinx</id>
      <url>https://kotlin.bintray.com/kotlinx</url>
    </pluginRepository>
  </pluginRepositories>
</project>
