-
Notifications
You must be signed in to change notification settings - Fork 5
/
antora-playbook.yml
84 lines (79 loc) · 2.73 KB
/
antora-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
site:
title: Bonita Documentation
# features that depend on the site URL: https://docs.antora.org/antora/latest/playbook/site-url/#when-should-the-site-url-be-set
url: https://documentation.bonitasoft.com
start_page: bonita::index.adoc
robots: allow
# see https://docs.antora.org/antora/2.3/playbook/configure-runtime/
runtime:
cache_dir: ./.cache/antora
log:
# use pretty even on CI
format: pretty
# set to info to get details from the Antora extensions
level: info
# Antora exits with a non-zero exit code if a warning is logged -> https://docs.antora.org/antora/latest/playbook/runtime-log-failure-level
failure_level: warn
content:
# When adding a new url, add a new entry in generate-content-for-preview-antora-playbook.js to manage PR preview
# The site preview only use the latest declared branch for each source
sources:
- url: https://github.com/bonitasoft/bonita-cloud-doc.git
branches:
- "master"
- url: https://github.com/bonitasoft/bonita-doc.git
branches:
- "archives"
- "7.11"
- "2021.1"
- "2021.2"
- "2022.1"
- "2022.2"
- "2023.1"
- "2023.2"
- "2024.1"
- "2024.2"
- "2024.3"
- "2025.1"
- url: https://github.com/bonitasoft/bonita-labs-doc.git
branches:
- "master"
- url: https://github.com/bonitasoft/bonita-continuous-delivery-doc.git
branches:
- "3.6"
- "4.0"
- url: https://github.com/bonitasoft/bonita-test-toolkit-doc.git
branches:
- "1.0"
- "2.0"
- "3.0"
- url: https://github.com/bonitasoft/bonita-central-doc.git
branches:
- "1.0"
- url: "https://github.com/bonitasoft/bonita-process-insights-doc.git"
branches:
- "main"
ui:
bundle:
url: https://github.com/bonitasoft/bonita-documentation-theme/releases/download/v1.21.0/bonita-documentation-theme-v1.21.0.zip
antora:
# IMPORTANT: use the 'require' syntax to ensure that the preview script is able to always update the configuration
extensions:
- require: ./lib/antora/versions-sorter-extension.js
- require: ./lib/antora/versions-alias-extension.js
- require: ./lib/antora/log-aggregated-component-versions-extension.js
- require: '@antora/atlas-extension'
asciidoc:
# Only enable for preview, we don't care for production, and it can have performance impacts
# https://docs.antora.org/antora/3.0/playbook/asciidoc-sourcemap/
sourcemap: false
attributes:
icons: font
extensions:
- '@asciidoctor/tabs'
urls:
html_extension_style: drop
redirect_facility: netlify
latest_version_segment: latest
latest_prerelease_version_segment: next
latest_version_segment_strategy: redirect:to