-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathantora-playbook.yml
79 lines (79 loc) · 2.96 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
# yamllint disable-line rule:line-length
# yaml-language-server: $schema=https://raw.githubusercontent.com/asciidoctor/asciidoctor-intellij-plugin/main/src/main/resources/jsonSchemas/antoraPlaybookSchema.json
# See https://gitlab.com/antora/antora/-/issues/619 for schema support
site:
title: Antora GitHub Pages Demo
start_page: antora-gh-pages-demo::index.adoc
content:
sources:
- url: .
branches: HEAD
ui:
bundle:
url: ./ui-bundle.zip
# See https://gitlab.com/antora/antora/-/issues/280 as well
# url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
supplemental_files:
# add @asciidoctor/tabs files during generation
- path: css/vendor/tabs.css
contents: './node_modules/@asciidoctor/tabs/dist/css/tabs.css'
- path: js/vendor/tabs.js
contents: './node_modules/@asciidoctor/tabs/dist/js/tabs.js'
- path: partials/footer-scripts.hbs
contents: |
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script>
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
{{#if env.SITE_SEARCH_PROVIDER}}
{{> search-scripts}}
{{/if}}
- path: partials/head-styles.hbs
contents: |
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">
# https://docs.antora.org/antora/latest/publish-to-github-pages/
- path: ui.yml
contents: |
static_files:
- .nojekyll
- path: .nojekyll
# Customize other contents
- path: partials/header-content.hbs
contents: |
<header class="header">
<nav class="navbar">
<div class="navbar-brand">
<a class="navbar-item" href="{{{or site.url siteRootPath}}}">{{site.title}}</a>
{{#if env.SITE_SEARCH_PROVIDER}}
<div class="navbar-item search hide-for-print">
<div id="search-field" class="field">
<input id="search-input" type="text" placeholder="Search the docs"{{#if page.home}} autofocus{{/if}}>
</div>
</div>
{{/if}}
<button class="navbar-burger" data-target="topbar-nav">
<span></span>
<span></span>
<span></span>
</button>
</div>
</nav>
</header>
- path: partials/nav.hsb
contents: |
<div class="nav-container"{{#if page.component}} data-component="{{page.component.name}}" data-version="{{page.version}}"{{/if}}>
<aside class="nav">
<div class="panels">
{{> nav-menu}}
</div>
</aside>
</div>
output:
clean: true
antora:
extensions:
- '@antora/lunr-extension'
asciidoc:
extensions:
- '@asciidoctor/tabs'