Skip to content

Commit daba182

Browse files
authored
Update .adoc documentation workflow (#142)
1 parent 0a51519 commit daba182

24 files changed

+84
-829
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: asciidoctor-ghpages
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- '**.adoc'
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- '**.adoc'
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: asciidoctor-ghpages
25+
uses: manoelcampos/asciidoctor-ghpages-action@v2
26+
with:
27+
asciidoctor_params: --attribute=nofooter
28+
source_dir: ./asciidoc
29+
ebook_main_adoc_file: index

.github/workflows/documentation-workflow.yml

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

.github/workflows/maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616

1717
steps:
1818

19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020

2121
# See: https://github.com/actions/setup-java
2222
- name: Set up Adopt JDK 17
23-
uses: actions/setup-java@v2
23+
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'adopt'
2626
java-version: '17'
2727

2828
# See: https://github.com/actions/cache/blob/master/examples.md#java---maven
2929
- name: Maven cache and restore deps
30-
uses: actions/cache@v1
30+
uses: actions/cache@v4
3131
with:
3232
path: ~/.m2/repository
3333
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ hs_err_pid*
2929
/.idea
3030

3131
# Preprocessed documentation for Github (see: https://github.com/github/markup/issues/1095)
32-
/docs_processed/
32+
/asciidoc/

README.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ This repository contains sample project for demonstration of `spring-data-aerosp
99

1010
== Guides
1111

12-
- link:docs_processed/getting-started.adoc[Getting started]
13-
- link:docs_processed/basic-error-handling.adoc[Basic error handling]
14-
- link:docs_processed/concurrent-updates.adoc[Handling concurrent updates]
15-
- link:docs_processed/custom-converters.adoc[Creating custom converters]
16-
- link:docs_processed/composite-primary-key.adoc[Composite primary key]
17-
- link:docs_processed/creating-secondary-index.adoc[Creating secondary index]
18-
- link:docs_processed/retrieving-data-by-secondary-index.adoc[Retrieving data by secondary index]
12+
- link:asciidoc/getting-started.adoc[Getting started]
13+
- link:asciidoc/basic-error-handling.adoc[Basic error handling]
14+
- link:asciidoc/concurrent-updates.adoc[Handling concurrent updates]
15+
- link:asciidoc/custom-converters.adoc[Creating custom converters]
16+
- link:asciidoc/composite-primary-key.adoc[Composite primary key]
17+
- link:asciidoc/creating-secondary-index.adoc[Creating secondary index]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)