Skip to content

Commit 86fb34a

Browse files
committed
docs: set up @asciidoctor/tabs in UI bundle
1 parent 55b951a commit 86fb34a

File tree

9 files changed

+26
-14
lines changed

9 files changed

+26
-14
lines changed

docs/modules/ROOT/pages/install.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ python -c "$(curl -fsSL https://raw.githubusercontent.com/cppalliance/mrdocs/ref
5353
--
5454
====
5555
56+
5657
This method automates the download, configuration, and build steps for MrDocs and all required third-party libraries.
5758
It is especially useful for developers and for users who prefer a streamlined, interactive setup or need to install
5859
MrDocs in custom environments.

docs/package-lock.json

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

docs/ui/package-lock.json

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

docs/ui/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
],
1616
"devDependencies": {
1717
"@asciidoctor/core": "~2.2",
18+
"@asciidoctor/tabs": "^1.0.0-beta.6",
1819
"@fontsource/roboto": "~4.5",
1920
"@fontsource/roboto-mono": "~4.5",
2021
"@vscode/gulp-vinyl-zip": "~2.5",
@@ -36,6 +37,7 @@
3637
"gulp-eslint": "~6.0",
3738
"gulp-imagemin": "~6.2",
3839
"gulp-postcss": "~8.0",
40+
"gulp-prettier": "^6.0.0",
3941
"gulp-stylelint": "~13.0",
4042
"gulp-uglify": "~3.0",
4143
"gulp-vinyl-zip": "~2.2",
@@ -52,7 +54,6 @@
5254
"require-from-string": "~2.0",
5355
"stylelint": "~13.3",
5456
"stylelint-config-standard": "~20.0",
55-
"vinyl-fs": "~3.0",
56-
"gulp-prettier": "^6.0.0"
57+
"vinyl-fs": "~3.0"
5758
}
5859
}

docs/ui/preview-src/ui-model.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,6 @@ page:
124124
- content: Some Code
125125
url: '/xyz/5.2/index.html#some-code'
126126
urlType: internal
127+
asciidoc:
128+
extensions:
129+
- '@asciidoctor/tabs'

docs/ui/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"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('@asciidoctor/tabs')

docs/ui/src/partials/footer-scripts.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
{{#if env.SITE_SEARCH_PROVIDER}}
44
{{> search-scripts}}
55
{{/if}}
6+
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js" data-sync-storage-key="preferred-tab"></script>
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)