This is a user manual for an example project.
Introduction
This project does something. We just haven’t decided what that is yet.
Source Code
Java code from project
public boolean contains(String haystack, String needle) {
return haystack.contains(needle);
}
This page was built by the following command:
$ ./gradlew asciidoctor
Images
Attributes
Built-in
- asciidoctor-version
-
2.0.10
- safe-mode-name
-
unsafe
- docdir
-
/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-html-example/src/docs/asciidoc
- docfile
-
/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-html-example/src/docs/asciidoc/example-manual.adoc
- imagesdir
-
images
Custom
- project-version
-
1.0.0-SNAPSHOT
- sourcedir
-
/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-html-example/src/main/java
- endpoint-url
Includes
include::subdir/_b.adoc[]
content from src/docs/asciidoc/subdir/_b.adoc.
include::_c.adoc[]
content from src/docs/asciidoc/subdir/c.adoc.
Includes can be tricky! |
build.gradle
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.0'
}
apply plugin: 'java'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
}
asciidoctor {
baseDirFollowsSourceFile()
attributes \
'build-gradle': file('build.gradle'),
'sourcedir': project.sourceSets.main.java.srcDirs[0],
'endpoint-url': 'http://example.org',
'imagesdir': 'images',
'toc': 'left',
'icons': 'font',
'setanchors': '',
'idprefix': '',
'idseparator': '-',
'docinfo': 'shared'
}