-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
665 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy Docs | ||
run-name: ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build-refname: | ||
description: Enter git refname to build (e.g., 5.7.x). | ||
required: false | ||
push: | ||
branches: docs-build | ||
env: | ||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} | ||
permissions: | ||
contents: write | ||
jobs: | ||
build: | ||
if: github.repository_owner == 'spring-projects' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Set up refname build | ||
if: github.event.inputs.build-refname | ||
run: | | ||
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY ${{ github.event.inputs.build-refname }} | ||
export BUILD_REFNAME=${{ github.event.inputs.build-refname }} | ||
echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV | ||
export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)") | ||
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV | ||
- name: Run Antora | ||
run: | | ||
./mvnw antora | ||
- name: Publish Docs | ||
uses: spring-io/spring-doc-actions/[email protected] | ||
with: | ||
docs-username: ${{ secrets.DOCS_USERNAME }} | ||
docs-host: ${{ secrets.DOCS_HOST }} | ||
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} | ||
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} | ||
site-path: target/antora/site | ||
- name: Bust Cloudflare Cache | ||
uses: spring-io/spring-doc-actions/[email protected] | ||
with: | ||
context-root: spring-batch | ||
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} | ||
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
target/ | ||
.settings/ | ||
.project | ||
.classpath | ||
*.orig | ||
.springBeans | ||
.factorypath | ||
.sts4-cache | ||
.ant-targets-build.xml | ||
src/ant/.ant-targets-upload-dist.xml | ||
*.sonar4clipse* | ||
.DS_Store | ||
*.iml | ||
*.ipr | ||
*.iws | ||
/.idea/ | ||
*.graphml | ||
node_modules | ||
node/ | ||
package-lock.json | ||
package.json |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Thu Apr 06 16:16:22 CEST 2023 | ||
distributionUrl=https\://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.1/apache-maven-3.9.1-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Use sdkman to run "sdk env" to initialize with correct JDK version | ||
# Enable auto-env through the sdkman_auto_env config | ||
# See https://sdkman.io/usage#config | ||
# A summary is to add the following to ~/.sdkman/etc/config | ||
# sdkman_auto_env=true | ||
java=17.0.3-tem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
= Spring Batch Docs Build | ||
|
||
You're currently viewing the Antora playbook branch. | ||
The playbook branch hosts the docs build that is used to build and publish the production docs site. | ||
|
||
The Spring Batch reference docs are built using https://antora.org[Antora]. | ||
This README covers how to build the docs in a software branch as well as how to build the production docs site locally. | ||
|
||
== Building the Site | ||
|
||
You can build the entire site by invoking the following on the docs-build branch and then viewing the site at `target/antora/site/index.html` | ||
|
||
[source,bash] | ||
---- | ||
mvn antora | ||
---- | ||
|
||
== Building a Specific Branch | ||
|
||
[source,bash] | ||
---- | ||
mvn antora | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
antora: | ||
extensions: | ||
- '@springio/antora-extensions/partial-build-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: 'batch' | ||
site: | ||
title: Spring Batch | ||
url: https://docs.spring.io/spring-batch/reference | ||
robots: allow | ||
git: | ||
ensure_git_suffix: false | ||
content: | ||
sources: | ||
- url: https://github.com/spring-projects/spring-batch | ||
# Refname matching: | ||
# https://docs.antora.org/antora/latest/playbook/content-refname-matching/ | ||
branches: [ main,'({5..9}).+({1..9}).x' ] | ||
tags: [ 'v({5..9}).+({0..9}).+({0..9})?(-{RC,M}+({0..9}))', '!(v5.0.+({0..9})?(-{RC,M}+({0..9})))','!(v5.1.0-M1)' ] | ||
start_path: spring-batch-docs | ||
asciidoc: | ||
attributes: | ||
page-stackoverflow-url: https://stackoverflow.com/tags/spring-batch | ||
page-pagination: '' | ||
hide-uri-scheme: '@' | ||
tabs-sync-option: '@' | ||
extensions: | ||
- '@asciidoctor/tabs' | ||
- '@springio/asciidoctor-extensions' | ||
urls: | ||
latest_version_segment_strategy: redirect:to | ||
latest_version_segment: '' | ||
redirect_facility: httpd | ||
ui: | ||
bundle: | ||
url: https://github.com/spring-io/antora-ui-spring/releases/download/v0.3.3/ui-bundle.zip | ||
snapshot: true | ||
runtime: | ||
log: | ||
failure_level: warn | ||
format: pretty |
Oops, something went wrong.