Skip to content

Commit 6004bbd

Browse files
committed
Filter antora-playbook to resolve project version
1 parent 9a78cc0 commit 6004bbd

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ jobs:
4141
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
4242

4343
- name: Generate Java docs
44-
run: |
45-
./mvnw --no-transfer-progress javadoc:aggregate
44+
run: ./mvnw --no-transfer-progress javadoc:aggregate
4645

4746
- name: Generate Reference docs
4847
working-directory: spring-shell-docs
49-
run: |
50-
../mvnw --no-transfer-progress antora
48+
run: ../mvnw --no-transfer-progress resources:resources antora
5149

5250
- name: Setup SSH key
5351
env:

spring-shell-docs/antora.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ version: 4.0.0-SNAPSHOT
33
title: Spring Shell
44
nav:
55
- modules/ROOT/nav.adoc
6-
7-
asciidoc:
8-
attributes:
9-
attribute-missing: 'warn'
10-
chomp: 'all'
11-
snippets: example$docs-src/test/java/org/springframework/shell/docs

spring-shell-docs/modules/ROOT/pages/index.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Eric Bottard; Janne Valkealahti; Jay Bryant; Corneil du Plessis
33
:page-section-summary-toc: 1
44

5+
**{project-version}**
6+
57
Not all applications need a fancy web user interface. Sometimes, interacting with an application through an interactive terminal is the most appropriate way to get things done.
68

79
Spring Shell lets you create such a runnable application, where the user enters textual commands that are run until the program terminates. The Spring Shell project provides the infrastructure to create such a REPL (Read, Eval, Print Loop) application, letting you concentrate on implementing commands by using the familiar Spring programming model.

spring-shell-docs/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545
</dependencies>
4646

4747
<build>
48+
<resources>
49+
<resource>
50+
<directory>src/main/antora</directory>
51+
<filtering>true</filtering>
52+
<includes>
53+
<include>antora.yml</include>
54+
<include>antora-playbook.yml</include>
55+
</includes>
56+
</resource>
57+
</resources>
4858
<plugins>
4959
<plugin>
5060
<groupId>org.antora</groupId>
@@ -53,6 +63,7 @@
5363
<extensions>true</extensions>
5464
<configuration>
5565
<nodeVersion>${nodejs.version}</nodeVersion>
66+
<playbookFile>target/classes/antora-playbook.yml</playbookFile>
5667
</configuration>
5768
</plugin>
5869
<plugin>

spring-shell-docs/antora-playbook.yml renamed to spring-shell-docs/src/main/antora/antora-playbook.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ site:
33
url: https://docs.spring.io/spring-shell/reference/
44
content:
55
sources:
6-
- url: ./..
6+
- url: ${project.basedir}/..
77
start_path: spring-shell-docs
88
worktrees: true
99
asciidoc:
@@ -13,6 +13,9 @@ asciidoc:
1313
hide-uri-scheme: '@'
1414
tabs-sync-option: '@'
1515
chomp: 'all'
16+
attribute-missing: 'warn'
17+
snippets: example$docs-src/test/java/org/springframework/shell/docs
18+
project-version: ${project.parent.version}
1619
sourcemap: true
1720
runtime:
1821
log:

0 commit comments

Comments
 (0)