-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantora-playbook.yml
69 lines (63 loc) · 2.62 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
# Reference: https://docs.antora.org/antora/latest/playbook/
site:
title: Clean Documentation Template
url: https://qaware.github.io/clean-documentation-template
start_page: ROOT:ROOT:index.adoc
content:
sources:
- url: .
start_path: docs/ROOT
- url: .
start_path: docs/architecture
- url: .
start_path: docs/developer-guide
- url: .
start_path: docs/operations-guide
- url: .
start_path: docs/user-guide
ui:
bundle:
# You should supply your own bundle with custom company colors etc.
# https://gitlab.com/antora/antora-ui-default
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
# You can adapt the bundle on the fly while running antora
# https://docs.antora.org/antora/latest/playbook/ui-supplemental-files/
# The header-content.hbs has some nonsense menu which is removed in the override file
supplemental_files: ./supplemental-ui
antora:
extensions:
# Add offline search
# https://gitlab.com/antora/antora-lunr-extension
- require: '@antora/lunr-extension'
asciidoc:
extensions:
# Add kroki as general purpose code-to-diagram converter
# https://kroki.io
# https://github.com/asciidoctor/asciidoctor-kroki
- asciidoctor-kroki
# Antora uses in highlight.js to style code in the browser, this extension highlights the code at build time.
# Antora resolves names that look like files relative to the project folder, therefore add a slash as the npm package should be used.
- asciidoctor-highlight.js/
# Adds support for AsciiDoc math as Antora does not support it by default.
# The formulas are generated at build-time and are stored as SVGs.
# Extension: https://gitlab.com/djencks/asciidoctor-mathjax.js
# Discussion: https://gitlab.com/antora/antora/-/issues/184#note_291908945
# AsciiDoc Math docs: https://docs.asciidoctor.org/asciidoc/latest/stem/
- '@djencks/asciidoctor-mathjax'
attributes:
# Set better defaults for xhref IDs
# https://docs.asciidoctor.org/asciidoc/latest/sections/id-prefix-and-separator/
idprefix: ''
idseparator: '-'
# Download images from kroki and do not fetch at "read time"
# If you don't want to send your data to kroki.io you can run your own kroki container/server
# https://github.com/asciidoctor/asciidoctor-kroki#using-your-own-kroki
# kroki-server-url: http://localhost:8000 # For locally running kroki
kroki-fetch-diagram: true
# Use build time highlighter by default
source-highlighter: highlightjs-ext
runtime:
log:
failure_level: warn
level: info