diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
new file mode 100644
index 00000000..b2d407b9
--- /dev/null
+++ b/.github/workflows/deploy-docs.yml
@@ -0,0 +1,31 @@
+name: Deploy Docs
+on:
+ push:
+ branches-ignore: [ gh-pages ]
+ tags: '**'
+ repository_dispatch:
+ types: request-build-reference # legacy
+ #schedule:
+ #- cron: '0 10 * * *' # Once per day at 10am UTC
+ workflow_dispatch:
+permissions: read-all
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'spring-projects'
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ ref: docs-build
+ fetch-depth: 1
+ - name: Dispatch (partial build)
+ if: github.ref_type == 'branch'
+ env:
+ GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
+ run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
+ - name: Dispatch (full build)
+ if: github.ref_type == 'tag'
+ env:
+ GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
+ run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
deleted file mode 100644
index e6b1dd4b..00000000
--- a/.github/workflows/docs.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: Publish Documentation
-
-on:
- workflow_dispatch:
- schedule:
- - cron: '0 0 * * *'
-
-
-jobs:
- build:
- name: Publish documentation
- runs-on: ubuntu-latest
-
- steps:
-
- - name: Check out sources
- uses: actions/checkout@v3
-
- - name: Set up JDK 17
- uses: actions/setup-java@v3
- with:
- distribution: 'temurin'
- java-version: 17
- cache: 'maven'
-
- - name: Setup Graphviz
- uses: ts-graphviz/setup-graphviz@v1
-
- - name: Deploy documentation
- env:
- ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
- ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
- GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
- GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
- GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
- run: ./mvnw -B clean deploy -Pdocumentation
diff --git a/.gitignore b/.gitignore
index e6a40dbb..6a538e6f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,9 @@ changelog.txt
#IntelliJ Stuff
.idea
*.iml
+
+# Antora
+node
+node_modules
+package.json
+package-lock.json
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index c0f79e42..0350ccbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,7 +41,6 @@
UTF-8
UTF-8
6.0.11
- 0.0.7
3.2.0-M2
@@ -277,76 +276,34 @@ limitations under the License.
- org.asciidoctor
- asciidoctor-maven-plugin
- 2.2.2
-
-
- org.jruby
- jruby
- 9.3.7.0
-
-
- org.asciidoctor
- asciidoctorj
- 2.5.7
-
-
- org.asciidoctor
- asciidoctorj-diagram
- 2.2.3
-
-
- io.spring.asciidoctor.backends
- spring-asciidoctor-backends
- ${spring-asciidoctor-backends.version}
-
-
-
+ io.spring.maven.antora
+ antora-component-version-maven-plugin
+ 0.0.4
-
- html
- generate-resources
- process-asciidoc
+ antora-component-version
-
- spring-html
- ../src/docs/asciidoc
- index.adoc
- ${generated-docs.directory}/html
-
- highlight.js
- js/highlight
- github
-
-
-
+
+
+ io.spring.maven.antora
+ antora-maven-plugin
+ 0.0.4
+ true
- book
-
- shared
- font
- false
- images
- ${project.name}
- ${project.version}
- ${spring.version}
- 4
- true
-
-
- asciidoctor-diagram
-
+ ../src/docs/antora/antora-playbook.yml
+
+
+
+
+
-