Skip to content

Commit afe12a0

Browse files
committed
feat: use asciidoctor
1 parent 14ff6a7 commit afe12a0

File tree

2 files changed

+6
-36
lines changed

2 files changed

+6
-36
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,17 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
# 1. docToolchain benötigt Java (Gradle-Basis)
25-
- name: Setup Java
26-
uses: actions/setup-java@v4
27-
with:
28-
distribution: 'temurin'
29-
java-version: '17'
30-
31-
# 2. docToolchain Wrapper herunterladen und ausführbar machen (dtcw)
32-
- name: Download docToolchain Wrapper
33-
run: |
34-
curl -fsSL https://doctoolchain.org/dtcw -o dtcw
35-
chmod +x dtcw
36-
37-
# 3. Dokumentation bauen (Build-Befehl aus docToolchain-Demo)
38-
# Die docToolchainConfig.groovy konfiguriert den Pfad auf 'docs'
24+
# 1. Dokumentation mit Asciidoctor bauen (unter Verwendung von Docker)
3925
- name: Build Documentation
40-
run: ./dtcw buildHtml
26+
uses: docker://asciidoctor/docker-asciidoctor
27+
with:
28+
args: asciidoctor -R docs -D build/site/html -a docinfo=shared -a toc=left -a toclevels=2 'docs/index.adoc'
4129

42-
# 4. Deployment zu gh-pages (peaceiris action, wie im Demo-Repo)
30+
# 2. Deployment zu gh-pages
4331
- name: Deploy to GitHub Pages
4432
if: github.ref == 'refs/heads/main'
4533
uses: peaceiris/actions-gh-pages@v3
4634
with:
4735
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
publish_dir: ./docs/build/site/html # Ausgabepfad aus docToolchainConfig.groovy
36+
publish_dir: ./build/site/html
4937
publish_branch: gh-pages

docToolchainConfig.groovy

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)