Commit 2f9be28f authored by Matija Obreza's avatar Matija Obreza
Browse files

Build Anno PDF manual

parent 46da3175
<?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>org.genesys-pgr</groupId>
<artifactId>anno</artifactId>
<version>1.1-SNAPSHOT</version>
</parent>
<artifactId>anno-docs</artifactId>
<name>Genesys Uploader documentation</name>
<description>.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>1.5.6</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
<asciidoctorj.version>1.5.6</asciidoctorj.version>
<jruby.version>9.1.8.0</jruby.version>
</properties>
<build>
<defaultGoal>process-resources</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>create-buildNumber</id>
<phase>validate</phase>
<goals>
<goal>create</goal>
<goal>create-timestamp</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- first check to see if you have locally modified files, and will
fail if there are any. -->
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<shortRevisionLength>8</shortRevisionLength>
<timestampFormat>{0,date,d MMMM yyyy}</timestampFormat>
<timestampPropertyName>buildDate</timestampPropertyName>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
<!-- Comment this section to use the default jruby artifact provided by the plugin -->
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
</dependency>
<!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
<!-- Attributes common to all output formats -->
<attributes>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<buildNumber>${buildNumber}</buildNumber>
<buildDate>${buildDate}</buildDate>
<buildBranch>${scmBranch}</buildBranch>
<projectArtifact>${project.artifactId}</projectArtifact>
<projectVersion>${project.version}</projectVersion>
<snippets>${snippetsDirectory}</snippets>
</attributes>
</configuration>
<executions>
<!-- <execution>
<id>generate-pdf-doc-default-theme</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<outputDirectory>${project.build.directory}/generated-docs-default-theme</outputDirectory>
<sourceHighlighter>coderay</sourceHighlighter>
<doctype>book</doctype>
<attributes>
<icons>font</icons>
<pagenums/>
<toc/>
<idprefix/>
<idseparator>-</idseparator>
</attributes>
</configuration>
</execution> -->
<execution>
<id>generate-pdf-custom-theme</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<sourceDocumentName>manual.adoc</sourceDocumentName>
<outputFile>${project.build.directory}/anno-manual-${project.version}.pdf</outputFile>
<!-- <outputDirectory>${project.build.directory}/generated-docs-custom-theme</outputDirectory> -->
<sourceHighlighter>coderay</sourceHighlighter>
<doctype>book</doctype>
<attributes>
<pdf-stylesdir>${project.basedir}/src/theme</pdf-stylesdir>
<pdf-style>custom</pdf-style>
<icons>font</icons>
<pagenums/>
<toc/>
<idprefix/>
<idseparator>-</idseparator>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Genesys Anno User Manual
========================
October 2017: Commit {buildNumber}
:revnumber: {projectVersion}
:revnumber: {projectVersion} {buildNumber}
:revremark: {buildNumber}
:revdate: {buildDate}
:doctype: book
:toc: left
:toclevels: 5
:icons: font
:numbered:
:chapter-label:
:source-highlighter: pygments
:pygments-css: class
:pygments-linenums-mode: table
:author: Genesys Helpdesk
:email: helpdesk@genesys-pgr.org
[[intro]]
Introduction
------------
*Anno* is a standalone Java application for managing accession-level data on
Genesys upload tool *Anno* is a standalone Java application for managing accession-level data on
Genesys PGR - global database on PGR in world's genebanks. Genesys database is
accessible at https://www.genesys-pgr.org .
......@@ -38,4 +43,4 @@ include::sections/datasources.adoc[]
include::sections/mapping.adoc[]
include::sections/push.adoc[]
include::sections/troubleshooting.adoc[]
include::sections/ack.adoc[]
// include::sections/ack.adoc[]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment