From 4043ad3a37303c368be49c94b64ec4191badd1c1 Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Thu, 28 Mar 2024 19:23:59 -0300 Subject: [PATCH] docs: support asciidoctor tabs --- docs/antora-playbook.yml | 21 +++++++++++++++++++++ docs/local-antora-playbook.yml | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/docs/antora-playbook.yml b/docs/antora-playbook.yml index 05421fbe0..57f6b617b 100644 --- a/docs/antora-playbook.yml +++ b/docs/antora-playbook.yml @@ -21,6 +21,27 @@ ui: bundle: url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable snapshot: true + supplemental_files: + - 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: | + + + + {{#if env.SITE_SEARCH_PROVIDER}} + {{> search-scripts}} + {{/if}} + - path: partials/head-styles.hbs + contents: | + + + +asciidoc: + extensions: + - '@asciidoctor/tabs' antora: extensions: diff --git a/docs/local-antora-playbook.yml b/docs/local-antora-playbook.yml index 3d23d7524..2be0ff018 100644 --- a/docs/local-antora-playbook.yml +++ b/docs/local-antora-playbook.yml @@ -18,6 +18,29 @@ ui: bundle: url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable snapshot: true + supplemental_files: + - 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: | + + + + {{#if env.SITE_SEARCH_PROVIDER}} + {{> search-scripts}} + {{/if}} + - path: partials/head-styles.hbs + contents: | + + + +asciidoc: + extensions: + - '@asciidoctor/tabs' + + antora: extensions: