Skip to content
Snippets Groups Projects
Commit 4d6b9874 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Basic asciidoc setup

parent 812bd033
No related branches found
No related tags found
No related merge requests found
= todo-list-eksempel
== Forord
Denne modulen i todo-list-eksemplet inneholder dokumentasjon tenkt brukt som læringsmateriell,
ikke vanlig doumentasjon rettet mot utviklere av den typen en forventer i tilsvarende prosjekter.
Dokumentasjonen er skrevet med https://asciidoctor.org/[Asciidoctor] og
bygget med image:images/maven-logo-black-on-white.png[Maven logo,60,link="https://maven.apache.org/"]
== Introduksjon
todolist/asciidocs/docs/images/maven-logo-black-on-white.png

9.54 KiB

<?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>
<!--
current a standalone module
<parent>
<groupId>it1901.todolist</groupId>
<artifactId>parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
-->
<groupId>it1901.todolist</groupId>
<artifactId>asciidocs</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>2.1.0</version>
<!--
<version>1.5.6</version>
-->
<configuration>
<sourceDirectory>docs</sourceDirectory>
<imagesDir>images</imagesDir>
<outputDirectory>target/asciidoc</outputDirectory>
<preserveDirectories>true</preserveDirectories>
<backend>html5</backend>
<sourceHighlighter>highlight.js</sourceHighlighter>
<attributes>
<toc>left</toc>
<sectnums>false</sectnums>
<project-version>${project.version}</project-version>
</attributes>
<resources>
<resource>
<!-- (Mandatory) Directory to copy from. Paths are relative to maven's ${baseDir} -->
<directory>docs/images</directory>
<!-- (Optional) Directory to copy to. By default uses the option `outputDirectory` -->
<targetPath>images</targetPath>
<!-- (Optional) NOTE: SVN, GIT and other version control files are excluded by default, there's no need to add them -->
<excludes>
<exclude>**/.txt</exclude>
</excludes>
<!-- (Optional) If not set, includes all files but default exceptions mentioned -->
<includes>
<include>**/*.png</include>
<include>**/*.jpg</include>
</includes>
</resource>
</resources>
</configuration>
<executions>
<execution>
<id>generate-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment