From b469c8c7a6783dfbe8cda6724e129b729fb0b1e8 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Wed, 18 Dec 2024 21:40:22 +0100 Subject: [PATCH] integrate Asciidoctor Tabs (PR #136) https://github.com/asciidoctor/asciidoctor-tabs --- package-lock.json | 11 +++++++++++ package.json | 1 + src/css/vendor/tabs.css | 1 + src/js/vendor/tabs.bundle.js | 1 + src/partials/footer-scripts.hbs | 1 + src/partials/head-styles.hbs | 1 + 6 files changed, 16 insertions(+) create mode 100644 src/css/vendor/tabs.css create mode 100644 src/js/vendor/tabs.bundle.js diff --git a/package-lock.json b/package-lock.json index 8f857dae..ce69ca7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "license": "MPL-2.0", "devDependencies": { "@asciidoctor/core": "~2.2", + "@asciidoctor/tabs": "1.0.0-beta.6", "@fontsource/comfortaa": "~5.0", "@fontsource/roboto": "~5.0", "@fontsource/roboto-mono": "~5.0", @@ -91,6 +92,16 @@ "yarn": ">=1.1.0" } }, + "node_modules/@asciidoctor/tabs": { + "version": "1.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@asciidoctor/tabs/-/tabs-1.0.0-beta.6.tgz", + "integrity": "sha512-gGZnW7UfRXnbiyKNd9PpGKtSuD8+DsqaaTSbQ1dHVkZ76NaolLhdQg8RW6/xqN3pX1vWZEcF4e81+Oe9rNRWxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.23.4", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", diff --git a/package.json b/package.json index 495bce9c..9706a940 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ ], "devDependencies": { "@asciidoctor/core": "~2.2", + "@asciidoctor/tabs": "1.0.0-beta.6", "@fontsource/comfortaa": "~5.0", "@fontsource/roboto": "~5.0", "@fontsource/roboto-mono": "~5.0", diff --git a/src/css/vendor/tabs.css b/src/css/vendor/tabs.css new file mode 100644 index 00000000..9440ddfc --- /dev/null +++ b/src/css/vendor/tabs.css @@ -0,0 +1 @@ +@import "@asciidoctor/tabs" diff --git a/src/js/vendor/tabs.bundle.js b/src/js/vendor/tabs.bundle.js new file mode 100644 index 00000000..8d1016f8 --- /dev/null +++ b/src/js/vendor/tabs.bundle.js @@ -0,0 +1 @@ +require('@asciidoctor/tabs') diff --git a/src/partials/footer-scripts.hbs b/src/partials/footer-scripts.hbs index 2ed5da20..e001579e 100644 --- a/src/partials/footer-scripts.hbs +++ b/src/partials/footer-scripts.hbs @@ -1,4 +1,5 @@ + {{#with (resolvePage page.relativeSrcPath model=false)}} {{#unless (eq ./asciidoc.attributes.stem undefined)}} diff --git a/src/partials/head-styles.hbs b/src/partials/head-styles.hbs index 803b10d8..377e94d6 100644 --- a/src/partials/head-styles.hbs +++ b/src/partials/head-styles.hbs @@ -2,3 +2,4 @@ {{#if (eq page.attributes.role 'home')}} {{/if}} +