Skip to content

Commit ff5be83

Browse files
docs: upgrade Antora
1 parent 1552361 commit ff5be83

6 files changed

Lines changed: 23 additions & 12 deletions

File tree

β€Ž.github/workflows/website.ymlβ€Ž

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ jobs:
3838
with:
3939
fetch-depth: 0 # Fetch all history for .gitinfo and .lastmod
4040
- name: "Generate site using antora site action"
41-
uses: kameshsampath/antora-site-action@6069ae47f8c6dfd2a7c842d2dea766c639ab0053
42-
with:
43-
antora_playbook: antora-playbook.yml
44-
antora_generator: "antora-site-generator-lunr"
45-
antora_docsearch_enabled: "true"
46-
antora_docsearch_index_version: "latest"
41+
uses: docker://ghcr.io/camptocamp/antora:v3
42+
run: |
43+
./generate-documentation.sh
4744
- name: "List folder"
4845
run: |
4946
ls -ltr $GITHUB_WORKSPACE/build/

β€Žantora-playbook.ymlβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ site:
55
keys:
66
google_analytics: "G-GDBX9466LL"
77
start_page: devops-stack::index.adoc
8+
antora:
9+
extensions:
10+
- require: "@antora/lunr-extension"
11+
index_latest_only: true
812
content:
913
branches: HEAD
10-
tags:
14+
tags:
1115
- "v0.3*"
1216
- "!v0.3.0"
1317
sources:
@@ -17,8 +21,4 @@ ui:
1721
bundle:
1822
url: https://github.com/camptocamp/devops-stack-antora-ui/releases/download/master-LATEST/ui-bundle.zip
1923
snapshot: true
20-
supplemental_files:
21-
- path: ui.yml
22-
contents: |
23-
static_files: [ .nojekyll ]
24-
- path: .nojekyll
24+
supplemental_files: ./supplemental_ui

β€Žgenerate-documentation.shβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/sh
2+
3+
cd "$(dirname $0)"
4+
5+
mkdir -p 'supplemental_ui'
6+
7+
cp -RT "$(yarn global dir)/node_modules/@antora/lunr-extension/supplemental_ui/" 'supplemental_ui'
8+
9+
antora generate 'antora-playbook.yml'

β€Žsupplemental_ui/.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
css/search.css
2+
js/search-ui.js

β€Žsupplemental_ui/.nojekyllβ€Ž

Whitespace-only changes.

β€Žsupplemental_ui/ui.ymlβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
static_files:
3+
- ".nojekyll"

0 commit comments

Comments
Β (0)