Skip to content

Commit

Permalink
integrate Asciidoctor Tabs (PR #136)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero authored Dec 18, 2024
1 parent 763fd8c commit b469c8c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/css/vendor/tabs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "@asciidoctor/tabs"
1 change: 1 addition & 0 deletions src/js/vendor/tabs.bundle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('@asciidoctor/tabs')
1 change: 1 addition & 0 deletions src/partials/footer-scripts.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script>
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
{{#with (resolvePage page.relativeSrcPath model=false)}}
{{#unless (eq ./asciidoc.attributes.stem undefined)}}
Expand Down
1 change: 1 addition & 0 deletions src/partials/head-styles.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
{{#if (eq page.attributes.role 'home')}}
<link rel="stylesheet" href="{{{uiRootPath}}}/css/home.css">
{{/if}}
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">

0 comments on commit b469c8c

Please sign in to comment.