Skip to content

Commit cfa21d7

Browse files
committed
Merge branch 'main' into docs_es
2 parents 5a2d143 + d28fa8d commit cfa21d7

35 files changed

+1294
-34
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
java: [ '8' ]
15+
java: [ '11' ]
1616
architecture: [ 'x64' ]
1717
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
1818
steps:

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
java: [ '8' ]
11+
architecture: [ 'x64' ]
12+
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup JDK
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'temurin'
19+
java-version: ${{ matrix.java }}
20+
architecture: ${{ matrix.architecture }}
21+
cache: 'gradle'
22+
23+
- name: Build with Gradle
24+
run: ./gradlew asciidoc
25+
26+
- name: GitHub Pages Publish
27+
run: ./gradlew publishGhPages
28+
env:
29+
GITHUB_USER: ${{ secrets.GH_DEPLOY_USER }}
30+
GITHUB_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}

build.gradle

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.asciidoctor.gradle.jvm.AsciidoctorTask
2+
13
buildscript {
24
repositories {
35
mavenCentral()
@@ -43,19 +45,19 @@ dependencies {
4345
}
4446

4547
compileJava {
46-
sourceCompatibility = 1.8
47-
targetCompatibility = 1.8
48+
sourceCompatibility = 11
49+
targetCompatibility = 11
4850
}
4951

5052
idea {
5153
project {
52-
jdkName = 1.8
53-
languageLevel = 1.8
54+
jdkName = 11
55+
languageLevel = 11
5456
}
5557
}
5658

5759
asciidoctor {
58-
sourceDir = file('src/docs/asciidoc')
60+
sourceDir = file('src/docs/asciidoc/en')
5961
outputDir = file("$buildDir/docs/asciidoc")
6062

6163
options backend: 'html5'
@@ -77,6 +79,32 @@ asciidoctor {
7779
}
7880
}
7981

82+
tasks.register('asciidoc_pl', AsciidoctorTask) {
83+
group = 'documentation'
84+
description = 'Generates documentation for the "pl" directory.'
85+
86+
sourceDir = file('src/docs/asciidoc/pl')
87+
outputDir = file("$buildDir/docs/asciidoc/pl")
88+
89+
options backend: 'html5'
90+
91+
baseDirFollowsSourceDir()
92+
93+
attributes(
94+
'project-version': project.version
95+
)
96+
97+
sources {
98+
include '**/*.adoc'
99+
}
100+
101+
resources {
102+
from(sourceDir) {
103+
include 'images/**'
104+
}
105+
}
106+
}
107+
80108
tasks.withType(Copy).configureEach {
81109
eachFile { println it.file }
82110
}
@@ -86,7 +114,7 @@ tasks.register('copyCNAME', Copy) {
86114
into file(asciidoctor.outputDir.path)
87115
}
88116

89-
//asciidoctor.dependsOn test
117+
asciidoctor.dependsOn asciidoc_pl
90118
copyCNAME.dependsOn asciidoctor
91119
publishGhPages.dependsOn copyCNAME
92120

File renamed without changes.

0 commit comments

Comments
 (0)