Skip to content

Commit 7d1b01d

Browse files
Update Antora Plugin to 1.0.0
Issue gh-2234
1 parent d7d3684 commit 7d1b01d

19 files changed

+507
-263
lines changed

.github/actions/algolia-config.json

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

.github/actions/algolia-deploy.sh

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

.github/actions/algolia-docsearch-scraper.sh

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

.github/actions/dispatch.sh

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

.github/workflows/algolia-index.yml

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

.github/workflows/antora-generate.yml

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

.github/workflows/deploy-docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Docs
2+
on:
3+
push:
4+
branches-ignore: [ gh-pages ]
5+
tags: '**'
6+
repository_dispatch:
7+
types: request-build-reference # legacy
8+
workflow_dispatch:
9+
10+
permissions: read-all
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'spring-projects'
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
ref: docs-build
20+
fetch-depth: 1
21+
- name: Dispatch (partial build)
22+
if: github.ref_type == 'branch'
23+
env:
24+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
25+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
26+
- name: Dispatch (full build)
27+
if: github.ref_type == 'tag'
28+
env:
29+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
30+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)

.github/workflows/deploy-reference.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Rebuild Search Index
2+
on:
3+
schedule:
4+
- cron: '0 10 * * *' # Once per day at 10am UTC
5+
workflow_dispatch:
6+
permissions: read-all
7+
jobs:
8+
build:
9+
if: github.repository_owner == 'spring-projects'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
ref: docs-build
16+
fetch-depth: 1
17+
- name: Dispatch
18+
env:
19+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
20+
run: gh workflow run rebuild-search-index.yml -r $(git rev-parse --abbrev-ref HEAD)

buildSrc/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ sourceSets {
2626

2727
gradlePlugin {
2828
plugins {
29+
checkAntoraVersion {
30+
id = "org.springframework.antora.check-version"
31+
implementationClass = "org.springframework.gradle.antora.AntoraVersionPlugin"
32+
}
2933
managementConfiguration {
3034
id = "io.spring.convention.management-configuration"
3135
implementationClass = "io.spring.gradle.convention.ManagementConfigurationPlugin"
@@ -54,6 +58,7 @@ configurations {
5458
dependencies {
5559
implementation 'com.google.code.gson:gson:2.8.8'
5660
implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
61+
implementation 'org.yaml:snakeyaml:1.30'
5762
implementation localGroovy()
5863

5964
implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'

0 commit comments

Comments
 (0)