Skip to content

Commit 4043ad3

Browse files
committed
docs: support asciidoctor tabs
1 parent 586ce9b commit 4043ad3

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

docs/antora-playbook.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,27 @@ ui:
2121
bundle:
2222
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
2323
snapshot: true
24+
supplemental_files:
25+
- path: css/vendor/tabs.css
26+
contents: ./node_modules/@asciidoctor/tabs/dist/css/tabs.css
27+
- path: js/vendor/tabs.js
28+
contents: ./node_modules/@asciidoctor/tabs/dist/js/tabs.js
29+
- path: partials/footer-scripts.hbs
30+
contents: |
31+
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script>
32+
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
33+
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
34+
{{#if env.SITE_SEARCH_PROVIDER}}
35+
{{> search-scripts}}
36+
{{/if}}
37+
- path: partials/head-styles.hbs
38+
contents: |
39+
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
40+
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">
41+
42+
asciidoc:
43+
extensions:
44+
- '@asciidoctor/tabs'
2445

2546
antora:
2647
extensions:

docs/local-antora-playbook.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ ui:
1818
bundle:
1919
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
2020
snapshot: true
21+
supplemental_files:
22+
- path: css/vendor/tabs.css
23+
contents: ./node_modules/@asciidoctor/tabs/dist/css/tabs.css
24+
- path: js/vendor/tabs.js
25+
contents: ./node_modules/@asciidoctor/tabs/dist/js/tabs.js
26+
- path: partials/footer-scripts.hbs
27+
contents: |
28+
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script>
29+
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
30+
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
31+
{{#if env.SITE_SEARCH_PROVIDER}}
32+
{{> search-scripts}}
33+
{{/if}}
34+
- path: partials/head-styles.hbs
35+
contents: |
36+
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
37+
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">
38+
39+
asciidoc:
40+
extensions:
41+
- '@asciidoctor/tabs'
42+
43+
2144

2245
antora:
2346
extensions:

0 commit comments

Comments
 (0)