Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Align Antora playbooks. Add Maven Caching.

See gh-833
  • Loading branch information
mp911de committed Nov 20, 2023
1 parent 647b4d7 commit 36cff22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ jobs:
package.json
package-lock.json
key: ${{ runner.os }}-nodejs-${{ hashFiles('pom.xml') }}
- name: Cache Maven
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven
- name: Run Antora
run: ./mvnw -B antora -Dantora.playbook=playbooks/${{ github.event.inputs.module }}.yml
run: ./mvnw -B antora
- name: Publish Docs
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
with:
Expand All @@ -54,7 +59,7 @@ jobs:
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
site-path: target/antora/site
- name: Bust Cloudflare Cache
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.12
with:
context-root: spring-vault
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
Expand Down
29 changes: 15 additions & 14 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
antora:
extensions:
- '@springio/antora-extensions/partial-build-extension'
- '@springio/antora-extensions/static-page-extension'
- require: '@springio/antora-extensions/latest-version-extension'
- require: '@springio/antora-extensions/inject-collector-cache-config-extension'
- '@antora/collector-extension'
- '@antora/atlas-extension'
- require: '@springio/antora-extensions/root-component-extension'
root_component_name: 'vault'
- '@springio/antora-extensions/partial-build-extension'
- '@springio/antora-extensions/static-page-extension'
- require: '@springio/antora-extensions/latest-version-extension'
- require: '@springio/antora-extensions/inject-collector-cache-config-extension'
- '@antora/collector-extension'
- 'antora/lib/version-fix.js'
- '@antora/atlas-extension'
- require: '@springio/antora-extensions/root-component-extension'
root_component_name: 'vault'
site:
title: Spring Vault
url: https://docs.spring.io/spring-vault/reference
Expand All @@ -30,17 +31,17 @@ asciidoc:
hide-uri-scheme: '@'
tabs-sync-option: '@'
extensions:
- '@asciidoctor/tabs'
- '@springio/asciidoctor-extensions'
- '@asciidoctor/tabs'
- '@springio/asciidoctor-extensions'
urls:
latest_version_segment_strategy: redirect:to
latest_version_segment: ''
redirect_facility: httpd
runtime:
log:
failure_level: warn
format: pretty
ui:
bundle:
url: https://github.com/spring-io/antora-ui-spring/releases/download/v0.4.7/ui-bundle.zip
snapshot: true
runtime:
log:
failure_level: warn
format: pretty

0 comments on commit 36cff22

Please sign in to comment.