Skip to content

Commit 53f78a9

Browse files
authored
adds asciidoctor tab support (#7)
* adds asciidoctor tab support * missing files
1 parent f9e3a14 commit 53f78a9

File tree

8 files changed

+27
-2
lines changed

8 files changed

+27
-2
lines changed

gulp.d/tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = (src, dest, preview) => () => {
6363
// NOTE concat already uses stat from newest combined file
6464
.pipe(concat('js/site.js')),
6565
vfs
66-
.src('js/vendor/*([^.])?(.bundle).js', { ...opts, read: false })
66+
.src('js/vendor/*([^.])?(.bundle).js', { ...opts })
6767
.pipe(
6868
// see https://gulpjs.org/recipes/browserify-multiple-destination.html
6969
map((file, enc, next) => {

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"scripts": {},
1717
"devDependencies": {
1818
"@asciidoctor/core": "~2.2",
19+
"@asciidoctor/tabs": "^1.0.0-beta.3",
1920
"@fontsource/noto-sans": "^4.5.11",
2021
"@fontsource/sora": "^4.5.12",
2122
"@fontsource/source-code-pro": "^4.5.14",

src/css/vendor/tabs.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "@asciidoctor/tabs"

src/js/vendor/tabs.bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('@asciidoctor/tabs')

src/partials/footer-content.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
© 2023 Kaskada Project Authors | Kaskada is an open source project and all
33
source code is distributed under the Apache v2.0 license
44
</footer>
5+
6+
<!-- could not get this to work in the footer-scripts.hbs partial -->
7+
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>

src/partials/footer-scripts.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
2+
13
<script src="{{{uiRootPath}}}/js/site.js"></script>
24
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
35
{{#if env.SITE_SEARCH_PROVIDER}}
46
{{> search-scripts}}
5-
{{/if}}
7+
{{/if}}

src/partials/head-styles.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
2+
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">

0 commit comments

Comments
 (0)