-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Shell script using pandoc to convert from .md to .adoc * Initial OmniSpec.adoc * build.gradle to render PDF & HTML via Github actions * .github/workflows/gradle.yml adoc spec: cleanup metadata, note, at TOC OmniSpec.adoc: Minor syntax cleanup Gradle build: move doc output to build/doc Simplify to just Github Actions/gradle rendering * Remove the converted README/spec (that’s in another PR now) * Remove the conversion Bash script * Change build.gradle to reflect the Spec will be in README.adoc Add renderOmniSpecification Gradle task
- Loading branch information
1 parent
7494692
commit 5c3bd02
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Documentation Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Asciidoctor Gradle | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build with Gradle | ||
run: gradle renderOmniSpecification --info --stacktrace | ||
- name: Upload build directory as artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: omni-spec-documentation-archive | ||
path: build/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.gradle/ | ||
build/ | ||
.idea/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
} | ||
|
||
plugins { | ||
id 'org.asciidoctor.jvm.convert' version '2.3.0' | ||
id 'org.asciidoctor.jvm.pdf' version '2.3.0' | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
asciidoctor { | ||
sourceDir file("$projectDir") | ||
sources { | ||
include 'README.adoc' | ||
} | ||
outputDir file('build/doc') | ||
} | ||
|
||
asciidoctorPdf { | ||
sourceDir file("$projectDir") | ||
sources { | ||
include 'README.adoc' | ||
} | ||
outputDir file('build/doc') | ||
} | ||
|
||
task renderOmniSpecification(dependsOn: [asciidoctor, asciidoctorPdf]) |