Introduction

Hello, Asciidoctor and Github Pages.

This page was built by the following command:

$ ./gradlew asciidoctor

Attributes

Built-in
asciidoctor-version

1.5.4

safe-mode-name

unsafe

docdir

/home/travis/build/rwinch/asciidoctor-gradle-examples/asciidoc-to-github-pages-example/src/docs/asciidoc

docfile

/home/travis/build/rwinch/asciidoctor-gradle-examples/asciidoc-to-github-pages-example/src/docs/asciidoc/example-manual.adoc

Custom
project-version

1.0.0-SNAPSHOT

endpoint-url

http://example.org

build.gradle

plugins {
  id 'org.ajoberstar.github-pages' version '1.1.0'
  id 'org.asciidoctor.gradle.asciidoctor' version '1.5.1'
  id 'org.asciidoctor.convert' version '1.5.3'
}

githubPages {
  repoUri = '' // Set this to the destination repo

  credentials {
    username = project.hasProperty('githubToken') ? project.githubToken : ''
    password = ''
  }

  pages {
    from file(asciidoctor.outputDir.path + '/html5')
  }
}

version = '1.0.0-SNAPSHOT'

asciidoctorj {
    version = '1.5.4'
}

asciidoctor {
  attributes 'build-gradle': file('build.gradle'),
                  'endpoint-url': 'http://example.org',
                  'source-highlighter': 'coderay',
                  'imagesdir': 'images',
                  'toc': 'left',
                  'icons': 'font',
                  'setanchors': 'true',
                  'idprefix': '',
                  'idseparator': '-',
                  'docinfo1': 'true'
}

publishGhPages.dependsOn asciidoctor