Added docs in adoc format

This commit is contained in:
Marcin Grzejszczak
2016-04-18 22:50:44 +02:00
parent 79155bfde2
commit 0e52d2952b
4 changed files with 1257 additions and 0 deletions

3
docs.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
./gradlew publishGhPages

36
docs/build.gradle Normal file
View File

@@ -0,0 +1,36 @@
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'
}
asciidoctorj {
version = '1.5.4'
}
asciidoctor {
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'http://codearte.github.io/accurest',
'source-highlighter': 'coderay',
'imagesdir': 'images',
'toc': 'left',
'icons': 'font',
'setanchors': 'true',
'idprefix': '',
'idseparator': '-',
'docinfo1': 'true'
}
publishGhPages.dependsOn asciidoctor
githubPages {
repoUri = 'https://github.com/Codearte/accurest'
credentials {
username = project.hasProperty('githubToken') ? project.githubToken : ''
password = project.hasProperty('githubPass') ? project.githubPass : ''
}
pages {
from 'build/asciidoc/html5'
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,4 @@
include ':docs'
include "accurest-core", "accurest-gradle-plugin", 'accurest-converters', 'accurest-testing-utils'
include ':stub-runner:stub-runner'
include ':stub-runner:stub-runner-spring'